subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# Run purple highlight script try: cmd = [PLAYWRIGHT_PYTHON, str(PURPLE_SCRIPT), fn_url, str(output_file), '--smart'] + keywords proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, start_new_session=True) try: stdout, stderr = proc.communicate(timeout=300) if proc.returncode == 0:- Confidence
- 82% confidence
- Finding
- proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, start_new_session=True)
