Giter Club home page Giter Club logo

Comments (5)

sashs avatar sashs commented on July 22, 2024

Hey,

ropper has such an option, but it works a little bit different. The option -I (upper i) sets the imagebase. The default imagebase of an library in linux is 0x0 and if you use that option, you can add an offset.
But for example /bin/ls (x64) has an imagebase of 0x400000
0x000000000040d6cb: xlatb; jne 0xd6a8; mov rax, rcx; ret;
If you set -I 0x1000000, you will get
0x000000000100d6cb: xlatb; jne 0xd6a8; mov rax, rcx; ret;
If you set -I 0x0, you will get (only the offset in the file will be printed)
0x000000000000d6cb: xlatb; jne 0xd6a8; mov rax, rcx; ret;

This is very useful when you look for gadgets in PE files and the application makes use of ASLR.

I hope this helps. ;)

from ropper.

hugsy avatar hugsy commented on July 22, 2024

How could I miss that... Sorry about that, closing the issue!

Thanks again for your tool!

from ropper.

sashs avatar sashs commented on July 22, 2024

No problem. :)
You can set this in the interactive commandline as well. There is the command imagebase

from ropper.

hugsy avatar hugsy commented on July 22, 2024

Yes, that's exactly what I was looking for. Just FYI, I made ropper the only ROP finder for my tool gef, and the use of the option imagebase is to create an accurate ROP chain based on the current debugging context (considering the process mapping, page permission and such). ROPgadget allows me only to do a subset of this but I think ropper will do the trick perfectly.

Cheers,

from ropper.

sashs avatar sashs commented on July 22, 2024

Cool! In the ropper cli it is possible to open multiple files. ATM I have noticed that I forgot to change -I that you can change the imagebase when you open multiple files with --files.

from ropper.

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.