Comments (5)
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.
How could I miss that... Sorry about that, closing the issue!
Thanks again for your tool!
from ropper.
No problem. :)
You can set this in the interactive commandline as well. There is the command imagebase
from ropper.
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.
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)
- When I extract vmlinux, the process kills itself
- Offset calculation is incorrect
- Incorrectly generated ROP chain due to push instruction in a gadget HOT 1
- disassemble error ? HOT 4
- Cannot Find some Gadgets because of disassemble error ! HOT 3
- Show addresses along with symbols
- tests fail on macOS: RuntimeError: context has already been set HOT 2
- Error trying to get some gadgets on libc HOT 1
- Crash upon loading libc HOT 8
- Z3 was successfully installed. ; [ERROR] z3 has to be installed in order to use semantic search HOT 24
- AttributeError: 'module' object has no attribute 'get_start_method' HOT 2
- loading libc error HOT 1
- The codesx
- Ropchain generator displays incorrect syscall code for execve HOT 3
- Excessive Memory Usage (9GB) in Ropper When Loading from Cache with a 16MB Coredump File and '--single' Option (22MB Cache) HOT 1
- Ropper is not compatible with ppc HOT 1
- Semantic errors fix on python3/python3.11
- Please report this error on https://github.com/sashs/ropper
- Ropper misses forward edges of jumps that lead to ret
- pyproject.toml compatibility with future python HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ropper.