subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run_command(cmd, cwd=None): """运行命令""" try: result = subprocess.run( cmd, shell=True, cwd=cwd or SKILL_DIR,- Confidence
- 96% confidence
- Finding
- result = subprocess.run( cmd, shell=True, cwd=cwd or SKILL_DIR, capture_output=True, text=True, timeout=30 )
