当前位置:网站首页>基于udp端口猜测的内网穿透
基于udp端口猜测的内网穿透
2022-06-11 16:25:00 【山有木兮啊】
流程
1、启动udp服务,监听在9000端口
2、编写另一个udp程序,监听在10000端口
3、启动9000端口,让客户端发送udp报文给9000和10000
4、此时9000会收到报文并且取得客户端IP和端口,由于端口10000的服务未启动,故不会收到,但会在路由记录下这条路径
5、此时启动度端口为10000的服务,大范围发送udp报文,如果不可到达的会受到icmp报文,如果这范围内的端口恰好存在客户端发报文时的端口,则此时客户端也会收到消息。
6、此时双发可收到消息,但是大范围发送有可能会探测到许多开放端口,此时就需要加入自己写的协议
比如当客户端收到探测消息后给一个响应,则探测服务则会更确定是哪一个端口
注:路由器记录路由路径是有时间限制,所以在此时间内需要一直发送消息才能保持路由路径,不然需要在次探测,但一般是前一个端口加一,如下图

客户端发送消息到9000
10分钟后客户端发送消息到9000,可见其端口号变了
ICMP响应格式
边栏推荐
- Student website template brown cake dessert website design - brown cake dessert shop (4 pages) gourmet dessert website production final assignment finished product_ Fresh fruit web design final assign
- 完整的测试流程【杭州多测师】【杭州多测师_王sir】
- Deep separable convolution
- leetcode463. 岛屿的周长(简单)
- one hundred and twenty-three thousand one hundred and twenty-three
- 无心剑英汉双语诗001. 《春游》
- leetcode684. 冗余连接(中等)
- [sword finger offer] 21 Adjust array order so that odd numbers precede even numbers
- 2022 national question bank and mock examination for safety officer-b certificate
- leetcode785. 判断二分图(中等)
猜你喜欢

无心剑英汉双语诗001. 《春游》

2022 molten welding and thermal cutting work license and simulation examination

【剑指Offer】22.链表中倒数第K节点

Princeton Dengjia student's personal account: must I have a doctorate? No, I can also be an applied scientist in a large factory as an undergraduate

Step 4 of installation in RF: an error is reported when installing the robotframework-selenium 2library

PyQt5 使QPlainTextEdit控件支持行号显示

A team of heavyweights came to the "digital transformation" arena of CLP Jinxin ice and snow sports
![[sword finger offer] 22 The penultimate node in the linked list](/img/66/630ae9762f9d87817a14cb1c96015b.png)
[sword finger offer] 22 The penultimate node in the linked list

Go quick start of go language (I): the first go program

面试经典题目:怎么做的性能测试?【杭州多测师】【杭州多测师_王sir】
随机推荐
How the autorunner automated test tool creates a project -alltesting | Zezhong cloud test
Operation guide | how to select a collector on moonbeam and Moonriver
DHCP protocol instantiation analysis
笔记本连接外部键盘后,如何把笔记本自身的键盘禁用
[learn FPGA programming from scratch -17]: quick start chapter - operation steps 2-5- VerilogHDL hardware description language symbol system and program framework (both software programmers and hardwa
时间复杂度与空间复杂度解析
RDKit 安装
1267_ FreeRTOS starts the first task interface prvportstartfirsttask implementation analysis
TC8:UDP_ MessageFormat_ 01-02
Heartless sword English Chinese bilingual poem 001 Spring outing
List和Set存取元素的差异
leetcode684. 冗余连接(中等)
[从零开始学习FPGA编程-17]:快速入门篇 - 操作步骤2-5- VerilogHDL硬件描述语言符号系统与程序框架(软件程序员和硬件工程师都能看懂)
搜索与图论:Dijkstra求最短路 I—Dijkstra(最短路径)
整了20张高清数据分析全知识地图,强烈建议收藏!
2022安全员-A证考试题模拟考试题库模拟考试平台操作
2022安全员-C证特种作业证考试题库及答案
2022高压电工特种作业证考试题库及在线模拟考试
laravel 2020-01-01T00:00:00.000000Z 日期转化
What if you can't access the desktop after the computer is turned on