Bash Voodoo
#Figure out whether the last command worked or not
echo $? #Find out whether a given domain resolves
if host target.com; then echo “It Resolves”; fi#enumerate subdomains
while read sub; do echo "$sub.sbtuk.net"; done < subdomains.txt
#touch a subdomains.txtseparetely, file contains:
admin
test
qa
dev
www
m
blog#Bruteforce subdomains | chmod 777 and run
#!/bin/bash
while read sub; do
if host $sub.yahoo.com; then
echo "$sub.yahoo.com"
fi
done < subdomains.txt
#Resolving CNAMES script | cnames.sh
#Concatenate the scripts to bruteforce yahoo.com
#export IP variable
#Repeat the last command
#Reverse-i search
#History tricks
#Assign a command to a variable
#URL generator script
#ping sweep script
#Print out all IPs in a given subnet
#wget a given target and use grep/bash to filter for subdomains
#DNS recon scripts
#Using curl
#Running Autorecon against an entire subnet
#Workaround to use nmapAutomator against a subnet
#Reverse lookup script
#check ASREPRoast for all domain users (without credentials)
#Bash customization | edit /etc/bash.bashrc with root privileges
#Search for a given exploit and download all matches
#FTP script to spawn a one-liner for downloading
Last updated