Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import sys
- sys.stdout = open('Scrapelog.log', 'w')
- def get_siphon(ID):
- url = "http://siph0n.net/exploits.php"
- querystring = {"id":ID}
- headers = {
- 'upgrade-insecure-requests': "1",
- 'user-agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36",
- 'accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- 'referer': "http://siph0n.net/index.php",
- 'accept-encoding': "gzip, deflate",
- 'accept-language': "en-US,en;q=0.8",
- 'cookie': "__cfduid=d12225d26a4f719b68011a1c74377b6561503609536; N1SESSID=oril3jg8ne0tambtuk8qej7fh4; _ga=GA1.2.2053540506.1503609533; _gid=GA1.2.133145280.1503609533",
- 'cache-control': "no-cache",
- 'postman-token': "0960e316-f4a0-ea73-a6b3-0b277ece7c29"
- }
- response = requests.request("GET", url, headers=headers, params=querystring)
- return(response.text.split('<pre>')[1].split('</pre>')[0])
- #first 921 are empty
- for x in range(920,8521):
- print('Downloading paste number ' + str(x) + ' of 8521')
- data = get_siphon(x)
- if len(data) > 80:
- with open(str(x) + '.txt', 'w') as f:
- f.write(data)
- print('+')
- else:
- print('Nothing usefull here, skipping this one.')
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement