<div dir="ltr"><div>Hello Riko,</div><div><br></div><div>I recently also became very interested to start using radare2 (Raphael Machado's dissasembly attempts got involved me, to set the tool). Since I am very lazy person, the first was to ask my Fedora 25 distro does the distro have package radare2?</div><div><br></div><div>Yes, it does have it, so I have installed it. And for you, here is the transcript of my CLI for you.</div><div><br></div><div>CLI traces (radare --help) are worth 1000nd words, don't you agree? ;-)</div><div><br></div><div>Best Regards,</div><div>Zoran</div><div>_______</div><div><br></div><div>[zoran@localhost ~]$ uname -r</div><div>4.8.6-300.fc25.x86_64</div><div>[zoran@localhost ~]$ which radare2</div><div>/usr/bin/radare2</div><div><b><i><u><font color="#ff0000">[zoran@localhost ~]$ radare2 --help</font></u></i></b></div><div>radare2: invalid option -- '-'</div><div>r_config_get: variable 'lp' not found</div><div> -- open radare2 on an empty file</div><div> - equivalent of 'r2 malloc://512'</div><div> = read file from stdin (use -i and -c to run cmds)</div><div> -= perform !=! command to run all commands remotely</div><div> -0 print \x00 after init and every command</div><div> -a [arch] set asm.arch</div><div> -A run 'aaa' command to analyze all referenced code</div><div> -b [bits] set asm.bits</div><div> -B [baddr] set base address for PIE binaries</div><div> -c 'cmd..' execute radare command</div><div> -C file is host:port (alias for -c+=http://%s/cmd/)</div><div> -d debug the executable 'file' or running process 'pid'</div><div> -D [backend] enable debug mode (e cfg.debug=true)</div><div> -e k=v evaluate config var</div><div> -f block size = file size</div><div> -F [binplug] force to use that rbin plugin</div><div> -h, -hh show help message, -hh for long</div><div> -i [file] run script file</div><div> -I [file] run script file before the file is opened</div><div> -k [k=v] perform sdb query into core->sdb</div><div> -l [lib] load plugin file</div><div> -L list supported IO plugins</div><div> -m [addr] map file at given address (loadaddr)</div><div> -M do not demangle symbol names</div><div> -n, -nn do not load RBin info (-nn only load bin structures)</div><div> -N do not load user settings and scripts</div><div> -o [OS/kern] set asm.os (linux, macos, w32, netbsd, ...)</div><div> -q quiet mode (no prompt) and quit after -i</div><div> -p [prj] use project, list if no arg, load if no file</div><div> -P [file] apply rapatch file and quit</div><div> -R [rarun2] specify rarun2 profile to load (same as -e dbg.profile=X)</div><div> -s [addr] initial seek</div><div> -S start r2 in sandbox mode</div><div> -t load rabin2 info in thread</div><div> -u set bin.filter=false to get raw sym/sec/cls names</div><div> -v, -V show radare2 version (-V show lib versions)</div><div> -w open file in write mode</div><div> -z, -zz do not load strings or load them even in raw</div><div>Scripts:</div><div> system /usr/share/radare2/radare2rc</div><div> user ~/.radare2rc ${RHOMEDIR}/radare2/radare2rc (and radare2rc.d/)</div><div> file ${filename}.r2</div><div>Plugins:</div><div> plugins /usr/lib/radare2/last</div><div> user ~/.config/radare2/plugins</div><div> LIBR_PLUGINS /usr/lib/radare2/0.10.6-git</div><div>Environment:</div><div> RHOMEDIR /home/zoran/.config/radare2</div><div> RCFILE ~/.radare2rc (user preferences, batch script)</div><div> MAGICPATH /usr/lib64/radare2/0.10.6-git/magic</div><div> R_DEBUG if defined, show error messages and crash signal</div><div> VAPIDIR path to extra vapi directory</div><div> R2_NOPLUGINS do not load r2 shared plugins</div><div>Paths:</div><div> PREFIX /usr</div><div> INCDIR /usr/include/libr</div><div> LIBDIR /usr/lib64</div><div> LIBEXT so</div><div>[zoran@localhost ~]$ </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 5, 2016 at 3:55 AM, Riko Ho <span dir="ltr"><<a href="mailto:antonius.riko@gmail.com" target="_blank">antonius.riko@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="m_-2926509009161831238moz-cite-prefix">Hi Rafael,<br>
<br>
For example I want to see the asm code for the whole
512Kbytes....is that possible ?<br>
How ?<br>
<br>
Thanks<div><div class="h5"><br>
On 5/11/2016 3:36 AM, Rafael Machado wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">Hi
<div><br>
</div>
<div>You can use the pd command.</div>
<div>p = Print</div>
<div>d = disassemby</div>
<div><br>
</div>
<div>You can also add the number of instruction you whant to
see. For example:</div>
<div><br>
</div>
<div>pd 10</div>
<div><br>
</div>
<div>Thanks </div>
<div>Rafael Machado</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">Em qua, 2 de nov de 2016 às 04:01, Riko Ho <<a href="mailto:antonius.riko@gmail.com" target="_blank">antonius.riko@gmail.com</a>>
escreveu:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Everyone,
Idwer,<br class="m_-2926509009161831238gmail_msg">
<br class="m_-2926509009161831238gmail_msg">
I have radare question :<br class="m_-2926509009161831238gmail_msg">
<br class="m_-2926509009161831238gmail_msg">
I played until this point :<br class="m_-2926509009161831238gmail_msg">
c:>radare2 -e asm.bits=16 -e <a href="http://io.va" rel="noreferrer" class="m_-2926509009161831238gmail_msg" target="_blank">io.va</a>=true i946gz.bin<br class="m_-2926509009161831238gmail_msg">
-- radare2 is WYSIWYF - what you see is what you fix<br class="m_-2926509009161831238gmail_msg">
[f000:fff0]> S $s-0x10000 0xF000:0x0000 0x10000 0x10000
bootblk rwx<br class="m_-2926509009161831238gmail_msg">
[f000:fff0]> e asm.segoff=true<br class="m_-2926509009161831238gmail_msg">
[f000:fff0]> s 0xf000:0xffff0<br class="m_-2926509009161831238gmail_msg">
[f000:ffff]><br class="m_-2926509009161831238gmail_msg">
<br class="m_-2926509009161831238gmail_msg">
How can I see the assembler code from there ? It's started
from<br class="m_-2926509009161831238gmail_msg">
FFFF0....I'm sure the last byte instruction is jump to 0x00000<br class="m_-2926509009161831238gmail_msg">
<br class="m_-2926509009161831238gmail_msg">
Cheers<br class="m_-2926509009161831238gmail_msg">
<br class="m_-2926509009161831238gmail_msg">
--<br class="m_-2926509009161831238gmail_msg">
coreboot mailing list: <a href="mailto:coreboot@coreboot.org" class="m_-2926509009161831238gmail_msg" target="_blank">coreboot@coreboot.org</a><br class="m_-2926509009161831238gmail_msg">
<a href="https://www.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" class="m_-2926509009161831238gmail_msg" target="_blank">https://www.coreboot.org/<wbr>mailman/listinfo/coreboot</a><br class="m_-2926509009161831238gmail_msg">
</blockquote>
</div>
</blockquote>
<br>
<p><br>
</p>
</div></div><span class="HOEnZb"><font color="#888888"><div class="m_-2926509009161831238moz-signature">-- <br>
<b>/*===*/<br>
Kind regards,<br>
Riko Ho<br>
/*===*/
</b></div>
</font></span></div>
<br>--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br>
<a href="https://www.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://www.coreboot.org/<wbr>mailman/listinfo/coreboot</a><br></blockquote></div><br></div>