understand tor

This commit is contained in:
Quentin 2020-01-20 18:42:15 +01:00
parent 9b7fe27781
commit e0f19baf69

15
scripts/understand_tor.py Normal file
View file

@ -0,0 +1,15 @@
#!/usr/bin/python3
import sys,re
print('authenticate ""')
input()
print('setevents circ')
input()
with open('better_logs.txt', 'w') as f:
for line in sys.stdin:
r = re.search(r'650 CIRC (\d+) (\S+) \S+ BUILD_FLAGS=\S+ PURPOSE=(\S+) HS_STATE=(\S+) TIME_CREATED=(\S+) (REASON=(\S+))?
', line)
if not r: continue
f.write("\n")