mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-22 13:04:25 +01:00
Update scan.py
This commit is contained in:
parent
47e21e236b
commit
2b661805da
2
scan.py
2
scan.py
@ -13,7 +13,6 @@ def scanNetwork():
|
|||||||
raise ValueError("illegal netmask value", hex(arg))
|
raise ValueError("illegal netmask value", hex(arg))
|
||||||
return 32 - int(round(math.log(0xFFFFFFFF - arg, 2)))
|
return 32 - int(round(math.log(0xFFFFFFFF - arg, 2)))
|
||||||
|
|
||||||
|
|
||||||
def to_CIDR_notation(bytes_network, bytes_netmask):
|
def to_CIDR_notation(bytes_network, bytes_netmask):
|
||||||
network = scapy.utils.ltoa(bytes_network)
|
network = scapy.utils.ltoa(bytes_network)
|
||||||
netmask = long2net(bytes_netmask)
|
netmask = long2net(bytes_netmask)
|
||||||
@ -23,7 +22,6 @@ def scanNetwork():
|
|||||||
|
|
||||||
return net
|
return net
|
||||||
|
|
||||||
|
|
||||||
def scan_and_print_neighbors(net, interface, timeout=1):
|
def scan_and_print_neighbors(net, interface, timeout=1):
|
||||||
hostsList = []
|
hostsList = []
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user