Comments (3)
Should be fixed by #78
And the test case is integrated into CI.
from angrop.
[ins] In [28]: chain.print_payload_code()
code_base = 0x0
chain = b""
chain += p32(code_base + 0x15219f) # mov eax, edx; pop ebx; pop edi; ret
chain += p32(code_base + 0x22a000)
chain += p32(0xdeadbeec)
chain += p32(code_base + 0x183d4f) # pop es; add dword ptr [edi + 3], ebx; sbb al, 0x8b; notrack jmp ebx
The issue is caused by ebx
. Basically, the <next pc>
value is constrained in this case, which is not great. I'll see what I can do to mitigate this.
And this is probably common in other chains as well.
from angrop.
I don't have a perfect solution right now. The monkey patch is to add a retry-loop to add_to_mem: c42ed67
(just like what we do in other builders)
from angrop.
Related Issues (20)
- Regression: does not find syscall gadget with blob backend HOT 2
- keep gadgets with large stack shifts HOT 2
- x86_64 `ret 0x10` instructions not handled properly HOT 2
- x86 syscall instructions mis-identified HOT 3
- func_call gadget in mips HOT 1
- `test_chainbuilder.test_arm_func_call` failing intermittently in CI
- Multiple Register Pops Not Working in ARM. HOT 3
- filter out privileged instructions HOT 5
- Bad Assumption About Rebasing Data Bytes in Chains against Binaries With PIE HOT 2
- write_to_mem Broken for 32 bit Binaries HOT 6
- TODO Features
- add_to_mem fails in main due to RopValue Type Error HOT 2
- add_to_mem fails in arm. HOT 2
- stack pivot using rsp HOT 12
- LR Register Not Handled Well in Arm HOT 4
- rop.func_call() bug in ARM HOT 2
- Long Chains Timeout when calling chain.payload_str() HOT 2
- gets stuck while generating memory write chain HOT 1
- pop ds; ret gadgets are not properly handled. HOT 3
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 angrop.