Comments (3)
Indeed you are right -- I did a bit of debugging this afternoon, and
BeaEngine actually sees the LockPrefix:
[image: Images intégrées 1]
It considers it as "InvalidPrefix" (http://www.beaengine.org/prefstruct)
though for some reasons. I guess I'll have to dig BeaEngine to try and fix
that then.
Cheers,
0vercl0k
2015-03-07 6:13 GMT-08:00 agix [email protected]:
When looking for gadgets, lock prefixed instructions are not filtered (or
even marked).SIGILL occurs then, breaking the ropchain.
python -c 'import sys; sys.stdout.write("f04889cec3".decode("hex"))' > bin
ndisasm -b64 bin
00000000 F04889CE lock mov rsi,rcx
00000004 C3 ret
rp-lin-x64 --raw=x64 -f bin -r 1
0x00000000: mov rsi, rcx ; ret ; (1 found)—
Reply to this email directly or view it on GitHub
#6.
from rp.
As Beatrix seems to be back from the dead and fairly actively working on BeaEngine5, I've filed this issue: BeaEngine/beaengine#9 ; hopefully we'll finally have this fixed.
Cheers
from rp.
PS D:\Codes\rp++\bin\Debug> .\rp-win-x64.exe --file D:\agix.bin --rop=3 --raw=x64
Trying to open 'D:\agix.bin'..
FileFormat: raw, Arch: x64
Wait a few seconds, rp++ is looking for gadgets (2 threads max)..
A total of 4 gadgets found.
0x00000004: ret ; \xc3 (1 found)
0x00000000: lock mov rsi, rcx ; ret ; \xf0\x48\x89\xce\xc3 (1 found)
0x00000001: mov rsi, rcx ; ret ; \x48\x89\xce\xc3 (1 found)
0x00000002: mov esi, ecx ; ret ; \x89\xce\xc3 (1 found)
I'm closing this now, feel free to re-open if you find other instances of this issue.
Cheers
from rp.
Related Issues (20)
- ARM is not actually supported despite claiming to support ARM HOT 4
- vdso HOT 1
- consider final version 2 release HOT 2
- Re-add --rva option HOT 2
- ROP gadget not ending in RET instruction HOT 1
- feature request: support for avr HOT 2
- Memory Leak detected HOT 1
- Feature Request - Raw Bytes w/ results HOT 5
- Feature Request - Show output without coloring HOT 3
- make next branch the new master HOT 3
- mis-reported duplicates HOT 4
- Add an option to allow gadgets w/ branch instruction
- Clean-up InstructionInformation
- Clean-up script folder
- Fix bug in PE parser when sections uses IMAGE_SCN_MEM_EXECUTE
- Add option to display the hexbytes and don't display them by default
- Leverage capstone instruction group for ARM32
- Make sure `__PLK_TEXT_EXEC` / iOS kernelcache are supported
- help with getting the 32-bit version for windows OS HOT 3
- Investigate `ldm {..pc}`
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 rp.