Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import cfscrape # https://github.com/Anorov/cloudflare-scrape - git install cfscrape
  2. import sys
  3. import time
  4.  
  5. httpcheck = sys.argv[1]
  6. print(httpcheck)
  7.  
  8. if "http://" not in httpcheck:
  9. httptarget = "http://" + httpcheck
  10. else:
  11. httptarget = httpcheck
  12.  
  13. maxtime = int(sys.argv[2])
  14. starttime = time.time()
  15.  
  16. while (time.time() - starttime) < maxtime:
  17. request = "GET / HTTP/1.1\r\n"
  18. cookie_value, user_agent = cfscrape.get_cookie_string(httptarget)
  19. request += "Cookie: %s\r\nUser-Agent: %s\r\n" % (cookie_value, user_agent)
  20. print(request)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement