wget http://www.vuln.cn/wp-content/uploads/2016/06/lcx_vuln.cn_.zip
unzip lcx_vuln.cn_.zip
[gysd@localhost ~]$ cd lcx_vuln.cn/
[gysd@localhost lcx_vuln.cn]$ ll
总用量 36
-rw-rw-r--. 1 gysd gysd 8704 3月 13 2014 lcx.exe
-rw-rw-r--. 1 gysd gysd 23239 6月 10 2016 portmap
[gysd@localhost lcx_vuln.cn]$ chmod u+x portmap
[gysd@localhost lcx_vuln.cn]$ ./portmap
Socket data transport tool
by Sofia(www.vuln.cn)
Usage:./portmap -m method [-h1 host1] -p1 port1 [-h2 host2] -p2 port2 [-v] [-log filename]
-v: version
-h1: host1
-h2: host2
-p1: port1
-p2: port2
-log: log the data
-m: the action method for this tool
1: listen on PORT1 and connect to HOST2:PORT2
2: listen on PORT1 and PORT2
3: connect to HOST1:PORT1 and HOST2:PORT2
Let me exit...all overd
[gysd@localhost lcx_vuln.cn]$ cat portmap.sh
#!/bin/bash
. $HOME/.bash_profile
cd $HOME/lcx_vuln.cn
#将38080端口接收导的数据转发到8080端口
nohup ./portmap -m 1 -p1 38080 -h2 127.0.0.1 -p2 8080 >./portmap.log 2>&1 &
[gysd@localhost lcx_vuln.cn]$