From 66adff9257c0bdcf5fea357cf4afd9c5804ac9d9 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Wed, 23 Dec 2020 23:40:35 +0530 Subject: Moves zsh config to config and symlinked --- config/zsh/aliases/xplt.zsh | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 config/zsh/aliases/xplt.zsh (limited to 'config/zsh/aliases/xplt.zsh') diff --git a/config/zsh/aliases/xplt.zsh b/config/zsh/aliases/xplt.zsh new file mode 100644 index 0000000..e2df43d --- /dev/null +++ b/config/zsh/aliases/xplt.zsh @@ -0,0 +1,55 @@ +export WORDLISTS=~/dev/xploits/wordlist; +export ROCK_YOU_WORDS="$WORDLISTS/rockyou.txt"; +export URL_WORDS="$WORDLISTS/dirb/common.txt"; +export URL_WORDS_MED="$WORDLISTS/dirb/dirbuster/directory-list-lowercase-2.3-medium.txt"; + +# metasploit +alias msfc="msfconsole --quiet -x \"db_connect postgres@msf\"" +# exploitdb +alias ssplt="searchsploit" +alias sspx="searchsploit -x" + +# Port scan +alias rmap="docker run -it --rm --name rustscan rustscan/rustscan:1.10.0" + +# DVWA +alias dvwa="docker run --rm -it -p 80:80 vulnerables/web-dvwa" + +# Directory search +alias crawl="gobuster dir -w $URL_WORDS" +alias crawl_strict="gobuster dir -w $URL_WORDS_MED" + +new_room() { + take ~/dev/xploits/temp/$1; nvim README.md; +} + +jrock() { + [[ "$#" != "2" ]] && echo "jrock (format) (hashfile)" && return 1; + john -format="$1" "$2" -wordlist=$ROCK_YOU_WORDS; +} + +hrock() { + # Usage: hrock $mode $hashfile + # mode - (1800 for sha512crypt $6$) + [[ "$#" != "2" ]] && echo "hrock (mode-num) (hashfile)" && return 1; + hashcat -m "$1" "$2" -o ./out $ROCK_YOU_WORDS --force; +} + +hydra_ssh() { + # Usage: hydra_ssh $username $ip + [[ "$#" != "2" ]] && echo "hydru (username) (host)" && return 1; + hydra -l $1 -P $ROCK_YOU_WORDS ssh://$2 -V; +} +hydra_post() { + # Usage: hydra_post $username $ip $login-string + # /login:username=^USER^&password=^PASS^:incorrect + [[ "$#" != "2" ]] && echo "hydru (username) (host)" && return 1; + hydra -l $1 -P $ROCK_YOU_WORDS $2 http-post-form "$3" -V; +} + +ip_get() { + # Usage: ip_get [$ip] + curl https://json.geoiplookup.io/$1 | \ + jq '.ip + " | " + .asn + "(" + .district + ", " + .region + ")"'; +} + -- cgit v1.3.1