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

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