Git Product home page Git Product logo

Comments (3)

0vercl0k avatar 0vercl0k commented on June 2, 2024

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.

0vercl0k avatar 0vercl0k commented on June 2, 2024

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.

0vercl0k avatar 0vercl0k commented on June 2, 2024
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)

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.