daily pastebin goal
1%
SHARE
TWEET

scrape_siph0n-net.py

osteth Aug 24th, 2017 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. import sys
  3. sys.stdout = open('Scrapelog.log', 'w')
  4.  
  5. def get_siphon(ID):
  6.     url = "http://siph0n.net/exploits.php"
  7.    
  8.     querystring = {"id":ID}
  9.    
  10.     headers = {
  11.         'upgrade-insecure-requests': "1",
  12.         '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",
  13.         'accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  14.         'referer': "http://siph0n.net/index.php",
  15.         'accept-encoding': "gzip, deflate",
  16.         'accept-language': "en-US,en;q=0.8",
  17.         'cookie': "__cfduid=d12225d26a4f719b68011a1c74377b6561503609536; N1SESSID=oril3jg8ne0tambtuk8qej7fh4; _ga=GA1.2.2053540506.1503609533; _gid=GA1.2.133145280.1503609533",
  18.         'cache-control': "no-cache",
  19.         'postman-token': "0960e316-f4a0-ea73-a6b3-0b277ece7c29"
  20.         }
  21.    
  22.     response = requests.request("GET", url, headers=headers, params=querystring)
  23.    
  24.     return(response.text.split('<pre>')[1].split('</pre>')[0])
  25. #first 921 are empty
  26. for x in range(920,8521):
  27.     print('Downloading paste number ' + str(x) + ' of 8521')
  28.     data = get_siphon(x)
  29.     if len(data) > 80:
  30.         with open(str(x) + '.txt', 'w') as f:
  31.             f.write(data)
  32.             print('+')
  33.     else:
  34.         print('Nothing usefull here, skipping this one.')
  35.         pass
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top