This repository has been archived on 2025-07-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
an/gather.py
2024-12-12 16:19:59 +00:00

13 lines
387 B
Python

import subprocess
import os
try:
os.makedirs("tcpdyn-data")
except FileExistsError:
pass
for n, port in enumerate(range(4000, 4040)):
total = 10*(10-(n % 10))
for i in range(total):
print(f"====================== {port} {i+1}/{total} ======================")
subprocess.run(["bash", "../doCapture.sh", str(port), "256K"], cwd="tcpdyn-data", check=True)