Created
October 28, 2016 23:57
-
-
Save CreateRemoteThread/09ac2039ef208bf31b27cca8832ea727 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 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