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
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 |
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
### 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: |
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
require 'socket' | |
require 'colorize' | |
begin | |
file = File.open(ARGV[0], "r") | |
rescue | |
puts "Usage: ruby git.rb objectsid" | |
exit | |
end |
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
-Commands | |
443.https.tls.certificate.parsed.extensions.subject_alt_name.dns_names:domain.com | |
“hackme.tld” + internal | |
“hackme.tld” + sandbox | |
“hackme.tld” + Staging |
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
#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..." |
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/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 |
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 | |
read mychoice | |
if ((mychoice));then | |
echo "Your choice is TRUE" | |
else | |
echo "Your choice is FALSE" | |
fi |
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 | |
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 |
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 | |
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 | |
;; |
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 | |
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 :)" |
OlderNewer