Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import string
- import re
- from urllib import quote
- def checkIllegal(c):
- url = 'http://888.darknet.com'
- payload = ('username={}&password={}&action=Login').format(quote(c), quote(c))
- headers = {
- 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0',
- 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- "Accept-Language": "en-US,en;q=0.5",
- "Accept-Encoding": "gzip, deflate",
- "Content-Type": "application/x-www-form-urlencoded",
- "Content-Length": '39',
- "Referer": "http://888.darknet.com/",
- "Cookie": "PHPSESSID=nt17ckdej1sgm8jjj8k6tvabb1",
- "Upgrade-Insecure-Requests": '1'
- }
- r = requests.post(url, data = payload, headers=headers)
- if re.search('.*Ilegal.*', r.text):
- print ('{}\tIllegal').format(c)
- else:
- print ('{}\t Valid').format(c)
- for c in string.punctuation:
- checkIllegal(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement