欢迎光临
我们一直在努力

基于Portfwd端口转发

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

session -l  查看会话

靶机IP为:192.168.1.119—windows 2003—x64

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

需要转发端口为:80,3389

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

续上图

  Portfwd -h查看用法



 攻击执行

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
.



成功


赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。