当前位置:网站首页>基于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响应格式
边栏推荐
- 大龄码农从北京到荷兰的躺平生活
- one hundred and twenty-three thousand one hundred and twenty-three
- Detailed explanation of the functions of list and dict data types
- 09-最小生成树 公路村村通
- 真香,华为主动离职也给 N+1
- Production problem troubleshooting reference
- Can I eat meat during weight loss? Will you get fat?
- Graduation project wechat applet OUC campus navigation (I) topic selection and opening report
- 整了20张高清数据分析全知识地图,强烈建议收藏!
- Golang map basic operations
猜你喜欢

Analysis of time complexity and space complexity

How can the project manager repel the fear of being dominated by work reports?

Project workspace creation steps - Zezhong ar automated test tool

为什么芯片设计也需要「匠人精神」?

What happened to the frequent disconnection of the computer at home

项目经理如何击退被工作汇报支配的恐惧感?

面试高频算法题---最长回文子串

【剑指Offer】21.调整数组顺序使奇数位于偶数前面

jdbc调试错误,求指导

(湖南科技大学oj作业)问题 G: 串的模式匹配
随机推荐
pycharm和anaconda的基础上解决Jupyter连接不上Kernel(内核)的问题--解决方案1
Heartless sword English Chinese bilingual poem 001 Spring outing
leetcode417. 太平洋大西洋水流问题(中等)
leetcode463. 岛屿的周长(简单)
What happened to the frequent disconnection of the computer at home
High concurrency pseudo sharing and cache line filling (cache line alignment) (@contained)
Laravel8 implementation of sign in function
2022安全员-C证特种作业证考试题库及答案
RSP:遥感预训练的实证研究
问题 AC: 中国象棋中的跳马问题
Transfer learning
2022年安全员-B证国家题库及模拟考试
Aaai2022 latest "time series data processing" report, 127 pages of PPT describing time series data processing and medical application progress
[ISITDTU 2019]EasyPHP
开关电源电路图及原理12v分析-详细版
笔记本连接外部键盘后,如何把笔记本自身的键盘禁用
CLP Jinxin helps Rizhao bank put into operation its new financial ecological network
R1 Quick Open Pressure Vessel Operation test Library and Simulation Test in 2022
If you want to learn ArrayList well, it is enough to read this article
Interview classic question: how to do the performance test? [Hangzhou multi surveyors] [Hangzhou multi surveyors \wang Sir]