Last active
July 12, 2021 03:25
-
-
Save meicookies/4507d531cda7325f1204a52dec59d883 to your computer and use it in GitHub Desktop.
Unlimited subdomain finder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# wget dulu | |
# wget https://gist.githubusercontent.com/meicookies/4507d531cda7325f1204a52dec59d883/raw/4d0110260f65624183b43eb22299c8be72d2c755/subdo.rb -O .subdo && chmod +x .subdo | |
# apt install ruby | |
# gem install crtsh | |
if [[ -z $1 ]]; then | |
echo "usage: bash sub.sh <situs>" | |
exit | |
fi | |
./.subdo $1 > .sub && sort .sub | uniq; rm .sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'crtsh' | |
api = Crtsh::API.new | |
res = api.search("#{ARGV[0]}", match: 'ILIKE') | |
res.each do |x| | |
puts "[+] #{x["common_name"]}" | |
end | |
puts "[*] Subdomains [\e[92m#{ARGV[0]}\e[0m]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment