<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" 
  xmlns:content="http://purl.org/rss/1.0/modules/content/" 
  xmlns:dc="http://purl.org/dc/elements/1.1/" 
  xmlns:atom="http://www.w3.org/2005/Atom" 
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
  xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>radare2 on Ben&#39;s ideas and projects</title>
    <link>https://ben.the-collective.net/tags/radare2/</link>
    <description>Recent content in radare2 on Ben&#39;s ideas and projects</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>locutus@the-collective.net (Ben Mason)</managingEditor>
    <webMaster>locutus@the-collective.net (Ben Mason)</webMaster>
    <copyright>©2022, All Rights Reserved</copyright>
    <lastBuildDate>Sun, 08 Jul 2018 12:04:02 -0400</lastBuildDate>
    <sy:updatePeriod>daily</sy:updatePeriod>
    
        <atom:link href="https://ben.the-collective.net/tags/radare2/index.xml" rel="self" type="application/rss+xml" />
    

      
      <item>
        <title>Radare2 Cheatsheet</title>
        <link>https://ben.the-collective.net/my-notes/radare2-cheatsheet/</link>
        <pubDate>Sun, 08 Jul 2018 12:04:02 -0400</pubDate>
        <author>locutus@the-collective.net (Ben Mason)</author>
        <atom:modified>Sun, 08 Jul 2018 12:04:02 -0400</atom:modified>
        <guid>https://ben.the-collective.net/my-notes/radare2-cheatsheet/</guid>
        <description>radare2 commands command Args -d – start in debug mode
-A – Auto aaa
-a arm -m 0x0800C000 -b 16
-m [addr] – map file at given address (loadaddr)
-i load script
Radare2 – aldeid
Project Managment P – list projects
Ps &amp;lt;filename&amp;gt; – Save to filename
shell commands aaa – analyse all
afl – command (Analyze Functions List).
s &amp;lt;function&amp;gt; – seek to function or any memory address
axt @@ str.</description>
        <content:encoded>&lt;h1 id=&#34;radare2-commands&#34;&gt;radare2 commands&lt;/h1&gt;
&lt;h2 id=&#34;command-args&#34;&gt;command Args&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;-d&lt;/code&gt; – start in debug mode&lt;br /&gt;
&lt;code&gt;-A&lt;/code&gt; – Auto &lt;code&gt;aaa&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;-a arm -m 0x0800C000 -b 16&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;-m [addr]&lt;/code&gt; – map file at given address (loadaddr)&lt;br /&gt;
&lt;code&gt;-i&lt;/code&gt; load script&lt;br /&gt;
&lt;a href=&#34;https://www.aldeid.com/wiki/Radare2&#34;&gt;Radare2 – aldeid&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;project-managment&#34;&gt;Project Managment&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;P&lt;/code&gt; – list projects&lt;br /&gt;
&lt;code&gt;Ps &amp;lt;filename&amp;gt;&lt;/code&gt; – Save to filename&lt;/p&gt;
&lt;h2 id=&#34;shell-commands&#34;&gt;shell commands&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;aaa&lt;/code&gt; – analyse all&lt;br /&gt;
&lt;code&gt;afl&lt;/code&gt; – command (Analyze Functions List).&lt;br /&gt;
&lt;code&gt;s &amp;lt;function&amp;gt;&lt;/code&gt; – seek to function or any memory address&lt;br /&gt;
&lt;code&gt;axt @@ str.*&lt;/code&gt; – find usage of strings&lt;br /&gt;
&lt;code&gt;ood&lt;/code&gt; – Open binary in debugger&lt;br /&gt;
&lt;code&gt;?[??][expr]&lt;/code&gt; – Help or evaluate math expression&lt;br /&gt;
&lt;code&gt;s..[addr]&lt;/code&gt; – seek to lower part of address&lt;/p&gt;
&lt;h2 id=&#34;set-parameters&#34;&gt;Set parameters&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;e var=?&lt;/code&gt; will list possible options&lt;br /&gt;
&lt;code&gt;e asm.arch&lt;/code&gt; – ASM achitecture arm&lt;br /&gt;
&lt;code&gt;e asm.bits&lt;/code&gt; – Processor bits 8.16.32.64 etc&lt;/p&gt;
&lt;h3 id=&#34;change-data-type&#34;&gt;Change Data Type&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;Cs [len]&lt;/code&gt; – set current address and length to string&lt;br /&gt;
&lt;code&gt;Cd [len]&lt;/code&gt; – set current address and length to data&lt;br /&gt;
&lt;code&gt;C- [len]&lt;/code&gt; – set current address and length to code&lt;br /&gt;
&lt;code&gt;Cf [len]&lt;/code&gt; – set current address and length to struct&lt;/p&gt;
&lt;h3 id=&#34;comments&#34;&gt;Comments&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;CC&lt;/code&gt; – Add comment at current location&lt;br /&gt;
&lt;code&gt;CC-&lt;/code&gt; – Remove Comment&lt;br /&gt;
&lt;code&gt;CCu &amp;lt;comments&amp;gt; @ &amp;lt;Address&amp;gt;&lt;/code&gt; – Add comments a specified address&lt;/p&gt;
&lt;h3 id=&#34;change-data-type-hint&#34;&gt;change data type (Hint)&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ahi s&lt;/code&gt; – set specific offset as string&lt;br /&gt;
&lt;code&gt;ahi s @0x080485a3&lt;/code&gt; set single address to string&lt;br /&gt;
&lt;code&gt;ahi s @@=0x080485a3 0x080485ad 0x080485b7&lt;/code&gt; – sets multiple memory addresses strings &lt;code&gt;@@&lt;/code&gt; is an integrator place holder&lt;/p&gt;
&lt;h3 id=&#34;rename-function&#34;&gt;rename function&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;s fcn.00401510
afn better_name
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Or by using&lt;br /&gt;
&lt;code&gt;afn better_name fcn.00401510&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;afn better_name 0x00401510&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;afn better_name @fcn.00401510&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;afn better_name @0x00401510&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;variables&#34;&gt;variables&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;afvn [identifier] [new_name]&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;afvt [name] [new_type]&lt;/code&gt; change type for given argument/local&lt;br /&gt;
&lt;code&gt;afvd&lt;/code&gt; print local variables (debug mode)&lt;/p&gt;
&lt;h3 id=&#34;print&#34;&gt;Print&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;pdf&lt;/code&gt; – print disassemble function&lt;br /&gt;
&lt;code&gt;ps&lt;/code&gt; – print string, EX: &lt;code&gt;ps @ 0x02ee&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;@&lt;/code&gt; is a temporary seek&lt;br /&gt;
&lt;code&gt;pdc&lt;/code&gt; – print C pseudo code&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;flags&#34;&gt;flags&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;fs&lt;/code&gt; – To list the flag spaces&lt;br /&gt;
&lt;code&gt;fs &amp;lt;flagspace&amp;gt;; f&lt;/code&gt; – show specific flag space&lt;/p&gt;
&lt;h3 id=&#34;searching&#34;&gt;searching&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;pd 0xdff ~0xc6&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;span-classez-toc-section-idrabin2_-_binary_infospanrabin2--binary-info&#34;&gt;&lt;span class=&#34;ez-toc-section&#34; id=&#34;rabin2_-_binary_info&#34;&gt;&lt;/span&gt;rabin2 – binary info&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;i?&lt;/code&gt; – Commands related to rabin2, information about the binary&lt;br /&gt;
&lt;code&gt;iz&lt;/code&gt; – List strings in data sections&lt;br /&gt;
&lt;code&gt;izz&lt;/code&gt; – Search for Strings in the whole binary&lt;/p&gt;
&lt;h2 id=&#34;visual-mode&#34;&gt;Visual mode&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;V&lt;/code&gt; – visual mode from r2 or switch to Graph in Visual Mode&lt;br /&gt;
&lt;code&gt;j / k&lt;/code&gt; – move forward or back&lt;br /&gt;
&lt;code&gt;p / P&lt;/code&gt; – switch between visual modes&lt;br /&gt;
&lt;code&gt;&amp;lt;enter&amp;gt;&lt;/code&gt; – jump / call to go to location&lt;br /&gt;
&lt;code&gt;:&amp;lt;r2 command&amp;gt;&lt;/code&gt; – run radare2 command in visual mode&lt;br /&gt;
&lt;code&gt;;[-]comment&lt;/code&gt; – add or [-] remove comment&lt;/p&gt;
&lt;h2 id=&#34;visual-graph&#34;&gt;Visual Graph&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;VV&lt;/code&gt; – visual graph&lt;br /&gt;
&lt;code&gt;:&amp;lt;r2 command&amp;gt;&lt;/code&gt; – run radare2 command in visual mode&lt;br /&gt;
&lt;code&gt;v&lt;/code&gt; – visual code review&lt;br /&gt;
&lt;code&gt;p / P&lt;/code&gt; – switch between visual graphs&lt;br /&gt;
&lt;code&gt;R&lt;/code&gt; – change colors&lt;br /&gt;
&lt;code&gt;;[-]comment&lt;/code&gt; – add or [-] remove comment&lt;br /&gt;
&lt;code&gt;?&lt;/code&gt; – show commands&lt;br /&gt;
&lt;code&gt;TAB&lt;/code&gt; – Jump to next function&lt;br /&gt;
&lt;code&gt;t&lt;/code&gt; – Jump to true branch&lt;br /&gt;
&lt;code&gt;f&lt;/code&gt; – Jump to false branch&lt;/p&gt;
&lt;h2 id=&#34;misc&#34;&gt;Misc&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;/V4 0x40000000 0x4000f000&lt;/code&gt; find perperal between those address ranges&lt;br /&gt;
&lt;code&gt;~&lt;/code&gt; – Grep&lt;br /&gt;
&lt;code&gt;?&lt;/code&gt; – at end count of hits on search&lt;br /&gt;
&lt;code&gt;$$&lt;/code&gt; – current offeset&lt;br /&gt;
&lt;code&gt;/v&lt;/code&gt; – find dwords&lt;br /&gt;
&lt;code&gt;/r&lt;/code&gt; – find refs&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/radare/radare2/blob/master/doc/intro.md&#34;&gt;radare2/intro.md at master · radare/radare2 · GitHub&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.megabeets.net/a-journey-into-radare-2-part-1/&#34;&gt;A journey into Radare 2 – Part 1: Simple crackme – Megabeets&lt;/a&gt;&lt;br /&gt;
&lt;a href=&#34;https://www.megabeets.net/a-journey-into-radare-2-part-2/&#34;&gt;A journey into Radare 2 – Part 2: Exploitation – Megabeets&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://insinuator.net/2016/08/reverse-engineering-with-radare2-intro/&#34;&gt;Reverse Engineering With Radare2 – Intro – Insinuator.net&lt;/a&gt;&lt;br /&gt;
&lt;a href=&#34;https://insinuator.net/2016/08/reverse-engineering-with-radare2-part-2/&#34;&gt;Reverse Engineering With Radare2 – Part 2 – Insinuator.net&lt;/a&gt;&lt;br /&gt;
&lt;a href=&#34;https://insinuator.net/2016/10/reverse-engineering-with-radare2-part-3/&#34;&gt;Reverse Engineering With Radare2 – Part 3 – Insinuator.net&lt;/a&gt;&lt;br /&gt;
&lt;a href=&#34;https://aboureada.com/cheat_sheet/2017/12/20/radare2_cheat_sheet.html&#34;&gt;Radare2 cheat Sheet – { Anas Aboureada }&lt;/a&gt;&lt;/p&gt;
</content:encoded>
        <dc:creator>Ben Mason</dc:creator>
        
        
        
        
          
            
              <category>radare2</category>
            
          
            
              <category>notes</category>
            
          
        
        
        
      </item>
      

    
  </channel>
</rss>
