Skip to content

Instantly share code, notes, and snippets.

@CreateRemoteThread
Created October 28, 2016 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CreateRemoteThread/09ac2039ef208bf31b27cca8832ea727 to your computer and use it in GitHub Desktop.
Save CreateRemoteThread/09ac2039ef208bf31b27cca8832ea727 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import pwn
import copy
d = open("data.bin")
data = d.read()
d.close()
for i in range(0,len(data)):
remote = pwn.remote("4ff0eff1d46c1d74d152aaf36de6f2799020bdbc.ctf.site",50000)
data_copy = bytearray(copy.copy(data))
data_copy[i] = 0xFF
remote.send(data_copy)
del data_copy
print remote.recv()
remote.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment