summaryrefslogtreecommitdiff
path: root/att script/6_dot_DDoS/start_pending.py
diff options
context:
space:
mode:
Diffstat (limited to 'att script/6_dot_DDoS/start_pending.py')
-rw-r--r--att script/6_dot_DDoS/start_pending.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/att script/6_dot_DDoS/start_pending.py b/att script/6_dot_DDoS/start_pending.py
new file mode 100644
index 0000000..5e7edf0
--- /dev/null
+++ b/att script/6_dot_DDoS/start_pending.py
@@ -0,0 +1,20 @@
+import os
+import argparse
+import time
+
+parser = argparse.ArgumentParser()
+parser.add_argument('-n', '--n', default=3)
+parser.add_argument('-round', '--round', default=5)
+parser.add_argument('-wait', '--wait', default=150)
+args = parser.parse_args()
+stime = time.perf_counter()
+round = int(args.round)
+wait_time = int(args.wait)
+for i in range(int(args.n)):
+ #print(f"python3 cve44487.py -s {i}")
+ os.popen(f"python att_pending_cookie.py -stime {stime} -round {round} -wait {wait_time}")
+while True:
+ current_time = time.perf_counter()
+ elapsed_time = current_time - stime
+ print(f"经过的时间:{elapsed_time:.2f}秒", end="\r")
+ time.sleep(1) # 暂停一秒钟 \ No newline at end of file