This is a simple Flask application that leverages OpenAI's GPT-3 model to translate user inputs into nmap
commands. The application takes a user's input via a simple form, sends the input to OpenAI, and the generated nmap
command is displayed back to the user.
- User input validation
- API response validation
- Simple and intuitive UI
- Python 3.6+
- Flask
- python-dotenv
- openai
-
Clone this repository:
git clone https://github.com/<your-github-username>/nmap-translator.git
-
Navigate into the project directory:
cd nmap-translator
-
Install the required packages:
pip install -r requirements.txt
-
Create a
.env
file in the project root and add your OpenAI API key:OPENAI_API_KEY=your-openai-api-key
-
Run the application:
python app.py
-
Open your web browser and navigate to
http://localhost:5000
.
Enter your desired action into the text box and click on the 'Translate' button. The application will generate the corresponding nmap
command.
This project is licensed under the terms of the MIT license.