Debugging tools

The following debugging tools are used:

Let's look at how to run this tool in port scan mode. Syntax has an argument of 0-100 (port range to be scanned), -S (Send Syn Packet) and 4.2.2.2 (IP address for host) to be scanned. Results show that one port is opened for DNS and this is true, 4.2.2.2 is a DNS server and hence the result is as expected:

In this example, the nmap tool will try to connect to the remote host in two ways. The first way is through a syntax argument (-sS) , which means that a 3-way handshake will be completed. With the other method, an (-sT) tool will use an application like a  browser in the backend to connect to a remote host:

In case the target port is closed, the source receives an RST/ACK packet directly.