Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s0md3v/SubGPT
Find subdomains with GPT, for free
https://github.com/s0md3v/SubGPT
recon scanner scanning subdomain
Last synced: about 1 month ago
JSON representation
Find subdomains with GPT, for free
- Host: GitHub
- URL: https://github.com/s0md3v/SubGPT
- Owner: s0md3v
- License: agpl-3.0
- Created: 2023-04-18T18:44:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-18T13:43:08.000Z (8 months ago)
- Last Synced: 2024-10-28T20:45:23.829Z (about 1 month ago)
- Topics: recon, scanner, scanning, subdomain
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 332
- Watchers: 4
- Forks: 46
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gpt-security - SubGPT - SubGPT looks at subdomains you have already discovered for a domain and uses BingGPT to find more. (Tools / Reconnaissance)
- awesome-hacking-lists - s0md3v/SubGPT - Find subdomains with GPT, for free (Python)
- Offensive-OSINT-Tools - SubGPT - SubGPT looks at subdomains you have already discovered for a domain and uses BingGPT to find more. ([↑](#-table-of-contents) SubDomain's / Tools)
README
SubGPT looks at subdomains you have already discovered for a domain and uses BingGPT to find more. Best part? It's free!
The following subdomains were found by this tool with [these](https://gist.githubusercontent.com/s0md3v/237f246ddbc17756a77837daaa1cc674/raw/5863caaa1c991aaf50c45acb25c226c7d8d776c0/input.txt) 30 subdomains as input.
```
call-prompts-staging.example.com
dclb02-dca1.prod.example.com
activedirectory-sjc1.example.com
iadm-staging.example.com
elevatenetwork-c.example.com
```If you like my work, you can support me with as little as $1, [here](https://github.com/sponsors/s0md3v) :\)
### Install & Configuration
#### Installation
- with pip (recommended): `pip install subgpt`
- from github: `git clone https://github.com/s0md3v/SubGPT && cd SubGPT && python setup.py install`#### Getting Bing Cookie
1. Install the cookie editor extension ([Chrome](https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm), [Firefox](https://addons.mozilla.org/en-US/firefox/addon/cookie-editor/))
2. Visit [bing.com](https://www.bing.com/), make sure you are logged in.
3. Open the extension and copy your cookie using the "export" button
4. Paste it in a file e.g. `cookies.json`
5. All set!> Note: Any issues regarding BingGPT itself should be reported [EdgeGPT](https://github.com/acheong08/EdgeGPT), not here.
### Using SubGPT
It is supposed to be used after you have discovered some subdomains using all other methods. The standard way to run SubGPT is as follows:
```
subgpt -i input.txt -o output.txt -c /path/to/cookies.json
```
If you don't specify an output file, the output will be shown in your terminal (`stdout`) instead.To generate subdomains and not resolve them, use the `--dont-resolve` option. It's a great way to see all subdomains generated by SubGPT and/or use your own resolver on them.
### Important
1. Make sure your subdomains list only has subdomains from one domain. Each line in your file should contain one subdomain and nothing else.
2. Sometimes your cookie will expire if you visit bing.com often. In that case, just export and save it again.
3. SubGPT looks at A/CNAME records to determine whether a subdomain exists. It can also detect wildcard on first-level subdomains and handle it automatically. You can go through the code to see how its implemented if it concerns you.
4. It can't replace traditional sub-generators like [gotator](https://github.com/Josue87/gotator), [alterx](https://github.com/projectdiscovery/alterx), [dnsgen](https://github.com/ProjectAnte/dnsgen) etc. However, being powered by AI helps it to generate subdomains that these traditional tools can't.
5. It is **slow** for obvious reasons. It takes like 45 seconds for every 80 subdomains.
6. It is subject to Bing's [daily limit](https://www.google.com/search?q=how+much+is+bing+gpt+limit&client=firefox-b-d&biw=1280&bih=564&tbs=qdr%3Am&ei=ERBFZObnC8SZseMP8tmy6Ac&ved=0ahUKEwimtKmD7b_-AhXETGwGHfKsDH0Q4dUDCA4&uact=5&oq=how+much+is+bing+gpt+limit&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQAzIICCEQoAEQwwQyCAghEKABEMMEMggIIRCgARDDBDIICCEQoAEQwwRKBAhBGAFQ3QZY4whgjwtoAXAAeACAAbACiAG8BZIBBzAuMS4xLjGYAQCgAQHAAQE&sclient=gws-wiz-serp). Selectively run this tool, don't run it blindly.