What does the -p option specify in hping3 command syntax?

Prepare for the Certified Ethical Hacker Version 11 Exam with a comprehensive test featuring flashcards and multiple choice questions, each accompanied by hints and explanations to ensure a thorough understanding. Ace your ethical hacking exam with confidence!

Multiple Choice

What does the -p option specify in hping3 command syntax?

Explanation:
In hping3, you craft packets for a specific destination service, and the destination port tells the remote host which service to deliver the data to. The -p option sets that destination port in the transport-layer header. This is the port on the target machine that the service you want to test is listening on (for example, 80 for HTTP or 443 for HTTPS). The counterpart is the source port, which is the port on your side used for the reply path and is set with -s. So, when you want to probe whether a service on a given port is reachable, you specify that port with -p and often combine it with flags like SYN to test reachability. Keep in mind that ports don’t exist in ICMP packets, so -p doesn’t apply there.

In hping3, you craft packets for a specific destination service, and the destination port tells the remote host which service to deliver the data to. The -p option sets that destination port in the transport-layer header. This is the port on the target machine that the service you want to test is listening on (for example, 80 for HTTP or 443 for HTTPS). The counterpart is the source port, which is the port on your side used for the reply path and is set with -s. So, when you want to probe whether a service on a given port is reachable, you specify that port with -p and often combine it with flags like SYN to test reachability. Keep in mind that ports don’t exist in ICMP packets, so -p doesn’t apply there.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy