A command line utility that leverages GPT-3 to generate bash one-liners in response to natural language queries.
Command line utility tweaked to deliver bash-one liners to your question
This tool is designed for penetration testers, red teamers, and sysadmins who want to quickly generate bash commands for various security and automation tasks by simply asking questions in natural language. It streamlines the process of creating exploitation, reconnaissance, and automation scripts without manually crafting complex commands.
Requires an active OpenAI API key and internet connectivity to function; users should be mindful of API usage limits and costs. The tool currently supports only Python 3 and depends on openai and numpy modules. It is intended for users familiar with command line and security tooling.
Clone the repository: git clone git@github.com:almroot/ai.py.git
Create an OpenAI account to access GPT-3
Obtain your OpenAI API key from your account dashboard
Set the environment variable OPENAI_API_KEY to your API key
Install Python dependencies using: pip install -r requirements.txt
ai replace comma with linebreak
Generates a bash command to replace commas with line breaks using tr.
ai deploy with ansible to all hosts except A
Generates an ansible-playbook command to deploy to all hosts except host A.
ai find exposed ssh on the internet using masscan
Generates a masscan command to scan the entire internet for exposed SSH ports.
ai download common wordlists used for pentesting and bug bounty hunting
Generates a git clone command to download SecLists repository containing common wordlists.
ai install python dependencies
Installs required Python dependencies from requirements.txt.