2016-10-15 08:05:02 -05:00
|
|
|
### list of functions to source ###
|
|
|
|
|
|
|
|
randpw()
|
2016-10-15 08:29:29 -05:00
|
|
|
|
2016-10-15 08:05:02 -05:00
|
|
|
{
|
2016-10-15 08:29:29 -05:00
|
|
|
openssl rand -base64 12
|
2016-10-15 08:05:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
cipher_check()
|
2016-10-15 08:29:29 -05:00
|
|
|
|
2016-10-15 08:05:02 -05:00
|
|
|
{
|
2016-10-15 08:29:29 -05:00
|
|
|
nmap --script ssl-enum-ciphers "$1"
|
2016-10-15 08:05:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
check_gzip()
|
2016-10-15 08:29:29 -05:00
|
|
|
|
2016-10-15 08:05:02 -05:00
|
|
|
{
|
2016-10-15 08:29:29 -05:00
|
|
|
curl -I -H 'Accept-Encoding: gzip,deflate' "$1" 2> /dev/null | grep --color 'Content-Encoding' && 'echo gzip enabled' || echo 'gzip not enabled'
|
2016-10-15 08:05:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
ns()
|
2016-10-15 08:29:29 -05:00
|
|
|
|
2016-10-15 08:05:02 -05:00
|
|
|
{
|
2016-10-15 08:29:29 -05:00
|
|
|
dig +short "$1"
|
2016-10-15 08:05:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mx()
|
2016-10-15 08:29:29 -05:00
|
|
|
|
|
|
|
{
|
|
|
|
dig +short MX "$1"
|
|
|
|
}
|
|
|
|
|
|
|
|
open_urls()
|
|
|
|
|
|
|
|
{
|
|
|
|
xargs -a "$1" firefox -new-tab "$line"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
check_open_resolver()
|
|
|
|
|
2016-10-15 08:05:02 -05:00
|
|
|
{
|
2016-10-15 08:29:29 -05:00
|
|
|
nmap -sU -p 53 -sV -P0 --script "dns-recursion" "$1"
|
2016-10-15 08:05:02 -05:00
|
|
|
}
|