注意:
python3 -m venv myenv、source myenv/bin/activate)git clone <repo_url>cd AutoPentesterpip3 install -r requirements.txtpip3 install -e .export OPENAI_API_KEY="<your key here>" 导出您的 API 密钥export OPENAI_BASE_URL="https://your-host/v1" 覆盖 API 端点export ANTHROPIC_API_KEY="<your key here>" 导出您的 API 密钥export GEMINI_API_KEY="<your key here>" 或 export GOOGLE_API_KEY="<your key here>" 导出您的 API 密钥pentestgpt/config/agent_config.py 中按智能体进行选择pentestgpt/config/agent_config.py 中配置智能体模型openai、anthropic、gemini、azure、gpt4all、titan 和 rag。autopentester --loggin请在以下链接中查看演示视频。
处理后的日志文件位于 processed_log_files 目录中。 定量结果基于这些日志文件计算得出。
调查分析位于 Survey_analysis 目录中。 运行 analysis.py 以绘制图表。
如果您将本工作用于学术目的,请引用我们的论文。
@inproceedings{ginige2025autopentester,
title={Autopentester: An llm agent-based framework for automated pentesting},
author={Ginige, Yasod and Niroshan, Akila and Jain, Sajal and Seneviratne, Suranga},
booktitle={2025 IEEE 24th International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom)},
pages={163--174},
year={2025},
organization={IEEE}
}