network:check_promiscuous
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
network:check_promiscuous [2019/11/30 18:52] – removed peter | network:check_promiscuous [2020/07/20 09:19] (current) – old revision restored (2016/10/07 16:23) 91.137.17.185 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Network - Check Promiscuous ====== | ||
+ | |||
+ | Promiscuous mode allows a network device to intercept and read each network packet that arrives in its entirety. | ||
+ | |||
+ | Promiscuous mode can be used in a malicious way to sniff on a network. | ||
+ | |||
+ | <code bash> | ||
+ | #!/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; | ||
+ | -s PROMCUOUS sysadmin sysadmin@sharewiz.net | ||
+ | fi | ||
+ | done | ||
+ | sleep 1800 | ||
+ | done | ||
+ | </ | ||
network/check_promiscuous.1575139975.txt.gz · Last modified: 2020/07/15 09:30 (external edit)