mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-22 13:04:25 +01:00
commit
dd3b0b2968
@ -19,7 +19,7 @@ You can download KickThemOut by cloning the `Git Repo <https://github.com/k4m4/k
|
|||||||
|
|
||||||
$ git clone https://github.com/k4m4/kickthemout.git
|
$ git clone https://github.com/k4m4/kickthemout.git
|
||||||
|
|
||||||
$ cd kickthemout
|
$ cd kickthemout/
|
||||||
|
|
||||||
$ sudo pip install -r requirements.txt
|
$ sudo pip install -r requirements.txt
|
||||||
|
|
||||||
@ -37,10 +37,6 @@ If you would like to install KickThemOut on a Mac, please run the following::
|
|||||||
Keep in mind that you might be asked to run some commands after executing the previous step. Moving on::
|
Keep in mind that you might be asked to run some commands after executing the previous step. Moving on::
|
||||||
|
|
||||||
$ git clone https://github.com/k4m4/kickthemout.git
|
$ git clone https://github.com/k4m4/kickthemout.git
|
||||||
|
|
||||||
$ cd kickthemout/
|
|
||||||
|
|
||||||
$ python kickthemout.py
|
|
||||||
|
|
||||||
**NOTE**: You need to have `Homebrew <http://brew.sh/>`_ installed before running the Mac OS installation.
|
**NOTE**: You need to have `Homebrew <http://brew.sh/>`_ installed before running the Mac OS installation.
|
||||||
|
|
||||||
|
7
scan.py
7
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 address 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:
|
||||||
@ -61,4 +66,4 @@ def scanNetwork():
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if net:
|
if net:
|
||||||
return scan_and_print_neighbors(net, interface)
|
return scan_and_print_neighbors(net, interface)
|
||||||
|
Loading…
Reference in New Issue
Block a user