GithubHelp home page GithubHelp logo

Comments (10)

zxc120389574 avatar zxc120389574 commented on May 14, 2024 2

仅仅针对Windows10,我修改了下wifi_password.py文件。自己测试是成功的,有兴趣你可以用文件对比工具对比下修改的内容。
文件地址在这里:https://note.youdao.com/ynoteshare1/index.html?id=d130d9fdb160e98a44e7032cddd2881b&type=note

from wifi-password.

lixiaoyi01 avatar lixiaoyi01 commented on May 14, 2024 1

win10 要用gbk解析,并且获取得密码串需要改一下正则 re.findall(r"Key Content\s+:\s(.)", password) =>re.findall(r"关键内容\s+:\s(.)", password)

from wifi-password.

RuoyuDeng avatar RuoyuDeng commented on May 14, 2024 1

你好,我根据你的代码改了之后
1.
image

image
在原安装路径下执行python setup.py install重新依据新的wifi_password.py文件再次安装后,问题仍然存在:
image
请问可能是什么原因呢?

from wifi-password.

RuoyuDeng avatar RuoyuDeng commented on May 14, 2024

请教一下,gbk解析是什么意思呢?是在cmd里执行的吗?

from wifi-password.

lixiaoyi01 avatar lixiaoyi01 commented on May 14, 2024

1、
image
2、
image
需要修改这两块、我没有权限修改。

from wifi-password.

sunrabbit123 avatar sunrabbit123 commented on May 14, 2024

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.

RuoyuDeng avatar RuoyuDeng commented on May 14, 2024

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.

sunrabbit123 avatar sunrabbit123 commented on May 14, 2024

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.

RuoyuDeng avatar RuoyuDeng commented on May 14, 2024

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.

sdushantha avatar sdushantha commented on May 14, 2024

This is happening due to language issues. Thanks to @celianvdb, it has been fixed in 72b299d

from wifi-password.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.