Adds / tweaks a bunch of scripts
This commit is contained in:
parent
887f479d1f
commit
285165913d
13 changed files with 112 additions and 30 deletions
|
@ -133,6 +133,10 @@ type -p cpg > /dev/null && alias cp="cpg --progress-bar"
|
|||
# If enum4linux-ng is available, use that instead
|
||||
type -p enum4linux-ng > /dev/null && alias enum4linux="enum4linux-ng"
|
||||
|
||||
# msfdb-blackarch works better than msfdb
|
||||
|
||||
type -p msfdb-blackarch > /dev/null && alias msfdb="msfdb-blackarch"
|
||||
|
||||
###################
|
||||
# Git Shortcuts #
|
||||
###################
|
||||
|
@ -180,7 +184,7 @@ alias r="fzf-remind"
|
|||
|
||||
# Start postgres for msfconsole
|
||||
# In time, use docker instead
|
||||
alias msfconsole="( systemctl status --no-pager postgresql.service > /dev/null || (echo \"Statring postgres\"; sudo systemctl start postgresql.service) ); ( pass show system/metasploit/database.yaml > database.yaml; sudo msfconsole -y database.yaml; rm database.yaml )"
|
||||
#alias msfconsole="( systemctl status --no-pager postgresql.service > /dev/null || (echo \"Statring postgres\"; sudo systemctl start postgresql.service) ); ( pass show system/metasploit/database.yaml > database.yaml; sudo msfconsole -y database.yaml; rm database.yaml )"
|
||||
|
||||
alias ss="tail -n +2 /usr/share/exploitdb/files_exploits.csv | awk -F ',' '{print \$2 \"\t\" \$3 \"\t(\" \$1 \")\"}' | fzf --preview-window=up --preview='echo {} | cut -d\" \" -f1 | xargs echo \"/usr/share/exploitdb/\" | tr -d \" \" | xargs bat --color=always' | cut -d' ' -f3 | tr -d \"()\" | xargs searchsploit -m"
|
||||
|
||||
|
@ -209,8 +213,6 @@ if [ -f "$HOME/GitRepos/openssl-weak/openssl-1.0.2-chacha/apps/openssl" ]; then
|
|||
alias weakopenssl="$HOME/GitRepos/openssl-weak/openssl-1.0.2-chacha/apps/openssl"
|
||||
alias testssl="testssl --openssl=\"$HOME/GitRepos/openssl-weak/openssl-1.0.2-chacha/apps/openssl\""
|
||||
alias verifySSL="verifySSL --openssl \"$HOME/GitRepos/openssl-weak/openssl-1.0.2-chacha/apps/openssl\""
|
||||
else
|
||||
alias testssl="docker run --rm -ti -v \$PWD:/data drwetter/testssl.sh"
|
||||
fi
|
||||
|
||||
|
||||
|
@ -222,7 +224,7 @@ fi
|
|||
# Keyboard - reset
|
||||
# Sometimes, if I turn the screens off, the keyboard resets itself to defaults. Not sure why but this will put my keyboard back to how I like it
|
||||
#alias kb="xmodmap ~/.Xmodmap; xset r rate 200 70; xcape"
|
||||
alias keys="setxkbmap -layout gb -variant colemak -option shift:both_capslock -option compose:ralt; xset r rate 200 70; xinput --list | grep -Ei 'ErgoDox EZ\s+id' | grep -oE 'id=[0-9]+' | cut -d'=' -f2 | xargs -r setxkbmap -layout gb -device"
|
||||
alias keys="setxkbmap -layout gb -variant colemak -option shift:both_capslock -option compose:ralt; xset r rate 200 70; xinput --list | grep -Ei 'ErgoDox EZ Glow\s+id' | grep -oE 'id=[0-9]+' | cut -d'=' -f2 | xargs -r setxkbmap -layout gb -device"
|
||||
|
||||
alias colemak="setxkbmap -layout gb,gb -variant \"colemak,\" -option grp:shifts_toggle"
|
||||
alias qwerty="setxkbmap -layout gb"
|
||||
|
@ -296,6 +298,7 @@ if type grc > /dev/null 2>&1; then
|
|||
done
|
||||
fi
|
||||
|
||||
alias stripAnsi='sed -E '"'"'s/\x1B\[[0-9;]*[JKmsu]//g'"'"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue