Skip to content
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

run_command方法中的返回语句字符集需要修改为“gbk” #729

Closed
B-starboy opened this issue Feb 25, 2021 · 3 comments
Closed

Comments

@B-starboy
Copy link

run_command方法中的返回语句字符集需要修改为“gbk”
return output.decode("gbk").rstrip("\r\n")

get_password方法中,判断为"win32“的分支需要修改
elif sys.platform == "win32":
password = run_command(f"netsh wlan show profile name="{ssid}" key=clear")
password = re.findall(r"关键内容\s+:\s(.*)", password)[0]

Originally posted by @weibasai in sdushantha/wifi-password#50

@wt12315
Copy link

wt12315 commented Apr 1, 2021

list index out of range?

how to deal with it?

@B-starboy
Copy link
Author

run_command方法中的返回语句字符集需要修改为“gbk”

return output.decode("gbk").rstrip("\r\n")

get_password方法中,判断为"win32“的分支需要修改

elif sys.platform == "win32":

    password = run_command(f"netsh wlan show profile name=\"{ssid}\" key=clear")

    password = re.findall(r"关键内容\s+:\s(.*)", password)[0]

Originally posted by @weibasai in sdushantha/wifi-password#50

@PeterCon
Copy link
Collaborator

PeterCon commented Oct 7, 2021

Not in scope for this repo.

@PeterCon PeterCon closed this as completed Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants