简体   繁体   中英

ARP protocol with node.js

I'am wondering if it's possible to implement a ARP request using Node.js and the Raw Socket module founded here

Thanks in advance

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.

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 :)

Now you can use arpjs on node, to send ARP requests as you wish.

Try it here:

https://github.com/skepticfx/arpjs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM