Created
April 14, 2017 09:04
-
-
Save andreafortuna/ab386f11d12d5305c069193f6680b25a to your computer and use it in GitHub Desktop.
One-Line Perl Portscanner
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
#!/usr/bin/perl | |
use IO::Socket;for ($i=1;$i<65536;$i++) { if (my $s=IO::Socket::INET->new(PeerAddr=>$ARGV[0],PeerPort=>$i,Proto=>'tcp') ) { print "$i\n";close ($s); }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment