ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 208 - PT0-002 discussion

Report
Export

Given the following script:

Which of the following BEST characterizes the function performed by lines 5 and 6?

A.
Retrieves the start-of-authority information for the zone on DNS server 10.10.10.10
Answers
A.
Retrieves the start-of-authority information for the zone on DNS server 10.10.10.10
B.
Performs a single DNS query for www.comptia.org and prints the raw data output
Answers
B.
Performs a single DNS query for www.comptia.org and prints the raw data output
C.
Loops through variable b to count the results returned for the DNS query and prints that count to screen
Answers
C.
Loops through variable b to count the results returned for the DNS query and prints that count to screen
D.
Prints each DNS query result already stored in variable b
Answers
D.
Prints each DNS query result already stored in variable b
Suggested answer: D

Explanation:

The script is using the scapy library to perform a DNS query for www.comptia.org and store the response in variable b. Lines 5 and 6 are using a for loop to iterate over each answer in variable b and print its summary to the screen. This can help the penetration tester to view the DNS records returned by the query.

asked 02/10/2024
Yenziwe Yengwa
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first