subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
temp_file = f.name # 3. 执行(隔离环境) result = subprocess.run( ['python3.8', temp_file], capture_output=True, text=True,- Confidence
- 95% confidence
- Finding
- result = subprocess.run( ['python3.8', temp_file], capture_output=True, text=True, timeout=10, cwd=tempfile.
