How lstalet04/pentesting-ai works
Pentesting AI coordinates a human-facing AutoGen team to gather website information, perform reconnaissance and vulnerability research or scans, interact with pages, review command output, and save findings and reports. The sampled source confirms tool registration and several helper implementations; the README describes additional agent roles, while omitted parts of main.py prevent reconstructing the full chat orchestration. The Docker runtime is documented but excluded as deployment infrastructure.
Main entry points: main.py Agent team · web_interaction.py Browser actions · website_request.py Page fetch · CVE_searching_tool.py CVE lookup
Components 22
Agent coordination
- Agent team
main.py - User proxy
main.py - Command executor
main.py - File reader agent
main.py - Code checker
main.py
Security assessment
- Recon and scan agents
main.py - CVE search agent
main.py - CVE lookup
CVE_searching_tool.py - Exploitation agent
main.py
Website interaction
- Web fetch agent
main.py - Page fetch
website_request.py - Web communicator
main.py - Browser actions
web_interaction.py
Findings and reports
- Vulnerability list reader
Vulnerability_list_out.py - Scan result recorder
vulnaribility_list.py - Vulnerability list
groupchat/Vuln_list.txt - Output file reader
Reading_function.py - Report writer
main.py - Report saver
report_save.py
Other components
- Human operator
- NVD website
- Target website
Connections 24
- Human operator → Agent team: starts session
README.md - Agent team → User proxy: coordinates
main.py - User proxy → Command executor: dispatches commands
README.md - User proxy → File reader agent: requests file reads
README.md - Agent team → Recon and scan agents: assigns assessment
README.md - Agent team → CVE search agent: assigns research
README.md - CVE search agent → CVE lookup: calls lookup
main.py - CVE lookup → NVD website: queries
CVE_searching_tool.py - Agent team → Exploitation agent: assigns exploitation
README.md - Agent team → Code checker: reviews commands
README.md - Agent team → Web fetch agent: assigns fetching
README.md - Web fetch agent → Page fetch: calls fetch
main.py - Page fetch → Target website: requests page
website_request.py - Agent team → Web communicator: assigns interaction
README.md - Web communicator → Browser actions: calls browser tools
main.py - Browser actions → Target website: interacts with
web_interaction.py - Browser actions → Page fetch: fetches page
web_interaction.py - Agent team → Vulnerability list reader: registers tool
main.py - Vulnerability list reader → Vulnerability list: reads
Vulnerability_list_out.py - Agent team → Scan result recorder: registers tool
main.py - Scan result recorder → Vulnerability list: appends findings
vulnaribility_list.py - Agent team → Output file reader: registers tool
main.py - Agent team → Report writer: assigns reporting
README.md - Report writer → Report saver: calls save
main.py