Created
April 15, 2016 23:01
-
-
Save c0psrul3/ea0cdacdf8cd29cfaa9a5979b2b1a06b to your computer and use it in GitHub Desktop.
Scan outbound ports :: http://allports.exposed/ | http://www.blackhillsinfosec.com/?p=4811
This file contains hidden or 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..1024 | % {$test= new-object system.Net.Sockets.TcpClient; $wait = $test.beginConnect("allports.exposed",$_,$null,$null); ($wait.asyncwaithandle.waitone(250,$false)); if($test.Connected){echo "$_ open"}else{echo "$_ closed"}} | select-string " " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment