Skip to content

Instantly share code, notes, and snippets.

@meicookies
Last active July 12, 2021 03:25
Show Gist options
  • Save meicookies/4507d531cda7325f1204a52dec59d883 to your computer and use it in GitHub Desktop.
Save meicookies/4507d531cda7325f1204a52dec59d883 to your computer and use it in GitHub Desktop.
Unlimited subdomain finder
#!/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
#!/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