UPNP测试

今天跑了一个程序,用upnp在路由器上循环打开新的端口映射,想测试这路由器最多能开几个映射。

测试结果记录如下:
Environment:
Router: TL-R410

Original Ports: 8 // 8 ports have existed in the upnp port mapping before testing.

OS: Debian 2.6
Server: nodejs v0.2.0 (modified)

Software Meta:
Language: javascript
Protocol: UPNP

Test Info.:
Beginning of ports's loop: 40001
End of ports' loop: 40100
Test Result:
Break at port: 40024
Total ports: 32

测试结果,是只能开32个port。而值得注意的是,32个port之后,发送upnp请求,路由仍然返回正常的回复报文,而没有错误。只是实际上没有继续开port了。

 

If you are experiencing problems with the Universal Plug and Play service, your computer might not be able to automatically detect the presence of other networked devices, such as PCs, printers, Internet access points and so on. That is where the UPnP Test application comes in. This simple program is designed to help you identify the issues that prevent the UPnP protocol from functioning correctly. Before you get your hopes up, you should know that this tool does not solve the detected problems, but only performs a series of tests to identify the possible causes. One advantage is that the application does not require installation, so your system registry is not affected in any way. The interface is compact and simple, comprising only two panels: one that displays the test type and its short description and the other for viewing which of the tests passed and which failed. The program can verify whether the operating system provides support for the UPnP service and allows you to check if the Simple Service Discovery Protocol (SSDP) and the UPnPHost services are running. It also verifies the connection between your network adapter and your router and the system's capacity to receive UPnP messages, as well as the router's capability to report an external IP address. One of the tests is designed to check if the Windows firewall service is blocking the traffic between your router and the system, thus preventing UPnP from working. The results can be copied to your clipboard by simply pressing a button and the tests can be redone easily. If you want to fix the detected issues, the link in the main interface can prove useful. In conclusion, UPnP Test is a simple tool for detecting problems related to device-to-device networking. However, it can only suggest possible reasons why the UPnP is not working, fixing the detected issues is totally up to you.
测试 UPnP 功能时,可以选择多种工具来实现不同的目标,包括发现设备、性能测试以及安全评估。以下是一些推荐的 UPnP 测试工具: ### 1. **MirandaUPNP** Miranda 是一款基于 Python 的 UPnP 客户端工具,广泛用于渗透测试领域。它可以用来发现、查询和操作 UPnP 设备,特别是网关设置。对于渗透测试人员来说,Miranda 提供了一个交互式的 shell 环境,使得与 UPnP 设备的交互变得更加直观和高效。 例如,进入 Miranda 的 shell 可以使用如下命令: ```bash miranda -i eth0 ``` 这个工具特别适合那些需要深入研究 UPnP 协议和网关漏洞的安全研究人员 [^2]。 ### 2. **UPnP Pentest Toolkit** 由 NCC Group 发布的 UPnP Pentest Toolkit 是一个专门设计用于评估 UPnP 设备安全性的开源工具包。它可以帮助安全顾问快速发现和利用 UPnP 设备中的潜在漏洞,简化了对 UPnP 协议的探索、伪造和操控过程 [^1]。 ### 3. **GUPnP (GNOME UPnP)** 如果你是开发者或者希望从代码层面理解 UPnP 协议的工作原理,GUPnP 是一个非常有用的库。它是 GNOME 项目的一部分,提供了 C 语言实现的 UPnP 协议栈,适用于 Linux 平台。通过 GUPnP,你可以构建自定义的 UPnP 应用程序,并深入了解 UPnP 的内部机制。例如,GUPnP 提供了一些简单的示例程序(如 `light-server` 和 `light-client`),帮助开发者快速上手 [^3]。 ### 4. **uperf** 虽然 uperf 主要是一个网络性能测试工具,但它也可以用于测试 UPnP 设备在网络环境下的表现。uperf 可以模拟多个客户端同时向受测设备发送 TCP 数据连接,从而测试设备的处理能力和性能指标。这使得 uperf 成为一种间接但有效的工具,特别是在评估 UPnP 设备在网络负载下的稳定性时 [^4]。 --- ### 总结 - 如果你需要进行**安全测试或渗透测试**,可以使用 **MirandaUPNP** 或 **UPnP Pentest Toolkit**。 - 如果你是**开发人员**,并且希望从底层了解 UPnP 协议,**GUPnP** 是一个非常好的选择。 - 如果你的目标是**测试 UPnP 设备的网络性能**,那么 **uperf** 可以提供有价值的性能数据。 这些工具可以根据具体的测试需求进行选择,覆盖从功能测试到安全性评估的各个方面。 ---
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值