lemontree55 / packetgen

Ruby library to easily generate and capture network packets
MIT License
98 stars 13 forks source link

Add Dropbox LAN Sync Discovery (DB-LSP-DISC) header #82

Closed picatz closed 3 years ago

picatz commented 6 years ago

The Dropbox LAN Sync Discovery Protocol (DB-LSP-DISC) would be nice to have in the future.

While I haven't done this yet, I think it would be pretty trivial to implement since it just seems to just be a typical UDP communication on port 17500 with a JSON payload (plaintext).

sdaubert commented 6 years ago

@picatz what will be the interest of adding this protocol over using:

  1. packetgen to capture/build UDP packets on port 17500,
  2. a json library to parse/build JSON structure?
picatz commented 6 years ago

@sdaubert I like using PacketGen to help get an idea of the kind of traffic on a network. It's practically my favorite packet analyzer!

If I didn't know this was Dropbox, I would have to go through "the trouble" to figure it out.

Wireshark supports this protocol, which was how I initially figured out what it was. However, I like doing all of my network-related reconnoissance on the command-line with PacketGen.

picatz commented 5 years ago

@sdaubert To follow up with you some more on this topic, I believe this protocol would be best suited as a plugin.

sdaubert commented 5 years ago

@picatz yes, i think so :smiley: