usbkill is an anti-forensic LKM kill-switch that waits for a change on your usb ports and turns off your computer.
To run:
make
sudo insmod usbkill.koYou will need to have the linux-headers package installed. If you haven't:
apt-get install linux-headers-$(uname -r)List usb devices:
lsusb