Update scan.py

This commit is contained in:
Nikolaos Kamarinakis 2017-01-01 22:39:53 +02:00 committed by GitHub
parent 47e21e236b
commit 2b661805da
1 changed files with 0 additions and 2 deletions

View File

@ -13,7 +13,6 @@ def scanNetwork():
raise ValueError("illegal netmask value", hex(arg))
return 32 - int(round(math.log(0xFFFFFFFF - arg, 2)))
def to_CIDR_notation(bytes_network, bytes_netmask):
network = scapy.utils.ltoa(bytes_network)
netmask = long2net(bytes_netmask)
@ -23,7 +22,6 @@ def scanNetwork():
return net
def scan_and_print_neighbors(net, interface, timeout=1):
hostsList = []
try: