User Tools

Site Tools


network:check_promiscuous

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
network:check_promiscuous [2019/11/30 18:52] – removed peternetwork: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.  This mode of operation is sometimes given to a network snoop server that captures and saves all packets for analysis (for example, for monitoring network usage).
 +
 +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;fpromisc) 2>&1 | Mail \
 +    -s PROMCUOUS sysadmin sysadmin@sharewiz.net
 +    fi
 +  done
 +  sleep 1800
 +done
 +</code>
  
network/check_promiscuous.1575139975.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki