/Python-Who-Is-On-My-WiFi

Python console application Who Is On My WiFI

Primary LanguagePythonMIT LicenseMIT

Who is on my WiFi

GitHub Repo stars GitHub watchers GitHub all releases GitHub release (latest by date) GitHub repo size GitHub GitHub top language

infoWho-is-on-my-wifi is a Python3 cli project that allows you to see who is stealing your WiFI network, scan your WiFI and show you how many devices are connected. Software can be installed on any Windows and Linux device (Mac not verified).

Table of contents

INSTALLATION

Windows need WinPcap.

Pip

pip3 install who-is-on-my-wifi

Debian based

Download the latest debian package and then run the code:

sudo dpkg -i Python-Who-Is-On-My-WiFi*.deb

Or download the latest deb for example from release page and follow these commands.

### Download commands ###
wget https://github.com/tucnakomet1/Python-Who-Is-On-My-WiFi/releases/download/1.3.5/who-is-on-my-wifi-v1.3.5.deb

### Install ###
sudo dpkg -i who-is-on-my-wifi-v1.3.5.deb
rm who-is-on-my-wifi-v1.3.5.deb #remove useless package

### Uninstall ###
sudo dpkg -r who-is-on-my-wifi-v1.3.5

Tarball/ Source

Download the latest tar release. Use any file manager or run command to extract package:

### Tarball ###
tar -xvzf Python-Who-Is-On-My-WiFi*.tar.gz

### Zip ###
unzip Python-Who-Is-On-My-WiFi*.zip

### Git ###
git clone https://github.com/tucnakomet1/Python-Who-Is-On-My-WiFi.git

### Install ###
cd Python-Who-Is-On-My-WiFi*
sudo chmod +x install
./install

USAGE

Command

Basics

usage: wiom [-h] [-v] [-c] [-d] [-w] [-t]

Who-Is-On-My-WIFi

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  show current version
  -l, --license  show Open Source License
  -c, --contact  show contact
  -d, --device   show information about your device
  -w, --who      show who is on your WiFi!
  -t , --time    int supplement for '-w' command (scanning '-t' seconds)

GitHub: <https://github.com/tucnakomet1>

How to see who is on my wifi?

!!! You have to run this command as sudo or as Administrator !!!

linux@name:~$ sudo wiom -w 			# default scanning time is 10 sec
linux@name:~$ sudo wiom -w -t 5 	# scanning wifi for 5 sec

How to get information about my device?

linux@name:~$ sudo wiom -d

Python3

Basics

>>> import who_is_on_my_wifi as wiom
>>>
>>> wiom.help()	# help page
>>> wiom.license()	# see license
>>> wiom.contact()	# contact page
>>>
>>> wiom.who(n)	# see who is on my wifi (int('n') is scanning time - optional; default is 10)
>>> wiom.device()	# information about wifi and your device

How to see who is on my wifi?

!!! You have to run this script as sudo or as Administrator !!!

from who_is_on_my_wifi import *

WHO = who() # who(n)
for j in range(0, len(WHO)):
	comm = f"\n{WHO[j][0]} {WHO[j][1]}\n{WHO[j][2]} {WHO[j][3]}\n{WHO[j][4]} {WHO[j][5]}\n"
	print(comm)

# >>> OUTPUT <<<

# IP Address: 192.168.0.1
# Mac Address: 38:43:7d:62:42:24
# Device: Compal Broadband Networks, Inc. (router)

# IP Address: 192.168.0.24
# Mac Address: 10:5b:ad:6c:64:55
# Device: Mega Well Limited

...

How to get information about my device?

from who_is_on_my_wifi import *

dev = device()

print(f"""
PC Name:            {dev[0]}
PC Product-Name:    {dev[1]}
MAC Address:        {dev[2]}
IP Address (host):  {dev[3]}
IP Address:         {dev[4]}
Public IP:          {dev[5]}
PC HostName:        {dev[6]}
WiFi Name:          {dev[7]}
Gateway:            {dev[8]}
DNS 1:              {dev[9]}
DNS 2:              {dev[10]}
Password:           {dev[11]}
Security:           {dev[12]}
Interface:          {dev[13]}
Frequency:          {dev[14]}
Signal:             {dev[15]}
Channel:            {dev[16]}


Country:            {dev[17]}
Region:             {dev[18]}
City:               {dev[19]}
Zip Code:           {dev[20]}
Latitude:           {dev[21]}
Longitude:          {dev[22]}
Map:                {dev[23]}
ISP:                {dev[24]}
""")

Error

RuntimeError: Sniffing and sending packets is not available at layer 2: winpcap is not installed

This error means that you don't have WinPcap installed.
To fix this you have to download it from their web page.

/bash/sh: 1: route: not found...

This error means that you don't have net-tools installed.
To fix this you have to download it using sudo apt-get install net-tools


SCREENSHOTS

wiom -d wiom -w
device who

Error

RuntimeError: Sniffing and sending packets is not available at layer 2: winpcap is not installed

This error means that you don't have ***WinPcap*** installed.
To fix this you have to [download](https://www.winpcap.org/install/) it from their web page.

/bash/sh: 1: route: not found...

This error means that you don't have net-tools installed.
To fix this you have to download it using sudo apt-get install net-tools

TO-DO LIST

  • Validated MacOS support
  • Add list of verified devices
  • Add WiFi Kill option

LICENSE

MIT

MIT License

Copyright (c) 2020 Tucna

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.