subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
cmd = spec["cmd"] label = spec.get("label", cmd[:40]) try: result = subprocess.run( cmd, shell=True, capture_output=True, text=True, timeout=15 ) output = result.stdout.strip()- Confidence
- 97% confidence
- Finding
- result = subprocess.run( cmd, shell=True, capture_output=True, text=True, timeout=15 )
