sip-tarpit/installation/openbsd/uninstall.sh
2024-04-17 13:15:58 +02:00

23 lines
310 B
Bash
Executable File

#!/bin/sh
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# Delete user:
userdel _tarpit
# Delete binary:
rm /usr/local/bin/sip-tarpit
# Delete rc.d:
rcctl disable sip_tarpit
rm /etc/rc.d/sip_tarpit
# Delete config file
rm -rf /etc/sip-tarpit/
# Log directory
rm -rf /var/log/sip_tarpit/