23 lines
310 B
Bash
Executable File
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/
|