A Python script performs an address sweep but stops after the first pass. Newly discovered addresses are not checked during the same run. Which update allows the script to reevaluate fresh discoveries in subsequent passes?
Add a looping construct that updates the target list with newly found entries and continues scanning them as they appear
Pass the initial set of targets through one iteration and skip any additional entries found during that run
Include a function that prints fresh targets to the console but does not scan them again in the current run
Stop the script when the first sweep is complete and rely on a separate script to check recently added hosts
A repeating loop (while or for) that adds newly discovered addresses to the target list ensures scanning across multiple passes. Relying on one pass or ignoring additional findings can cause meaningful data to be missed. Printing or skipping those addresses will not help future enumeration. Embedding them back into the procedure promotes thoroughness in ongoing sweeps.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a looping construct in Python?
Open an interactive chat with Bash
How does a Python script update a list dynamically?
Open an interactive chat with Bash
Why is reevaluating newly discovered targets important in penetration testing?