Decoding UDP packet sniff of door unlock command

Hi guys,

I have a 4 door RFID card “access control system” like this: [url=http://www.ebay.com/itm/Freeshipping-WG2004-TCP-IP-Four-4-Door-20K-Users-100K-Events-Access-Controller-/320946217194]http://www.ebay.com/itm/Freeshipping-WG2004-TCP-IP-Four-4-Door-20K-Users-100K-Events-Access-Controller-/320946217194[/url]

Whilst the software that comes with it is “ok” id like to integrate it with Vera.

The software allows you to send a “Door Open” command and ive captured this with a packet sniffer on my PC. I was hoping it was going to be a nice http put command…but alas it looks like…well something unlike http…

So i was thinking how can i get Vera to send these packets to the door controller? Would i need to get an application written to send them? or is there some existing function in Vera that would do this?

Quick-and-dirty use of Luasocket should suffice. It can send arbitrary UDP packets. If you start with the Limitless LED plugin you should be able to do the rest yourself.

Considering that it was designed for a lock … I would have imagined that they designed the communications protocol to not be susceptible to a network packet playback attack.

Thanks futzle - ill take a detailed look but i see that yes Vera can send the UDP commands directly eg: s:sendto(string.char(0x38,0x00,0x55), “192.168.1.240”, 50000)

There seems to be about 6 packets sent to the controller and approx the same received.

so do you or anyone know of a windows app that i can use to test sending the hex codes?

Hi Richard - looking at the software it comes with, i dont think its that smart… but yes you could be right…i kinda hope not, but also hope so!!

You could use a Lua interpreter for Windows. Once you have it working you can just copy-and-paste the code verbatim into your plugin.

thanks again - will give it a go…

so do you or anyone know of a windows app that i can use to test sending the hex codes?
I have found UDPTestTool3.0 very useful for testing UDP codes. See: [url=http://www.simplecomtools.com/productcart/pc/viewPrd.asp?idproduct=6&idcategory=5]Here.[/url] It's free. :)
Quick-and-dirty use of Luasocket should suffice. It can send arbitrary UDP packets. If you start with the Limitless LED plugin you should be able to do the rest yourself.
Are you calling my code [i]dirty[/i], @futzle? ;D

Did anyone ever figure this out? I’m in a similar situation with the same unit