温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

基于Portfwd端口转发

发布时间:2020-08-07 19:20:14 来源:ITPUB博客 阅读:194 作者:专注的阿熊 栏目:数据库

Portfwd是一款强大的端口转发工具,支持TCP,UDP,支持IPV4--IPV6的转换转发。 并且内置于meterpreter。 其中exe单版本源码如下:

https://github.com/rssnsj/portfwd

复现过程

攻击机: 192.168.1.5                     Debian(Kali)

靶   机: 192.168.1.4                  Windows7

192.168.1.119        Windows 2003


Sessions -l查看所有msf的连接,看到一条连接到windows 03通信,是从192.168.1.1:455303到192.168.1.119:53

基于Portfwd端口转发

session -l  查看会话

基于Portfwd端口转发

靶机IP为:192.168.1.119---windows 2003---x64

function(){   //外汇跟单www.gendan5.com

需要转发端口为:80,3389

选择连接中的1号,就一条所以就只能选这个了

基于Portfwd端口转发

续上图

基于Portfwd端口转发

基于Portfwd端口转发

  Portfwd -h查看用法

基于Portfwd端口转发

基于Portfwd端口转发

 攻击执行

1   meterpreter   >   portfwd   add   l   33389   r   192.168.1.119   p 3389

2   [ * ]   Local   TCP   relay created: : 33389   <‐> 192.168.1.119 : 3389

3   meterpreter   >   portfwd   add   l   30080   r   192.168.1.119   p 80

4   [ * ]   Local   TCP   relay created: : 30080   <‐> 192.168.1.119 : 80

5   meterpreter >   portfwd

Index Local   RemoteDirection

1 0.0.0.0 : 33389 192.168.1.119 : 3389   Forward

2 0.0.0.0 : 30080 192.168.1.119 : 80   Forward

2   total active port forwards .

成功

基于Portfwd端口转发


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI