Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
#
# This script extracts the pieces that we need to compile our bridge line.
# This will have to do until the following bug is fixed:
# <https://gitlab.torproject.org/tpo/core/tor/-/issues/29128>
TOR_DAEMON=tor@default
PT_STATE=/var/lib/tor/pt_state/obfs4_bridgeline.txt
addr=$(journalctl -u "$TOR_DAEMON" | grep 'is reachable from the outside' | grep -vP "\[.+:.*\[" | \
(gdb) run
Starting program: /usr/bin/rspamd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/powerpc64le-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
lpeg_allocate_mem_low (sz=512) at ./contrib/lua-lpeg/lpvm.c:77
77 ./contrib/lua-lpeg/lpvm.c: No such file or directory.
(gdb) bt
#0 lpeg_allocate_mem_low (sz=512) at ./contrib/lua-lpeg/lpvm.c:77