Skip to content

Added the code for WIfiConnectionFinder which list all devices connected to your system #263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Python/WifiConnectionFinder/Readme.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Wifi Connection Finder

## Introduction
```
Wifi Connection finder is a python script that list all wifi connected to your device.It uses the concept of subprocess
The subprocess module present in Python(both 2.x and 3.x) is used to run new applications or programs through Python code by creating new processes. It also helps to obtain the input/output/error pipes as well as the exit codes of various commands
```
### In order to get the information about the wifi devices system is connected to we will use the command given below
```
subprocess.check_output(['netsh', 'wlan', 'show', 'profiles'])
```

## How to use the code
```
1. Download the given code
2. Run the wififinder.py file
3. All the devices connected to wifi will be listed as ordered list
```
## Output

![endpoint](https://github.com/Tejas1510/hacking-tools-scripts/blob/wifi/Python/WifiConnectionFinder/images/image1.png)

![built with love](https://forthebadge.com/images/badges/built-with-love.svg)

Check out my Github profile [Tejas1510!](https://github.com/Tejas1510)
Binary file added Python/WifiConnectionFinder/images/image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions Python/WifiConnectionFinder/wififinder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import subprocess ## to know more about subprocess please refer readme file where i have explained the details about it
wififinalData = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles'])
finalData = wififinalData.decode('utf-8', errors ="backslashreplace")
finalData = finalData.split('\n')
allWifiName = []
for i in finalData:
if "All User Profile" in i :
i = i.split(":")
i = i[1]
i = i[1:-1]
allWifiName.append(i)
print("Your System is Connected to following wifi networks : ")
i=1
for name in allWifiName:
print(i,")",name)
i=i+1