Upload n' Sell Exploit 09-25-2012, 10:19 PM
#1
This is my first Python script but it has a purpose ![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
What it does is gets the last sold file (yes this stuff is being sold for money) on Upload n' Sell and downloads it for free due to a silly mistake made by the site owners. It repeats ever 60 seconds.
So far I've got lots of interesting random files.
So here is the script
Just put that into a file with .py as the extension and if you have Python installed it should run smoothly ![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
When the files are downloaded they go to the same folder the script is in so you might want to give it its own folder.
So far there is only 2 problems that I found. If two files are being offered on the site it crashes as the text grabbing thing can't work correctly.
The other problem is if there are no new items sold it will just redownload the last item again (I will most likely be fixing this)
Any code suggestions are welcome
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
What it does is gets the last sold file (yes this stuff is being sold for money) on Upload n' Sell and downloads it for free due to a silly mistake made by the site owners. It repeats ever 60 seconds.
So far I've got lots of interesting random files.
So here is the script
Code:
import urllib2
import urllib
import time
running = True
while running:
x = "http://www.uploadnsell.com/download/"
url = urllib2.urlopen("http://uploadnsell.com/check-sale.php")
page = url.readlines()
dllink = x + page[0]
dlsite = urllib2.urlopen(dllink)
dlpage = dlsite.readlines()
filedl = dlpage[167][215:261]
y = dlpage[167][263:400]
x = len(y) - 21
z = y[0:x]
print "Downloading " + z
urllib.urlretrieve ( filedl, z )
print "File " + z + " Downloaded"
print "Waiting 60 seconds"
time.sleep(60)
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
When the files are downloaded they go to the same folder the script is in so you might want to give it its own folder.
So far there is only 2 problems that I found. If two files are being offered on the site it crashes as the text grabbing thing can't work correctly.
The other problem is if there are no new items sold it will just redownload the last item again (I will most likely be fixing this)
Any code suggestions are welcome
![Biggrin Biggrin](https://sinister.ly/images/smilies/set/biggrin.png)