subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# 执行外部通知命令 try: cmd = f'{notify_cmd} "{title}" "{message[:1500]}"' result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30) if result.returncode == 0: print(f"✓ 通知已发送") return True- Confidence
- 99% confidence
- Finding
- result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30)
