+ 1

Check wifi code

is there any way to get a saved WiFi password using python on Android?

13th Apr 2017, 1:20 AM
Shauly Kagan
Shauly Kagan - avatar
5 Answers
+ 4
Execute script/command line instructions from your python program for Ubuntu/Mint $ cd /etc/NetworkManager/system-connections/ $ ls -a $ sudo cat WIFI_SSID where WIFI_SSID is the name of one of the previously listed networks. You may want to save the output of your commands/script in a file and have the python program use it as you deem necessary. Way to access system connections via cmd/terminal exist also for windows and mac same principles apply
13th Apr 2017, 3:35 AM
seamiki
seamiki - avatar
+ 3
Good question, I thought this would be a question on how to get an unsaved WiFi password. I dony know the answer, but lets hope there will be
13th Apr 2017, 2:35 AM
MrCoder
MrCoder - avatar
+ 1
seamiki-can u write exactly what u Input Into python
13th Apr 2017, 3:42 AM
Shauly Kagan
Shauly Kagan - avatar
+ 1
@shauly k you have to use subprocess Popen() to call external shell commands: https://docs.python.org/3/library/subprocess.html#module-subprocess print subprocess.Popen("cd /etc/NetworkManager/system-connections/ && ls -a ", shell=True, stdout=subprocess.PIPE).stdout.read() Don't forget that you have to run your python program with root priviledges
13th Apr 2017, 7:10 PM
seamiki
seamiki - avatar
0
Bro plz give me wifi hacking code
22nd Jun 2022, 3:59 AM
Toxi͜͡CNoob
Toxi͜͡CNoob - avatar