Search Tools Links Login

Remote and Local Port Scanner

Posted: 2002-06-01
By: ArchiveBot
Viewed: 73

Filed Under:

Visual Basic 6

Title Uploaded Size 9/3/2020 3:45:00 PM 25,924

I know there are other port scanners posted here at PSC, and definitely they're a ton better than this, but no matter, this code is well documented and is great to use for learning about winsock.
This port scanner allows the user to do two things... either do a scan to find all the ports that are in use (within the port range specified) on the local machine, or do a scan to find all the ports that are accepting connections on another machine (though you can scan yourself as well).
The user specifies a target IP address, a port range (0-32676), and the max amount of winsock elements that can be loaded at once (this doesn't mean that the program will be limited to scanning that amount of ports per second, though). As well, there's an option for the user to have the name of the port (what the port is used for) displayed (if it's documented - there's an array in the program that has the names of the ports).
The port scanner closes connections and counts them out as errored connections if a connection is not established between the machines on a particular port within .75 seconds of the time the request is sent...

Original Author: Diretto

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.