忘记wifi密码可用

刷b站偶然刷到用python来解wifi密码,看的那个博主有用到一个自己写的解码本,估计就是一个个遍历解开他。在本网站只找到查看之前登录过的wifi密码的代码,如下:

import subprocess

def get_wifi_password(profile_name):
    try:
        result = subprocess.check_output(
            ['netsh', 'wlan', 'show', 'profile', profile_name, 'key=clear'],
            stderr=subprocess.STDOUT,  # Redirect stderr to stdout
            text=True                   # Return output as string instead of bytes
        )
        return result
    except subprocess.CalledProcessError as e:
        print(f"An error occurred while trying to retrieve the Wi-Fi password: {e.output}")
        return None

# Example usage (replace 'YourWiFiProfileName' with the actual WiFi profile name you want to query)
wifi_passwords = get_wifi_password('YourWiFiProfileName')
print(wifi_passwords)

我想等我哪次没流量用了,肯定会把那个代码敲下来。不过,ai提示:未经授权访问他人的Wi-Fi网络是非法的行为!!!

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值