mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-22 21:14:25 +01:00
Merge pull request #19 from dardelet/fix/skip-APIPA-adresses
Skip APIPA network
This commit is contained in:
commit
664d2419bd
5
scan.py
5
scan.py
@ -54,6 +54,11 @@ def scanNetwork():
|
|||||||
if netmask <= 0 or netmask == 0xFFFFFFFF:
|
if netmask <= 0 or netmask == 0xFFFFFFFF:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Skip APIPA network (corresponds to the 169.254.0.0/16 adress range)
|
||||||
|
# See https://fr.wikipedia.org/wiki/Automatic_Private_Internet_Protocol_Addressing for more details
|
||||||
|
if network == 2851995648:
|
||||||
|
continue
|
||||||
|
|
||||||
net = to_CIDR_notation(network, netmask)
|
net = to_CIDR_notation(network, netmask)
|
||||||
|
|
||||||
if interface != scapy.config.conf.iface:
|
if interface != scapy.config.conf.iface:
|
||||||
|
Loading…
Reference in New Issue
Block a user