Created
August 7, 2023 10:22
-
-
Save NicolaiSoeborg/9c1b3f8616b9328e54488a7e9cf0ae56 to your computer and use it in GitHub Desktop.
Angr boilerplate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import angr | |
proj = angr.Project("./chal", auto_load_libs=False) | |
state = proj.factory.entry_state() | |
simgr = proj.factory.simulation_manager(state) | |
simgr.explore(find=lambda s: b"Correct!" in s.posix.dumps(1)) | |
# Out[6]: <SimulationManager with 2 active, 34 deadended, 1 found> | |
print(simgr.found[0].posix.dumps(0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment