吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1915|回复: 8
收起左侧

[其他转载] aardio8行代码获取本机WIFI密码,方法2种

[复制链接]
等到烟火也清凉 发表于 2022-11-14 11:01
//RUNAS// 代码原创是aardio作者的哈

import process.popen; import console
var prcs = process.popen("netsh wlan show profiles");  //方法一8行代码
for wifi in prcs.lines("<All User Profile>|<所有用户配置文件>\s*\:\s*(.*)"){  //遍历进程所有输出项,参数指定模式匹配表达式
        var prcsKey = process.popen("netsh wlan show profile name="+wifi+" key=clear"); //创建命令行进程(显示密码)
        for password in prcsKey.lines("<Key Content>|<关键内容>\s*\:\s*(.*)"){//遍历所有行,获取密码字段
                console.print( wifi, password );
        }
} console.pause()


//方法二
import thread.token;
import crypt.protectData;
import sys.wlan;
//获取 SYSTEM 权限
thread.token.impersonate("winlogon.exe",function(){
       
        //创建无线接口对象
        var wlan = sys.wlan();
       
        //遍历全部无线连接
        for wifi,guid,description,flags,access,xmlProfile in wlan.eachProfile(){
               
                //xmlProfile 是 XML 配置对象
                var km = xmlProfile.queryEle(
                        tagName = "keyMaterial"
                );
               
                //获取密码,keyMaterial 元素内的文本
                var password = km.innerText();
               
                //解密
                password = crypt.protectData.decrypt(password);
               
                //清除尾部 '\0'
                password = string.str(password);
               
                //显示结果
                console.print(wifi,password)
        }       
QQ图片20221114110005.png

免费评分

参与人数 1吾爱币 +1 热心值 +1 收起 理由
zhongwenmingma + 1 + 1 热心回复!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

5151diy 发表于 2022-11-14 13:13
通过程序得到密码
mokson 发表于 2022-11-14 13:53
aardio 记不住名称的话,就用 a radio 记吧,一个收音机
x9xg21 发表于 2022-11-14 15:03
abcxyzmn 发表于 2022-11-14 17:35
学习。对于小白,有弄成可执行文件更好。
zhongwenmingma 发表于 2022-11-15 09:36
小白看不懂,难受
YouMingChen 发表于 2022-11-15 16:08
aardio是软件名嘛?
tp522022 发表于 2022-11-17 13:36
.... aardio 看成了Android 我就说没有权限 怎么可能获取WiFi的密码  win系统上的wiifi 配置在个配置文件下面 随便读取
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-3 22:29

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表