Created
December 17, 2018 01:57
-
-
Save aaronyoo/eff6876b6210e90a1056b9813f42c4c6 to your computer and use it in GitHub Desktop.
Solution to angerme
This file contains 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 | |
# Load the binary | |
import angr | |
proj = angr.Project('angrme') | |
# Create a simulation manager | |
simgr = proj.factory.simgr() | |
# Use the simulation manager to explore until win condition --> :) | |
simgr.explore(find=lambda s: b":)" in s.posix.dumps(1)) | |
# Get the flag from the state | |
s = simgr.found[0] | |
flag = s.posix.dumps(0) | |
print(flag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment