Skip to content

Instantly share code, notes, and snippets.

@sqrtrev
Created July 13, 2020 10:37
Show Gist options
  • Save sqrtrev/dc021eaa6611f832b61f466e88e0db54 to your computer and use it in GitHub Desktop.
Save sqrtrev/dc021eaa6611f832b61f466e88e0db54 to your computer and use it in GitHub Desktop.
#Code by sqrtrev@WreckTheLine
import angr
def main():
p = angr.Project("reversing")
simgr = p.factory.simulation_manager(p.factory.full_init_state())
simgr.explore(find=lambda s:b'correct' in s.posix.dumps(1))
return simgr.found[0].posix.dumps(0)
if __name__ == '__main__':
print(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment