diff options
author | Dan Fedele <dan.fedele@gmail.com> | 2023-06-13 10:59:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 10:59:02 -0400 |
commit | b8e08d78024e53ecbb00267623a5aea73e6b538d (patch) | |
tree | 269e6a5402d34a650e8313dacc91111611aa0295 /roles/custom-config/files | |
parent | 8986e5bcabccb476a9088fe925a3ba05ed517053 (diff) | |
parent | dfa9f2398bd614f73a0df92cbcfd561c609a2f3b (diff) |
Merge pull request #5 from AgroDan/dev
Merge pull request #4 from AgroDan/master
Diffstat (limited to 'roles/custom-config/files')
-rw-r--r-- | roles/custom-config/files/tmux_conf | 14 | ||||
-rw-r--r-- | roles/custom-config/files/zsh_functions.zsh | 26 |
2 files changed, 40 insertions, 0 deletions
diff --git a/roles/custom-config/files/tmux_conf b/roles/custom-config/files/tmux_conf new file mode 100644 index 0000000..55cf067 --- /dev/null +++ b/roles/custom-config/files/tmux_conf @@ -0,0 +1,14 @@ +# remap CTRL-b to CTRL-a because it's better +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +# vi master race +set -g mode-keys vi +set -sg escape-time 0 + +# I <3 history +set -g history-limit 500000 + +# colors! +set -g default-terminal "screen-256color" diff --git a/roles/custom-config/files/zsh_functions.zsh b/roles/custom-config/files/zsh_functions.zsh new file mode 100644 index 0000000..e6df6e0 --- /dev/null +++ b/roles/custom-config/files/zsh_functions.zsh @@ -0,0 +1,26 @@ +# This is a handy list of functions I use + +scan() { + SCANDIR="${PWD}/nmap_scans" + if [ -z $1 ]; + then + read "TARGET?Enter a target: " + else + TARGET=$1 + fi + + echo "Scanning ${TARGET}..." + mkdir -p $SCANDIR + sudo nmap -sS -sV -sC -oN $SCANDIR/initial-scan -v $TARGET + sudo nmap -sS -p- -oN $SCANDIR/allports -v0 $TARGET &disown + sudo nmap -sU -oN $SCANDIR/udpports -v0 $TARGET &disown +} + +# Get latest version of linpeas and download to current directory +alias getlinpeas='curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh > linpeas.sh' + +# I use this a ton +alias webserver='python -m http.server' + +# hey why not, change this number to your preferred revshell port. +alias revshell='ncat -lvnp 9090'
\ No newline at end of file |