In Scapy, responses are divided into two sets labeled what?

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

In Scapy, responses are divided into two sets labeled what?

Explanation:
In Scapy, responses to sent packets are organized into two groups: those that received a reply and those that didn’t. When you use the send-and-receive function, Scapy returns a pair: the first list contains the answered packets (each entry is a pair of the sent packet and its reply), and the second list contains the unanswered packets (sent packets for which no reply was captured within the timeout). This structure helps you quickly see which hosts responded and which didn’t, and it’s different from things like a single “results” set. If you use a single-packet function like sr1, you get just one answered packet or None, rather than the two-group split.

In Scapy, responses to sent packets are organized into two groups: those that received a reply and those that didn’t. When you use the send-and-receive function, Scapy returns a pair: the first list contains the answered packets (each entry is a pair of the sent packet and its reply), and the second list contains the unanswered packets (sent packets for which no reply was captured within the timeout). This structure helps you quickly see which hosts responded and which didn’t, and it’s different from things like a single “results” set. If you use a single-packet function like sr1, you get just one answered packet or None, rather than the two-group split.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy