5/02/2019

Testing command(curl, wget, portscan, ssh) with Powershell

curl
$ Invoke-WebRequest -Uri https://www.google.com

wget
$ Get-WebFile https://www.google.com out.html

portscan
$ 1..1024 | % {echo ((new-object Net.Sockets.TcpClient).Connect("192.168.0.14",$_)) "$_ open"} 2>$null

ssh
$ Install-Module Posh-SSH
$ Get-command -Module Posh-SSH



HAHWUL

Security engineer, Rubyist, Gopher and H4cker!

Share: | Coffee Me: