当前位置:网站首页>基于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响应格式
边栏推荐
- leetcode-141. Circular linked list
- [LeetCode每日一题] |686.重复叠加字符串匹配
- Operation guide | how to select a collector on moonbeam and Moonriver
- Pytest test framework Basics
- MSDN download win11 method, simple and easy to operate
- Heartless sword English Chinese bilingual poem 001 Spring outing
- DHCP protocol instantiation analysis
- 2022年高处安装、维护、拆除考试模拟100题及在线模拟考试
- [golang] leetcode special training - array and slice
- [ISITDTU 2019]EasyPHP
猜你喜欢

2022安全员-A证考试题模拟考试题库模拟考试平台操作

Streaking? Baa!

真香,华为主动离职也给 N+1

Will you be punished for not wearing seat belts in the back row?

Detailed explanation of the functions of list and dict data types

leetcode417. Pacific Atlantic current problems (medium)

面试经典题目:怎么做的性能测试?【杭州多测师】【杭州多测师_王sir】

Cloud data management will break the island of storage and the island of team

开关电源电路图及原理12v分析-详细版

2022 high voltage electrician special operation certificate examination question bank and online simulation examination
随机推荐
2022 simulated examination question bank and simulated examination for crane driver (limited to bridge crane)
【剑指Offer】21.调整数组顺序使奇数位于偶数前面
DHCP protocol instantiation analysis
信息收集常用工具及命令
【剑指Offer】22.链表中倒数第K节点
Pytest test framework Basics
leetcode684. 冗余连接(中等)
Kill the swagger UI. This artifact is better and more efficient!
2022年R1快開門式壓力容器操作考試題庫及模擬考試
Streaking? Baa!
2022G1工业锅炉司炉考题及模拟考试
Laravel 2020-01-01t00:00:00.000000z date conversion
laravel 8 通过 任务调度 实现 数据库备份
What if the win10 security center cannot be closed
想学好ArrayList,看完这篇就够了
什么是rs邮票纸?
2022年危险化学品经营单位主要负责人考试模拟100题及模拟考试
2022起重机司机(限桥式起重机)考试题模拟考试题库及模拟考试
TC8:UDP_ MessageFormat_ 01-02
09-最小生成树 公路村村通