This is a script that generates new subdomains based on a given subdomain using the power of the OpenAI GPT-3.5 Turbo model. It takes input from either a text file or command line and generates similar subdomains by interacting with the OpenAI API.
- Go programming language (version 1.16 or higher)
- OpenAI API key
go install github.com/topscoder/aisubs@latest
-
The script can be used in two ways:
cat subdomains.txt | aisubs --apikey <OpenAI API Key> --amount 5
Replace
<OpenAI API Key>
with your actual OpenAI API key. -
Providing input via command line:
echo "www.domain.com" | aisubs --apikey <OpenAI API Key> --amount 5
Replace
<OpenAI API Key>
with your actual OpenAI API key.
And it's able to use in your leet command chains. Eg.
cat subdomains.txt | aisubs --apikey <OpenAI API Key> --amount 5 | httpx -ip -sc -cl -title -silent
The script reads input from either a text file or command line, where each line represents a subdomain in the format <subdomain>.<domain>
. It generates amount
number of new subdomains similar to the provided subdomain and prints them to the standard output.
Before running the script, make sure to obtain an API key by signing up on the OpenAI website.
Let's say we have a text file called subdomains.txt with the following content:
www.example.com
api.example.com
We can generate 3 new subdomains similar to www.example.com using the script:
cat subdomains.txt | aisubs --apikey <OpenAI API Key> --amount 3
The script will output something like this:
web.example.com
blog.example.com
shop.example.com
- The script relies on the OpenAI GPT-3.5 Turbo model and requires a valid OpenAI API key.
- The effectiveness of subdomain generation depends on the quality and diversity of the training data used to train the model.
- The script may encounter rate limits or errors when making API requests. It automatically handles rate limit errors by waiting for 20 seconds before retrying.
- The script assumes the input subdomains are in the format
<subdomain>.<domain>
.
If you would like to contribute to this project, please feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License.
If you have any questions or feedback, please feel free to contact the project maintainers.