PT0-002 • Practice Test 9
Free PT0-002 practice test — 10 questions with explanations. Set 9. No signup required.
A penetration tester is reviewing a Python script that attempts to exploit a command injection vulnerability. The script uses the 'subprocess' module with the 'shell=True' argument. Which of the following code changes would be MOST effective to reduce the risk of unintended consequences when executing system commands?
Choose an answer to begin — your selection is scored in the full session.
10 questions · instant feedback and full explanations after every question.