Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.89 KB | None | 0 0
  1. import requests
  2. import string
  3. import re
  4. from urllib import quote
  5.  
  6.  
  7. def checkIllegal(c):
  8.     url = 'http://888.darknet.com'
  9.     payload = ('username={}&password={}&action=Login').format(quote(c), quote(c))
  10.     headers = {
  11.         'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0',
  12.         'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  13.         "Accept-Language": "en-US,en;q=0.5",
  14.         "Accept-Encoding": "gzip, deflate",
  15.         "Content-Type": "application/x-www-form-urlencoded",
  16.         "Content-Length": '39',
  17.         "Referer": "http://888.darknet.com/",
  18.         "Cookie": "PHPSESSID=nt17ckdej1sgm8jjj8k6tvabb1",
  19.         "Upgrade-Insecure-Requests": '1'
  20.     }
  21.     r = requests.post(url, data = payload, headers=headers)
  22.     if re.search('.*Ilegal.*', r.text):
  23.         print ('{}\tIllegal').format(c)
  24.     else:
  25.         print ('{}\t Valid').format(c)
  26.  
  27. for c in string.punctuation:
  28.     checkIllegal(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement