Python 8行代码实现获取本机wifi密码
var prcs = process.popen("netsh wlan show profiles");
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()
相关推荐
标签:
留言与评论(共有 0 条评论) |