subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
cmd = f"python3 {cover_script} --title '{title}' --date '{date_str}' --output '{output_path}'" result = subprocess.run(cmd, shell=True, capture_output=True, text=True) if result.returncode == 0: print(f"✅ 封面生成成功: {output_path}")- Confidence
- 97% confidence
- Finding
- result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
