了解onesixtyone SNMP工具

发布于 2024-10-09 15:36:55 字数 518 浏览 0 评论 0原文

简短版本
onesixtyone 中找到的这段(十六进制?)代码是什么意思?

char object[] = "\x30\x0e\x30\x0c\x06\x08\x2b\x06\x01\x02\x01\x01\x01\x0\x05\x00";

长版
Onesixtyone 是查找启用 snmp 的设备的搜索工具。它被硬编码以返回 sysDescr.0 值。作为一个副项目,我试图理解和/或修改它以返回任何 snmp OID 值。我有 PHP 背景,但我曾经使用 PHP 编写过 linux 守护进程。我对十六进制的了解有限

我的问题:我反复被 build_snmp_reg 方法挂断。我的理解是它指定了正在发送的 TCP 数据包,但我无法理解 sysDescr.0 是在哪里找到的。

Short Version:
What does this (hex?) code found in onesixtyone mean?

char object[] = "\x30\x0e\x30\x0c\x06\x08\x2b\x06\x01\x02\x01\x01\x01\x0\x05\x00";

Long Version:
Onesixtyone is search tool to find snmp enabled devices. It is hard coded to return the sysDescr.0 value. As a side project, I'm trying to understand and/or modify it to return any snmp OID value. I come from a PHP background, but I have used PHP to write linux daemons. I have limited knowledge of hex

My question: I'm repeatedly hung up by the build_snmp_reg method. My understanding is that it specifies the TCP packet being sent, but I cannot understand where the sysDescr.0 is found.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

嘿看小鸭子会跑 2024-10-16 15:36:55

您正在那里查看一些相当低级的 SNMP 数据。您不必使用所有可以为您处理该问题的 SNMP 工具来执行此操作。

您看到的这个十六进制是 SNMP PDU BER 字节。很难回答你的问题,但也许解释 SNMP PDU BER 的网站可能会有所帮助。

Net-SNMPLibSMI 也是您应该查看的内容。四处寻找您正在编程的语言和操作系统,并找到适合您的项目的 SNMP 工具和库。

You're looking at some pretty low-level SNMP data there. You shouldn't have to do that with all of the SNMP tools around that will deal with that for you.

This hex that you're looking at is the SNMP PDU BER bytes. It's hard to answer your question, but maybe a website that explains SNMP PDU BER might help.

Net-SNMP and LibSMI are what you should probably be looking at as well. Look around for whatever language and OS you're programming in and find SNMP tools and libraries for your project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文