aboutsummaryrefslogtreecommitdiff
path: root/external/zsh/aliases/xplt.zsh
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-12-20 16:49:47 +0530
committerAkshay Nair <phenax5@gmail.com>2020-12-20 16:49:47 +0530
commit568f7903ca7464f99df659b8488bd731e4f2c4f0 (patch)
treedfa7f9d077eb85ec840c8bfcaa04c1d64cc5aa29 /external/zsh/aliases/xplt.zsh
parentc580a9ec2a1a43a682117eca41c3867e8771117a (diff)
downloadnixos-config-568f7903ca7464f99df659b8488bd731e4f2c4f0.tar.gz
nixos-config-568f7903ca7464f99df659b8488bd731e4f2c4f0.zip
Adds zsh config
Diffstat (limited to '')
-rw-r--r--external/zsh/aliases/xplt.zsh55
1 files changed, 55 insertions, 0 deletions
diff --git a/external/zsh/aliases/xplt.zsh b/external/zsh/aliases/xplt.zsh
new file mode 100644
index 0000000..e2df43d
--- /dev/null
+++ b/external/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 + ")"';
+}
+