Quickly Scan & Find Open Ports with PortNinja!

Here’s PortNinja, a fast, multithreaded implementation that scans for open listening ports on the target server in the ports range 0 – 65535.

Example execution of HashNinja.


Multithreading was implemented in this program to create a dedicated software thread for each socket to connect to a dedicated port of the specified target (i.e. 65,536 threads/sockets are briefly created). All these created sockets/threads connect to their individual dedicated ports concurrently; maximizing an optimal scan rate.


PortNinja does not perform a stealthy scan, that is, it works on the basis of establishing the complete three-way handshake instead of just sending a SYN flagged packet followed by the RST flagged packet (as it would in a SYN scan). PortNinja terminates each connection with its individual port properly by the time that individual port has been scanned; but this in itself does not by any means dictate that the target will not be aware of all these sudden connection attempts through all of its ports that are being “scanned” by PortNinja.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.