Created
November 10, 2016 11:29
-
-
Save CreateRemoteThread/65ba8e7d7b1aad4cb928593d1382156b to your computer and use it in GitHub Desktop.
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
#!/usr/bin/python | |
import angr | |
import simuvex | |
class hooked_ptrace(simuvex.SimProcedure): | |
def run(self,a,b,c,d,e): | |
return self.state.se.Extract(31,0,e) | |
p = angr.Project('yolomolo_patch2') | |
#p.hook(0x400520,hooked_ptrace) | |
pg = p.factory.path_group() | |
pg.explore(find=0x405AD8,avoid=(0x405AF0,0x400520)) | |
s = pg.found[0].state | |
f = open("found.bin","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