Created
October 29, 2016 00:02
-
-
Save CreateRemoteThread/d3373afffacc616e340d932b52d0e431 to your computer and use it in GitHub Desktop.
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 | |
| p = angr.Project('FUck_binary') | |
| pg = p.factory.path_group() | |
| pg.explore(find=lambda p: "Your flag is " in p.state.posix.dumps(1)) | |
| s = pg.found[0].state | |
| f = open("fuck","wb") | |
| f.write(s.posix.dumps(0)) | |
| f.close() | |
| print "ok" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment