subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
VERSION = "1.0.0" def run_cmd(cmd, timeout=10): try: r = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=timeout); return r.stdout.strip() except: return "" def check_health():- Confidence
- 97% confidence
- Finding
- try: r = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=timeout); return r.stdout.strip()
