diff options
| author | 朱宇佳 <[email protected]> | 2024-01-04 01:13:30 +0000 |
|---|---|---|
| committer | 朱宇佳 <[email protected]> | 2024-01-04 01:13:30 +0000 |
| commit | f2fcf07b64d140bd1f015032c9128fdd5e736974 (patch) | |
| tree | daaffe891e2bbec804d6a705ddb84b9968e879a4 /att script/6_dot_DDoS/start_pending.py | |
| parent | 6c706a64d054f02dd009b05c8f95637ddba1cb75 (diff) | |
| parent | 5b82adc274471a57f68baf8efa4e8ed4bf35f51c (diff) | |
当前已收集代码合并
See merge request zhuyujia/yydns!1
Diffstat (limited to 'att script/6_dot_DDoS/start_pending.py')
| -rw-r--r-- | att script/6_dot_DDoS/start_pending.py | 20 |
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 |
