Building an AI agent that can automate parts of pentesting jobs. This application utilizes advanced algorithms and techniques to simulate penetration testing activities, aiming to streamline and enhance the efficiency of security testing processes.
This tool is intended for legal and ethical use only. It should only be used for authorized security testing and educational purposes. The developers assume no liability and are not responsible for any misuse or damage caused by this program.
- Python 3.12 or later
- Necessary Python packages as listed in
requirements.txt
Before running the application, ensure that you have Python 3.12 or later installed on your system. Follow these steps to set up the environment:
-
Clone the repository:
git clone https://github.com/jhaochenz/Auto-Pentester.git cd pentestmuse
-
Install the required packages:
pip install -r requirements.txt
-
Set up OpenAI API Key:
-
Create a
.env
file in the root directory. -
Add your OpenAI API key to the
.env
file like this:OPENAI_API_KEY=your_openai_api_key_here
-
Make sure to replace
your_openai_api_key_here
with your actual OpenAI API key.
-
To start the application, run the following command from the root directory of the project:
python run_app.py
Follow the on-screen prompts to input your pentesting tasks.
Input a task like the following:
Run sql injection attack on http://localhost:5001/users/v1/John.Smith and return all the username and passwords in the database.
The output will be a detailed procedure of the pentesting process. For a real-world example, see this example output.