Created
May 19, 2010 16:43
-
-
Save 3dd13/406515 to your computer and use it in GitHub Desktop.
VXRL - Defcon 2010 preparation
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 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' |
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 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() |
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 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