├── LICENSE ├── README.md ├── setup └── subtron /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Atul Verma 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Welcome to Subtron, your go-to tool for comprehensive subdomain enumeration and live domain testing. Powered by a sophisticated combination of Subfinder, Amass, and Assetfinder, Subtron is designed to streamline identifying potential vulnerabilities within web domains. Leveraging the robust capabilities of these tools, Subtron conducts thorough subdomain enumeration swiftly and efficiently. 2 | 3 | What sets Subtron apart is its integration with HTTPX, enabling real-time testing of live domains to uncover security loopholes. The tool meticulously analyzes live domains, capturing the findings and storing them in the 'final.txt' file for in-depth examination and further analysis. 4 | 5 | 6 | 7 | ## Installation: 8 | ``` 9 | git clone https://github.com/atulxerma/subtron.git 10 | ``` 11 | ``` 12 | cd subtron 13 | ``` 14 | ``` 15 | chmod +x ** 16 | ``` 17 | ``` 18 | bash setup 19 | ``` 20 | no need to run the setup file if you have subfinder, assetfinder, amass and httpx already in your machine if yes skip bash setup and run: 21 | ``` 22 | sudo cp subtron /usr/local/bin 23 | ``` 24 | 25 | now you can use Subtron anywhere from the terminal 26 | 27 | ## Usage: 28 | subtron target.com 29 | 30 | ## Tip: 31 | config your amass config.ini file for better results 32 | https://github.com/OWASP/Amass/blob/master/examples/config.ini 33 | -------------------------------------------------------------------------------- /setup: -------------------------------------------------------------------------------- 1 | echo "[+] SETTING UP..." & 2 | 3 | sudo apt install golang subfinder amass assetfinder -y; 4 | 5 | go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest ; 6 | 7 | sudo mv ~/go/bin/httpx /usr/local/bin/ ; 8 | 9 | sudo cp subtron /usr/local/bin & 10 | 11 | echo "[-] INSTALLED " ; 12 | -------------------------------------------------------------------------------- /subtron: -------------------------------------------------------------------------------- 1 | echo "" 2 | echo " 3 | ░██████╗██╗░░░██╗██████╗░████████╗██████╗░░█████╗░███╗░░██╗ 4 | ██╔════╝██║░░░██║██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗████╗░██║ 5 | ╚█████╗░██║░░░██║██████╦╝░░░██║░░░██████╔╝██║░░██║██╔██╗██║ 6 | ░╚═══██╗██║░░░██║██╔══██╗░░░██║░░░██╔══██╗██║░░██║██║╚████║ 7 | ██████╔╝╚██████╔╝██████╦╝░░░██║░░░██║░░██║╚█████╔╝██║░╚███║ 8 | ╚═════╝░░╚═════╝░╚═════╝░░░░╚═╝░░░╚═╝░░╚═╝░╚════╝░╚═╝░░╚══╝ " 9 | echo " Connect With Me: @atulxerma " 10 | echo "" 11 | 12 | 13 | sleep 2 14 | amass enum -silent -d $1 -min-for-recursive 7 -passive -o 1.txt > /dev/null & 15 | echo "[+] Starting Amass" ; 16 | amass enum -silent -d $1 -min-for-recursive 7 -brute -o 2.txt > /dev/null & 17 | 18 | echo "[+] Starting Amass Brute" ; 19 | subfinder -d $1 -silent -nC -nW -o 3.txt -t 100 > /dev/null > /dev/null & 20 | echo "[+] Starting Subfinder" & 21 | echo $1 | assetfinder --subs-only | tee -a 4.txt > /dev/null & 22 | echo "[+] Starting Assetfinder" & 23 | amass enum -silent -d $1 -min-for-recursive 7 -o 5.txt > /dev/null & 24 | wait; 25 | 26 | echo "" 27 | echo "[=] Finished Amass" 28 | echo "[=] Finished Subfinder" 29 | echo "[=] Finished Assetfinder" 30 | echo "" 31 | 32 | sort 1.txt 2.txt 3.txt 4.txt 5.txt | uniq | tee -a domains.txt > /dev/null; 33 | 34 | cat domains.txt | httpx -silent -t 100 -o final.txt > /dev/null & 35 | echo "[+] Starting Httpx" & 36 | 37 | echo "" 38 | echo "[=] Finished Httpx" & 39 | 40 | rm 1.txt 2.txt 3.txt 4.txt 5.txt 41 | echo "[+] Cleaning" 42 | 43 | sleep 2 44 | 45 | echo "" 46 | echo "[+] Finished!!!" 47 | echo "" 48 | --------------------------------------------------------------------------------