subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run_hook(hook_cmd, label): print(f" [hook:{label}] {hook_cmd}") result = subprocess.run(hook_cmd, shell=True) if result.returncode != 0: print(f" [!] {label} hook exited with code {result.returncode}") return result.returncode- Confidence
- 100% confidence
- Finding
- result = subprocess.run(hook_cmd, shell=True)
