subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
cmd_str = f'git clone --depth {config.clone_depth} "{clone_url}" "{target_dir}"' print(f"{Colors.INFO}执行命令: {cmd_str}") result = subprocess.run( cmd_str, capture_output=True, text=True, timeout=config.timeout, shell=True )- Confidence
- 99% confidence
- Finding
- result = subprocess.run( cmd_str, capture_output=True, text=True, timeout=config.timeout, shell=True )
