13 lines
387 B
Python
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)
|