[英]ARP protocol with node.js
It seems that it is possible, but it won't be easy, tough. 似乎有可能,但并非易事,艰难。
You can use raw-socket and check the modules that are using it to mimic behaviour, like net-ping , which is no more than ICMP, a protocol at the level 3 in the OSI stack. 您可以使用原始套接字并检查用于模拟行为的模块,例如net-ping ,它不超过ICMP,这是OSI堆栈中第3级的协议。
EDIT: 编辑:
ARP is at the level 2 (data link layer) of the OSI model, but that doesn't matter since with raw sockets you can do it perfectly :) ARP处于OSI模型的第2级(数据链路层),但这没关系,因为使用原始套接字,您可以完美地完成它:)
Now you can use arpjs on node, to send ARP requests as you wish. 现在,您可以在节点上使用arpjs来发送ARP请求。
Try it here: 在这里尝试:
https://github.com/skepticfx/arpjs https://github.com/skepticfx/arpjs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.