subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
shell = "cmd" if os.name == "nt" else "sh" flag = "/C" if os.name == "nt" else "-c" try: cp = subprocess.run( [shell, flag, cmd], capture_output=True, timeout=timeout, )- Confidence
- 98% confidence
- Finding
- cp = subprocess.run( [shell, flag, cmd], capture_output=True, timeout=timeout, )
