Skip to content

Instantly share code, notes, and snippets.

View ehsahil's full-sized avatar

Sahil Ahamad ehsahil

View GitHub Profile
require 'socket'
require 'colorize'
begin
file = File.open(ARGV[0], "r")
rescue
puts "Usage: ruby resolve.rb filename (where filename contains a list of domains)"
exit
end
### Keybase proof
I hereby claim:
* I am ehsahil on github.
* I am ehsahil (https://keybase.io/ehsahil) on keybase.
* I have a public key ASAX_QruRWe-ErPVC5AN0Mz185L-jxM8rZ1HBmpwFrCiOAo
To claim this, I am signing this object:
require 'socket'
require 'colorize'
begin
file = File.open(ARGV[0], "r")
rescue
puts "Usage: ruby git.rb objectsid"
exit
end
-Commands
443.https.tls.certificate.parsed.extensions.subject_alt_name.dns_names:domain.com
“hackme.tld” + internal
“hackme.tld” + sandbox
“hackme.tld” + Staging
@ehsahil
ehsahil / converter.sh
Created December 20, 2018 07:59
converter.sh
#Converter.sh by @xdavidhu
# This is a script inspired by the Bug Hunter's Methodology 3 by @Jhaddix
# With this script, you can convert domain lists to resolved IP lists without duplicates.
# Usage: ./converter.sh [domain-list-file] [output-file]
echo -e "[+] Converter.sh by @xdavidhu\n"
if [ -z "$1" ] || [ -z "$2" ]; then
echo "[!] Usage: ./converter.sh [domain-list-file] [output-file]"
exit 1
fi
echo "[+] Resolving domains to IPs..."
#!/usr/bin/env python2
import sys
from netaddr import IPNetwork
if __name__ == "__main__":
if len(sys.argv) != 2:
print "Usage: %s <CIDR Block>\n" % sys.argv[0]
else:
for ip in IPNetwork(sys.argv[1]):
print '%s' % ip
#!/bin/bash
read mychoice
if ((mychoice));then
echo "Your choice is TRUE"
else
echo "Your choice is FALSE"
fi
#!/bin/bash
cloudflare_dns_service="1.1.1.1"
echo "Enter DNS Service you like>"
read input
user_dns_service=$input
if [ "$cloudflare_dns_service" == "$user_dns_service" ];then
echo "This is Cloudflare DNS service :) "
else
echo "This is NOT Cloudflare DNS service :("
fi
#!/bin/bash
printf '%s ' 'Which tool you want to run for finding subdomains?'
read -${BASH_VERSION+e}r subdomain
case $subdomain in
subfinder)
subfinder -d hackerone.com
;;
sublister)
python sublister.py -d hackerone.com
;;
#!/bin/bash
cloudflare_dns_service="1.1.1.1"
google_dns_service="8.8.8.8"
echo "Enter DNS Service you like>"
read input
user_dns_service=$input
if [ "$user_dns_service" == "$cloudflare_dns_service" ];then
echo "This is Cloudflare DNS service :)"
elif [ "$user_dns_service" == "$google_dns_service" ];then
echo "This is Google DNS Service :)"