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?
Stop the script when the first sweep is complete and rely on a separate script to check recently added hosts
Add a looping construct that updates the target list with newly found entries and continues scanning them as they appear
Include a function that prints fresh targets to the console but does not scan them again in the current run
Pass the initial set of targets through one iteration and skip any additional entries found during that run
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 types of looping constructs can be used in Python for the script update?
Open an interactive chat with Bash
How can Python handle newly discovered addresses during a script iteration?
Open an interactive chat with Bash
Why is re-evaluating fresh discoveries important in penetration testing?