diff --git a/scripts/understand_tor.py b/scripts/understand_tor.py new file mode 100644 index 0000000..cbaea7a --- /dev/null +++ b/scripts/understand_tor.py @@ -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")