html tool

2018年9月4日星期二

linux 上运行 lcx



代码位置: https://github.com/yw9381/lcx
参考: http://www.secflag.com/archives/139.html

安全起见 推荐自己编译##linux下 编译
gcc linux_lcx.c -o lcx


当前目标
121 上nginx的18082,可以通过 120的 18081访问

配置
 121 上运行:
./lcx_t -m 2 -p1 5555 -p2 18082

120 上运行:
./lcx_t -m 3 -h1 192.168.100.120 -p1 5555 -h2 192.168.100.121 -p2 18081

测试方式:
浏览器访问 120:18081 就可以了

遇到的问题:
在120上运行命令后一直提示
# ./lcx_t -m 3 -h1 192.168.100.121 -p1 18081 -h2 192.168.100.120 -p2 5555
make a connection to 192.168.100.121:18081....ok
make a connection to 192.168.100.120:5555....error: No route to host
Let me exit...all overd

发现是121上的firewall-cmd 没有关闭,关了就ok了。


没有评论:

发表评论