added .bash_functions file
This commit is contained in:
parent
a7cccbe38f
commit
d022f9a874
2 changed files with 27 additions and 1 deletions
26
.bash_functions
Normal file
26
.bash_functions
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
### list of functions to source ###
|
||||||
|
|
||||||
|
randpw()
|
||||||
|
{
|
||||||
|
openssl rand -base64 12
|
||||||
|
}
|
||||||
|
|
||||||
|
cipher_check()
|
||||||
|
{
|
||||||
|
nmap --script ssl-enum-ciphers "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
check_gzip()
|
||||||
|
{
|
||||||
|
curl -I -H 'Accept-Encoding: gzip,deflate' "$1" 2> /dev/null | grep --color 'Content-Encoding' && 'echo gzip enabled' || echo 'gzip not enabled'
|
||||||
|
}
|
||||||
|
|
||||||
|
ns()
|
||||||
|
{
|
||||||
|
dig +short "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
mx()
|
||||||
|
{
|
||||||
|
dig +short MX "$1"
|
||||||
|
}
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
Source all of the files. Feel free to add to a script or just on cmd line
|
Source all of the files. Feel free to add to a script or just on cmd line
|
||||||
|
|
||||||
for DOTFILE in `find $HOME/.dotfiles`
|
for DOTFILE in `find $HOME/dotfiles`
|
||||||
do
|
do
|
||||||
[ -f “$DOTFILE” ] && source “$DOTFILE”
|
[ -f “$DOTFILE” ] && source “$DOTFILE”
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue