美文网首页
获取windows/mac中已保存的wifi密码

获取windows/mac中已保存的wifi密码

作者: 竹子柳 | 来源:发表于2019-05-25 20:55 被阅读0次

    查看windows/mac电脑上已保存wifi密码

    文中"your_wifi_name"表示你要查询的wifi名,读者需要替换成自己的wifi名称
    "your_wifi_password" 表示查询到的wifi密码

    WINDOWS

    windows系统上使用netsh来获取wifi密码

    • 打开cmd命令行(开始 - 运行 - cmd)
    • 执行netsh命令
    C:\Users\apple>netsh wlan show profile name=your_wifi_name key=clear
    
    接口 WLAN 上的配置文件 your_wifi_name:
    =======================================================================
    
    已应用: 所有用户配置文件
    
    配置文件信息
    -------------------
        版本                   : 1
        类型                   : 无线局域网
        名称                   : your_wifi_name
        控制选项               :
            连接模式           : 自动连接
            网络广播           : 只在网络广播时连接
            AutoSwitch         : 请勿切换到其他网络
            MAC 随机化: 禁用
    
    连接设置
    ---------------------
        SSID 数目              : 1
        SSID 名称              :“your_wifi_name”
        网络类型               : 结构
        无线电类型             : [ 任何无线电类型 ]
        供应商扩展名           : 不存在
    
    安全设置
    -----------------
        身份验证         : WPA2 - 个人
        密码                 : CCMP
        安全密钥               : 存在
        关键内容            : your_wifi_password
    
    费用设置
    -------------
        费用                : 无限制
        阻塞                : 否
        接近数据限制        : 否
        过量数据限制        : 否
        漫游                : 否
        费用来源            : 默认
    
    
    C:\Users\apple>
    

    MAC

    mac 上使用security可以获取到wifi密码(操作系统会要求输入用户名,密码验证身份)

    1deMacBook-Pro:~ a1$ security find-generic-password -ga "your_wifi_name"
    keychain: "/Library/Keychains/System.keychain"
    version: 256
    class: "genp"
    attributes:
        0x00000007 <blob>="TP-LINK_402"
        0x00000008 <blob>=<NULL>
        "acct"<blob>="TP-LINK_402"
        "cdat"<timedate>=0x32303139303432333132353433385A00  "20190423125438Z\000"
        "crtr"<uint32>=<NULL>
        "cusi"<sint32>=<NULL>
        "desc"<blob>="AirPort network password"
        "gena"<blob>=<NULL>
        "icmt"<blob>=<NULL>
        "invi"<sint32>=<NULL>
        "mdat"<timedate>=0x32303139303432333132353433385A00  "20190423125438Z\000"
        "nega"<sint32>=<NULL>
        "prot"<blob>=<NULL>
        "scrp"<sint32>=<NULL>
        "svce"<blob>="AirPort"
        "type"<uint32>=<NULL>
    password: "your_wifi_paasword"
    

    相关文章

      网友评论

          本文标题:获取windows/mac中已保存的wifi密码

          本文链接:https://www.haomeiwen.com/subject/sjnzzqtx.html