epicyon/scripts/mitm

19 lines
421 B
Plaintext
Raw Normal View History

2022-10-03 11:20:44 +00:00
#!/bin/bash
dir_name="epicyon"
if [ ! -d /etc/${dir_name} ]; then
if [ -d /opt/epicyon-tor ]; then
dir_name="epicyon-tor"
elif [ -d /opt/epicyon-i2p ]; then
dir_name="epicyon-i2p"
elif [ -d /opt/epicyon-yggdrasil ]; then
dir_name="epicyon-yggdrasil"
fi
fi
journalctl -u ${dir_name} | grep 'MITM:' > .mitm_events.txt
2022-10-03 11:20:44 +00:00
if [ ! -f .mitm_events.txt ]; then
echo 'No MITM events'
else
cat .mitm_events.txt
fi