network:check_promiscuous
This is an old revision of the document!
Network - Check Promiscuous
#!/bin/bash # # Scans ethernet cards if they are in Promisuous mode. # # every half hour. while true do for i in eth0 eth1 do if ifconfig $i | grep PROMISC > /dev/null then (echo $i Promisc;fpromisc) 2>&1 | Mail \ -s PROMCUOUS sysadmin sysadmin@sharewiz.net fi done sleep 1800 done
network/check_promiscuous.1468239159.txt.gz · Last modified: 2020/07/15 09:30 (external edit)