Comments (10)
仅仅针对Windows10,我修改了下wifi_password.py文件。自己测试是成功的,有兴趣你可以用文件对比工具对比下修改的内容。
文件地址在这里:https://note.youdao.com/ynoteshare1/index.html?id=d130d9fdb160e98a44e7032cddd2881b&type=note
from wifi-password.
win10 要用gbk解析,并且获取得密码串需要改一下正则 re.findall(r"Key Content\s+:\s(.)", password) =>re.findall(r"关键内容\s+:\s(.)", password)
from wifi-password.
在原安装路径下执行python setup.py install
重新依据新的wifi_password.py文件再次安装后,问题仍然存在:
请问可能是什么原因呢?
from wifi-password.
请教一下,gbk解析是什么意思呢?是在cmd里执行的吗?
from wifi-password.
from wifi-password.
Enter the following syntax into the window shell.
netsh wlan show profiles name="SSID" key=clear
And please check what Key Contents has been translated into.
And replace it.
This is covered in #39.
from wifi-password.
Hi, I think I am a bit lost when you said: "replace it". This might sound stupid but where should I replace what to what exactly?
from wifi-password.
this is example code
elif platform == constants.WINDOWS:
password = Utils.run_command(
f'netsh wlan show profile name="{ssid}" key=clear | findstr Key'
)
if password != "":
password = re.findall(r"Key Content\s+:\s(.*)", password)[0]
you can find it(Key Content, Key)
from wifi-password.
I have figured out why it happened. Since my computer is in Chinese, so I have to change the "Key" in
f'netsh wlan show profile name="{ssid}" key=clear | findstr Key'
to Chinese, which is "关键内容“. Now it works pefectly.
from wifi-password.
This is happening due to language issues. Thanks to @celianvdb, it has been fixed in 72b299d
from wifi-password.
Related Issues (20)
- AttributeError: module 'utils' has no attribute 'get_platform'
- wifi QR
- Termux HOT 1
- Win10系统中文版执行命令返回的是中文字符串,不能用正则匹配key HOT 2
- Didn't fetch my password with `sudo nmcli ...`, only with `nmcli ...` HOT 1
- Wifi
- Wi-Fi password HOT 1
- Gg
- Unable to find the password HOT 1
- It work on Linux mint? HOT 1
- It's too troublesome to enter the user name password every time HOT 2
- [BUG] IndexError: list index out of range
- Don't work in termux
- Wifi password
- WIFI.PASSWORD HOT 4
- AIRPORT_PATH = "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport" HOT 1
- WiFi code
- Wifi password
- ![Screenshot_2023-12-24-05-43-49-284_com android settings](https://github.com/sdushantha/wifi-password/assets/154694173/a8575a50-9930-4a80-a7b1-ea6d1382fb76)
- TP-Link_E5F2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wifi-password.