subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# 6. 如果有last_history,读取历史记录 if reset_detected and last_history and os.path.exists(last_history): log(f"读取历史记录:{RECOVERY_SCRIPT} read-file {last_history}") history_result = subprocess.run( [RECOVERY_SCRIPT, "read-file", last_history, "--lines", "50"], capture_output=True, text=True,- Confidence
- 87% confidence
- Finding
- history_result = subprocess.run( [RECOVERY_SCRIPT, "read-file", last_history, "--lines", "50"], capture_output=True, text=True,
