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
IndexError: list index out of range #42
Comments
win10 要用gbk解析,并且获取得密码串需要改一下正则 re.findall(r"Key Content\s+:\s(.)", password) =>re.findall(r"关键内容\s+:\s(.)", password) |
请教一下,gbk解析是什么意思呢?是在cmd里执行的吗? |
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. |
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? |
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) |
I have figured out why it happened. Since my computer is in Chinese, so I have to change the "Key" in |
仅仅针对Windows10,我修改了下wifi_password.py文件。自己测试是成功的,有兴趣你可以用文件对比工具对比下修改的内容。 |
This is happening due to language issues. Thanks to @celianvdb, it has been fixed in 72b299d |
Hi,
I do not know why no matter what SSID I put in as input, it keeps saying IndexError for some reason.
my
OS
isWindows 10
my python version is
3.9.0
my
wifi-password
version is1.0.9
The text was updated successfully, but these errors were encountered: