ubuntu:network:check_promiscuous
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:network:check_promiscuous [2019/11/30 18:53] – created peter | ubuntu:network:check_promiscuous [2021/01/08 12:19] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - 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 | ||
- | </ | ||
ubuntu/network/check_promiscuous.1575139998.txt.gz · Last modified: 2020/07/15 09:30 (external edit)