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

curl

1
2
Invoke-WebRequest -Uri https://www.google.com

wget

1
2
Get-WebFile https://www.google.com out.html

portscan

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

ssh

1
2
3
Install-Module Posh-SSH
Get-command -Module Posh-SSH

Licensed under CC BY-NC-SA 4.0
Last updated on Jul 10, 2021 01:05 +0900