understand tor
This commit is contained in:
parent
9b7fe27781
commit
e0f19baf69
1 changed files with 15 additions and 0 deletions
15
scripts/understand_tor.py
Normal file
15
scripts/understand_tor.py
Normal 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")
|
Loading…
Reference in a new issue