Skip to content

Instantly share code, notes, and snippets.

@hexrom
Created October 30, 2019 02:34
Show Gist options
  • Save hexrom/34ca732e2b74b2ccd425db00e551ea10 to your computer and use it in GitHub Desktop.
Save hexrom/34ca732e2b74b2ccd425db00e551ea10 to your computer and use it in GitHub Desktop.
Find deeper subdomains by automating the scanning of all found third level subdomains with Sublist3r
#!/bin/bash
# This script automates running Sublist3r against all third-level subdomains.
mkdir thirdlevels
echo "Gathering full third-level domains with Sublist3r..."
for domain in $(cat third-level.txt); do sublist3r -d $domain -o thirdlevels/$domain.txt; cat thirdlevels/$domain.txt |sort -u >> final.txt;
echo "Probing for alive third-levels..."
cat final.txt | httprobe > probed.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment