Skip to content

Instantly share code, notes, and snippets.

@CreateRemoteThread
Created October 29, 2016 00:02
Show Gist options
  • Select an option

  • Save CreateRemoteThread/d3373afffacc616e340d932b52d0e431 to your computer and use it in GitHub Desktop.

Select an option

Save CreateRemoteThread/d3373afffacc616e340d932b52d0e431 to your computer and use it in GitHub Desktop.
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