Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.