GPT-empowered penetration testing CLI tool
Top 6.1% on sourcepulse
PentestGPT is an AI-powered penetration testing tool designed to automate and guide security assessments. It leverages large language models, specifically GPT-4, to assist penetration testers by providing interactive guidance, suggesting next steps, and analyzing findings, making it suitable for tackling CTF challenges and HackTheBox machines.
How It Works
PentestGPT integrates with the ChatGPT API to provide an interactive, conversational interface for penetration testing. It maintains "test status awareness" to prevent context loss during deeper assessments, a common issue with direct LLM usage. The tool guides users through the penetration testing lifecycle, allowing input of tool outputs, web content, or general comments to inform the AI's next actions.
Quick Start & Requirements
pip3 install git+https://github.com/GreyDGL/PentestGPT
export OPENAI_API_KEY='<your key here>'
export OPENAI_BASEURL='https://api.xxxx.xxx/v1'
pentestgpt-connection
tmux
.Highlighted Details
msfconsole
with features like help
, next
, more
, discuss
, and google
.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The tool's prompts are optimized for GPT-4; performance with other models, including local ones, may vary. The "google" search functionality is still under development.
5 days ago
1 day