subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# 7. 发送简报给CEO try: send_cmd = f'openclaw tool call message --action send --target "{CONFIG["receiver"]}" --message "【每日早会简报 {today}】请查收今日最新资讯汇总。" --media "{full_path}"' subprocess.run(send_cmd, shell=True, capture_output=True, text=True) print("简报已成功发送给CEO") except Exception as e: print(f"发送简报失败: {str(e)}")- Confidence
- 96% confidence
- Finding
- subprocess.run(send_cmd, shell=True, capture_output=True, text=True)
