Port Scanning

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /homepages/24/d159568878/htdocs/StreetHacker_Prod/modules/book/book.module).
Admin's picture
Port Scanning

What is a Port Scanner?

A port scanner is a program that attempts to connect to a host IP address by essentially seeing what doors or "ports" are open. After the scanner has completed it will return which ports it has found to be open. The results will also be returned with the standard name for that port and its typical classification.

Why Port Scan?

The main reason for running a port scan on a designated WAN IP address is to gain info on the server. As a result of running a port scan you will have a detailed list of what ports are vulnerable on the remote system; hence, you can then select the best plan of attack.

When to Port Scan

You will want to run a port scan after you have a remote WAN IP address. To retrieve an active WAN IP address, run an IP Scan or Whois Scan.

Port Classifications

When a port scanner returns results, it attempts to classify each active port. The usual classifications are File Upload, Connection, and Miscellaneous. A File Upload port is generally open. No work is required to attempt to connect to these port. Connection ports are ports running server applications requiring login credentials. You will have to have an account to access this port. If you do not have an account you can always attempt a brute force login or run an exploit script. Lastly the Miscellaneous ports are less frequently used; therefore, you will have to find a custom exploit to open it for a connect.

Using the Port Scanner

  1. Install a Port Scanner
  2. Know your Target
    View IP Scan or Whois Scan to learn how to obtain an active WAN IP address.
  3. Issuing the Command
    You will be able to utilize the program via your console terminal. The instructional command to run the Port Scanner is pscan:[WANIP Address] or pscan:24.131.102.175
  4. Waiting for Scan Results
    Depending on what type of internet connection your notebook supports, you may have to wait longer for scan results.
  5. Prepare to Connect
    Once the port scanner has returned a listing of running and open ports on the target system, the next step is to connect.


Port Scanning Tip

After the port scan has returned the open ports on the remote server, you want to check for any File Upload ports as they are the easiest to connect to.