渗透测试小技巧
[TOC]
非交互式添加用户并创建密码
1 | useradd test |
获取Windows机器上保存的WIFI密码
Powershell
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize
命令行
netsh wlan show profiles "NETWORK-SSID" key=clear