Created
December 4, 2021 18:07
-
-
Save ffcommax/545102001ff50f2710b2ff0673759a81 to your computer and use it in GitHub Desktop.
Simple_Port_scanner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1..255 | % { $a = $_; 135,389,3389,445,5986 | % {"10.0.61.$a";echo ((new-object Net.Sockets.TcpClient).Connect("10.0.61.$a",$_)) "Port $_ is open!"} 2>$null} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment