Skip to content

0xarshad/SubRaptorX-2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦖 SubRaptorX 2.0

🔍 An advanced, feature-rich Bash script for discovering and validating live subdomains effortlessly.

📚 Description

SubRaptorX 2.0 is the newer version my old subdomain enumeration script. It combines the power of multiple tools like Assetfinder, Subfinder, Waybackurls, Httprobe, and Curl to discover, validate, and organize live subdomains. With a stylish terminal interface and automated dependency installation, it ensures a seamless experience for both security professionals and enthusiasts.

NB:- This image shows how it looks on Parrot OS. There could be slight changes in icons and text depending on the OS

🚀 Features

  • Multi-Source Subdomain Enumeration: Assetfinder, Subfinder, and Waybackurls.
  • Live Subdomain Validation: Httprobe and Curl-based checks.
  • Automated Dependency Installation: install.sh for Automated installation.
  • URL Normalization: Removes http:// and https:// prefixes for consistency.
  • Deduplication: Ensures unique subdomains in the final output.
  • Stylish Terminal Interface: Color-coded and easy-to-read output.
  • Result Export: Clean results saved in domain.name_live_subs.txt.

🛠️ Dependencies

Dependencies are autonomously managed by the install.sh script utilizing Go. During testing on widely-used Linux distributions, excluding Kali Linux, I encountered a GOROOT error during the Subfinder installation process. To address this anomaly, I added a remediation below in the GOROOT Remediation section. If you encounter GOROOT error while executing install.sh, ensure you run these commands beforehand. Special thanks to prathameshbagul for their valuable contributions.

🐧 Manual Installation (if needed)

Make sure to copy all the tools to /usr/bin to make it permanantly available from anywhere. ( sudo cp ~/go/bin/* /usr/bin

Special Thanks to tomnomnom , projectdiscovery and curl for these amazing tools.


💻 Installation

  1. Clone the Repository:

    git clone https://github.com/0xarshad/SubRaptorX-2.0.git && cd SubRaptorX-2.0
  2. Run the Installation Script:

    sudo chmod +x install.sh && sudo ./install.sh
  3. Run SubRaptorX 2.0:

    chmod +x SubRaptorX.sh && ./SubRaptorX.sh

📝 Usage

  1. Run the script:

    ./SubRaptorX.sh
  2. Enter your target domain when prompted:

    🔗 Enter the Domain (eg: test.com): example.com
    
  3. The script will:

    • Enumerate subdomains.
    • Validate live subdomains.
    • Remove duplicates and clean URLs.
    • Save the final result to domain.name_live_subs.txt.

🛡️ Example Output

🎯 Live Subdomains of example.com:
--------------------------------------------
sub1.example.com
sub2.example.com
sub3.example.com
--------------------------------------------
✅ Results saved in final_live_subs.txt


💻 GOROOT Error Remediation

Important: These commands will purge any pre-existing Go installation and reinstall it while resolving path-related inconsistencies. It’s strongly recommended to back up your Go directory if it contains any critical data.

  1. Remove existing Go and it's dependencies:

    sudo apt-get remove golang-go gccgo-go -y && sudo apt-get remove --auto-remove golang-go gccgo-go -y && sudo rm -rvf /usr/local/go
  2. Download and Extract Go Archive:

    wget https://dl.google.com/go/go1.21.3.linux-amd64.tar.gz && sudo tar -xvf go1.21.3.linux-amd64.tar.gz
  3. Place the Go directory in the desired location (eg: /usr/local/go)

    sudo mv go /usr/local
  4. Set GOROOT Path and Reload Environment Variables :

    export GOROOT=/usr/local/go && export GOPATH=$HOME/go && export PATH=$GOPATH/bin:$GOROOT/bin:$PATH && source ~/.profile

    Now run install.sh


🤝 Contributing

Contributions are welcome! Just contact me through Linkedin

If you find SubRaptorX 2.0 useful, don't forget to star the repository!

🦖 Unleash the Raptor, conquer the domains! 🚀✨

About

Subdomain Enumeration Tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages