22 Dec 2007

HTTPortscan 0.01

Here is a simple script I made that when you give it an IP address it scans port 80, and tells you if the port is open or closed.

Just copy the source into your favourite editor and away you go.

#!/usr/bin/perl
#httportscan.pl
#Simple port scanner

use IO::Socket;

$sock = IO::Socket::INET->new("$ARGV[0]:80");

if ($sock) {
print "Port 80 is open \n";
}

2 comments:

TrendyBird said...

i know a bit about computer but have no idea what you thing does or means

Anonymous said...

errm its a nice start but why not have portnumber as optional argument but just default it to port 80.
Just an idea :)

Post a Comment