Code Monkey home page Code Monkey logo

Comments (2)

radare avatar radare commented on May 20, 2024

aa != -A

Use aaa

On 04 Jan 2016, at 03:35, Nick Hoffman [email protected] wrote:

I'm not sure if this is the appropriate place for this issue, however I'm getting inconsistent results when using the Ruby r2pipe gem vs Radare2

For reference, the binary that I'm looking at is MD5: 5896d840a314e8bc86ceadb5a6450cf8

When using Radare2, I'm able to see the full list of functions, below is a snippet

:> radare2 -A 5896d840a314e8bc86ceadb5a6450cf8
-- Your project name should contain an uppercase letter, 8 vowels, some numbers, and the first 5 numbers of your private bitcoin key
[0x0040508e]> afl
?
152
[0x0040508e]> afl
0x0040508e 235 6 entry0
0x00404740 82 4 fcn00404740
0x00401500 83 1 subKERNEL32dll_GetTempPathA_500
0x00404a86 19 1 fcn00404a86
0x00404a66 32 3 fcn00404a66
snipped
When using the Ruby API, the following information is returned

:> irb
irb(main):001:0> require 'r2pipe'
=> true
irb(main):002:0> r2p = R2Pipenew("5896d840a314e8bc86ceadb5a6450cf8")
=> #<R2Pipe:0x00000000e022c0 @file="5896d840a314e8bc86ceadb5a6450cf8", @READ=#File:/dev/pts/2, @Write=#File:/dev/pts/2, @pid=6861>
irb(main):003:0> r2pcmd('aa')
=> ""
irb(main):004:0> r2pcmd('afl
?')
=> "1\r\n"
irb(main):005:0> r2pcmd('afl')
=> "0x0040508e 235 6 entry0\r\n"
Is there a reason that r2pipe is only seeing 1 function listed versus the 152 recognized by Radare2?

Thank you for your time


Reply to this email directly or view it on GitHub.

from radare2-bindings.

malware-kitten avatar malware-kitten commented on May 20, 2024

Ha! Looks like a case of user error! Thanks for the reference.

from radare2-bindings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.