当前位置:网站首页>nc 端口转发
nc 端口转发
2022-07-24 17:04:00 【ailx10】
前面我们已经学习了ssh端口转发、防火墙端口转发、rinetd 端口转发,今天我们来看一下最重要的端口转发,nc端口转发,之前我们学习反弹shell的时候就已经知道nc了,今天再学习nc一个新功能,那就是端口转发。在做安全蓝队的日子里,很多小伙伴不免看到3389端口反弹的安全事件,今天就来一探究竟~
实验环境:
- macos:192.168.199.206
- kali:192.168.199.247
- centos:192.168.199.236
实验一:本地端口转发,将kali的8888端口转发到22端口
nc -lp 8888 -c "nc 127.0.0.1 22"
再看抓包情况,黑客视角来看,还是从客户端到服务端没有流量,但是服务端到客户端

受害者视角来看

实验二:远程端口转发,访问kali的7777端口,就是访问centos的22端口
nc -lp 7777 -c "nc 192.168.199.236 22"
再看看抓包情况,从黑客视角来看,一样的都是单边流量

再从跳板机视角看一下,双向流量奔赴

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

边栏推荐
- 快速入门
- Zcmu--5023: family division (C language)
- Thinkphp3.2.5 cannot jump to external links
- Qsqldatabase: solution of qmmysql driver not loaded
- Wechat applet list (list rendering of data rendering)
- GDB online debugging of work notes
- IP的概念,IP的分类,IP复用技术
- Still developing games with unity? Then you're out. Try unity to build an answer system
- GEO satellite data download
- EF combined with sqlbulkcopy batch insert data
猜你喜欢

Notebook computer purchase guide (specific brand and model are not recommended)

什么是模糊理论,基础,流程

Live review | wonderful playback of Apache pulsar meetup (including PPT download)

Programming language exercises (I)

AXI协议(3):AXI架构的握手机制和实现细节

Meeting OA project progress (II)

一个实际使用SwiftUI 4.0中ViewThatFits自适应视图的例子

Jupyter uses tips

Why should we launch getaverse?

Axi protocol (2): five channels and two transactions of Axi architecture
随机推荐
Apachecon Asia 2022 opens registration: pulsar technology issues make a big debut
QT keyboard event (II) -- long press the key to trigger the event event repeatedly, and the problem is solved
剑指 Offer 22. 链表中倒数第k个节点
Axi protocol (2): five channels and two transactions of Axi architecture
[redis] -1. two ways of setting up environment based on docker
ZCMU--5083: ly的数对(C语言)
AXI协议(1):AMBA总线介绍,AXI概念与背景介绍,AXI协议特点与功能
Why can't sizeof (ARR) / size (arr[0]) be used to calculate the array length inside the called function?
[sequential logic circuit] - counter
ZCMU--5023: 家庭划分(C语言)
1184. Distance between bus stops
GDB online debugging of work notes
Digital transformation must have digital thinking
2022-07-21 Daily: Wu Enda wrote: how to establish projects suitable for AI career
Small end format and big end format (little endian & big endian)
QT design robot simulation controller -- key control robot joint rotation
MySQL basic commands
Envi SHP to ROI and mask the grid
一个实际使用SwiftUI 4.0中ViewThatFits自适应视图的例子
Shardingsphere database read / write separation