The rules of engagement permit exploitation but prohibit persistence. While reading a public exploit, a tester finds that after gaining a shell it quietly creates a scheduled task for re-entry. What is the best action?
Show the answer
Correct answerA. Strip the persistence routine and verify the edited code in a lab
AWhy this is right: Removing the unwanted routine keeps the exploit within the rules; a lab test confirms it still works.
BWhy not this: Cleanup afterward still creates persistence, which the rules of engagement prohibit.
CWhy not this: Exploitation is permitted; the problem is one routine in the code, so skipping the host is excessive.
DWhy not this: Disclosing it later does not make creating the persistence permitted.
Code analysis exposed behavior that the rules of engagement forbid, so the tester should remove it and validate the modified exploit before use. Running it as written and cleaning up later still breaks the no-persistence rule while the exploit runs.