A Kill Cord for your Laptop

前言

准备

走过的坑

UDEV  [4042.754116] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0 (usb)
ACTION=remove                                                                       
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0                           
SUBSYSTEM=usb                                                                       
DEVTYPE=usb_interface                                                               
PRODUCT=13fe/5100/110                                                               
TYPE=0/0/0                                                                          
INTERFACE=8/6/80                                                                    
MODALIAS=usb:v13FEp5100d0110dc00dsc00dp00ic08isc06ip50in00                          
SEQNUM=3709                                                                         
USEC_INITIALIZED=2346820353                                                         
adb_user=yes                                                                        
ID_PATH=pci-0000:00:14.0-usb-0:3:1.0                                                
ID_PATH_TAG=pci-0000_00_14_0-usb-0_3_1_0                                            
ID_FOR_SEAT=usb-pci-0000_00_14_0-usb-0_3_1_0                                        
ACTION=="remove", SUBSYSTEM=="usb", ENV{MODALIAS}=="usb:v13FEp5100d0110dc00dsc00dp00ic08isc06ip50in00",IMPORT{program}="/usr/bin/xpub", RUN+="/usr/bin/sudo -u kali-team /usr/bin/xdotool key Super_L+l"

测试

reference:

触发_udev_规则事件的桌面提示

Introducing BusKill: A Kill Cord for your Laptop

xdotool

xpub

A Kill Cord for your Laptop

全文结束