Skip to content

Commit 35f764f

Browse files
authored
Add files via upload
1 parent 038c2e1 commit 35f764f

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

Python/WifiConnectionFinder/Readme.MD

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Wifi Connection Finder
2+
3+
## Introduction
4+
```
5+
Wifi Connection finder is a python script that list all wifi connected to your device.It uses the concept of subprocess
6+
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
7+
```
8+
### In order to get the information about the wifi devices system is connected to we will use the command given below
9+
```
10+
subprocess.check_output(['netsh', 'wlan', 'show', 'profiles'])
11+
```
12+
13+
## How to use the code
14+
```
15+
1. Download the given code
16+
2. Run the wififinder.py file
17+
3. All the devices connected to wifi will be listed as ordered list
18+
```
19+
## Output
20+
21+
![endpoint](https://github.com/Tejas1510/hacking-tools-scripts/blob/wifi/Python/WifiConnectionFinder/images/image1.png)
22+
23+
![built with love](https://forthebadge.com/images/badges/built-with-love.svg)
24+
25+
Check out my Github profile [Tejas1510!](https://github.com/Tejas1510)
54 KB
Loading
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import subprocess ## to know more about subprocess please refer readme file where i have explained the details about it
2+
wififinalData = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles'])
3+
finalData = wififinalData.decode('utf-8', errors ="backslashreplace")
4+
finalData = finalData.split('\n')
5+
allWifiName = []
6+
for i in finalData:
7+
if "All User Profile" in i :
8+
i = i.split(":")
9+
i = i[1]
10+
i = i[1:-1]
11+
allWifiName.append(i)
12+
print("Your System is Connected to following wifi networks : ")
13+
i=1
14+
for name in allWifiName:
15+
print(i,")",name)
16+
i=i+1

0 commit comments

Comments
 (0)