Skip to content

Commit 3bba4ab

Browse files
authored
Merge branch 'prathimacode-hub:main' into WebsiteBlocker
2 parents d16eb23 + 8188e7c commit 3bba4ab

40 files changed

+880
-0
lines changed
Loading
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Wifi Password Fetcher
2+
3+
## Short description:
4+
We will get all the wifi passwords from the device using the subprocess library and its function and copying to our clipboard using pyperclip.
5+
We get all password which were used atleast once on the device.
6+
7+
## List out the libraries imported:
8+
subprocess
9+
tkinter
10+
pyperclip
11+
12+
## Setup instructions:
13+
Here we just need to run the script and then press initialize process and then press show password and for copying press copy to clipboard button.
14+
15+
## Output:
16+
![Image](Images/output_1(wifi).png)
17+
![Image](Images/output_2(wifi).png)
18+
19+
20+
## Author:
21+
Neel Shah
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Libraries used:
2+
tkinter
3+
subprocess
4+
pyperclip
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
from tkinter import *
2+
import subprocess
3+
import pyperclip
4+
#making the gui for script
5+
root = Tk()
6+
root.geometry("600x600")
7+
pass_details = StringVar()
8+
myList = []
9+
10+
#function for fetching password and using the funtion of subprocess library
11+
def see_wifi_pass():
12+
global myList
13+
data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8').split('\n')
14+
profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i]
15+
for i in profiles:
16+
results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', i, 'key=clear']).decode('utf-8').split(
17+
'\n')
18+
results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b]
19+
try:
20+
myList.append(i)
21+
myList.append("--")
22+
myList.append(results[0])
23+
myList.append("|")
24+
except IndexError:
25+
myList.append(i)
26+
myList.append("--")
27+
myList.append("")
28+
29+
#showing the password
30+
def show_wifi_pass():
31+
pass_details.set(myList)
32+
33+
#copying to clipboard using pyperclip library
34+
def copytoclipboard():
35+
password = pass_details.get()
36+
pyperclip.copy(password)
37+
38+
#final layout for gui and printing all things
39+
Label(root, text="Getting all the Wifi passwords from your device", font="calibri 20 bold").pack()
40+
Button(root, text="Initiate Process Now", command=see_wifi_pass).pack(pady=10)
41+
Button(root, text="Show wifi pass details", command=show_wifi_pass).pack(pady=10)
42+
Entry(root, textvariable=pass_details, width=80).pack(pady=10)
43+
Button(root, text="Copy to clipbord", command=copytoclipboard).pack(pady=10)
44+
45+
root.mainloop()
46+

PyGamesScripts/Alien Invasion/.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PyGamesScripts/Alien Invasion/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PyGamesScripts/Alien Invasion/.idea/misc.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PyGamesScripts/Alien Invasion/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PyGamesScripts/Alien Invasion/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)