subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
f.write(cron_content) # 添加到 crontab subprocess.run(['crontab', cron_file], check=True, capture_output=True) print(f"✅ 定时任务已创建: {cron_file}") return True except Exception as e:- Confidence
- 88% confidence
- Finding
- The script installs a cron entry that creates persistence in the user's environment without confirmation. While the command itself is static and not shell-injected, it modifies scheduled execution state and will cause this skill's code to run automatically in the future, increasing the blast radius if the skill or its files are later changed or compromised.
