How do the four different Nmap port scanning types relate to the three-way handshake? Is there a better one than the Nmap port scan type?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
How do the four different Nmap port scanning types relate to the three-way handshake? Is
there a better one than the Nmap port scan type?
Transcribed Image Text:How do the four different Nmap port scanning types relate to the three-way handshake? Is there a better one than the Nmap port scan type?
Expert Solution
Step 1

The four different Nmap port scanning types relate to the three-way handshake as follows:
The four different Nmap port scanning types (TCP connect, TCP SYN, TCP FIN, and TCP XMAS) all relate to the three-way handshake in the sense that they are all ways to establish a connection with a remote host. However, each of these scanning types has a different way of going about this process.

a) TCP connect is the most straightforward way to establish a connection. It simply tries to complete the three-way handshake with the remote host. If the handshake is successful, then the port is considered open. If the handshake is unsuccessful, then the port is considered closed.

b) TCP SYN is a bit more complicated. In this type of scan, the scanner does not complete the three-way handshake. Instead, it only sends the first SYN packet. If the remote host responds with a SYN-ACK packet, then the port is considered open. If the remote host responds with a RST packet, then the port is considered closed.

c) TCP FIN is a bit more aggressive than TCP SYN. In this type of scan, the scanner sends a FIN packet instead of a SYN packet. If the remote host responds with a RST packet, then the port is considered closed. If the remote host does not respond, then the port is considered open.

d) TCP XMAS is the most aggressive type of scan. In this type of scan, the scanner sends a FIN, URG, and PUSH packet. If the remote host responds with a RST packet, then the port is considered closed. If the remote host does not respond, then the port is considered open.

- They also relate to the three-way handshake in the sense that they are all used to find open ports on a target system.

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Types of input and output devices
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education