Which function sends a packet and waits to receive a response from the target?

Study for the SANS560 GIAC Penetration Tester (GPEN) Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

Which function sends a packet and waits to receive a response from the target?

Explanation:
To collect responses after sending a crafted packet, use the send-and-receive function provided by the tool. This function transmits the packet and then waits for replies, collecting all the responses that come back. It can handle multiple responders, returning a pair of results: the responses that were received and those that did not reply. This is why the chosen option is the best fit: it embodies the typical send-and-wait-for-replies behavior across potentially multiple targets. If you only wanted the first reply, another function would be more appropriate, but for gathering all responses to a single probe, this function is the standard approach. In contrast, sending alone doesn’t wait for or capture replies; a function designed to return just a single reply would limit you to the first response, and a layer-2 variant would operate at a different protocol layer and has different expectations about the kinds of responses and the structure returned.

To collect responses after sending a crafted packet, use the send-and-receive function provided by the tool. This function transmits the packet and then waits for replies, collecting all the responses that come back. It can handle multiple responders, returning a pair of results: the responses that were received and those that did not reply.

This is why the chosen option is the best fit: it embodies the typical send-and-wait-for-replies behavior across potentially multiple targets. If you only wanted the first reply, another function would be more appropriate, but for gathering all responses to a single probe, this function is the standard approach.

In contrast, sending alone doesn’t wait for or capture replies; a function designed to return just a single reply would limit you to the first response, and a layer-2 variant would operate at a different protocol layer and has different expectations about the kinds of responses and the structure returned.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy