Yubico Forum
https://forum.yubico.com/

Yubihome - How to capture keystokes in public environment?
https://forum.yubico.com/viewtopic.php?f=8&t=286
Page 1 of 1

Author:  iipee [ Sat Mar 07, 2009 8:47 am ]
Post subject:  Yubihome - How to capture keystokes in public environment?

Yubihome is my YubiKing 2009 project.

This is an implementation of using Yubikey to open front door of my house. You can find more information from http://wiki.yubico.com/wiki/index.php/A ... o_building.

Current implementation has USB extension cable from front door to my Home Control server which is running Windows. I have analyzed security threats in my system design blog http://smartpirtti-yubikey.blogspot.com ... ssues.html . I believe it's not easy to hack but I'm not happy with that.

To really solve this I'm planning of installing different PC for just reading keyboard and sending OTP's as a UDP broadcast to network, where my Home Control server can do authorization, open door, switch lights etc. More detailed plan is found from http://smartpirtti-yubikey.blogspot.com ... under.html.

My question is, what would be good Linux distribution for this kind of solution? It should be very light weighted, maybe fit into 128M USB-stick?

Or even better: Does anybody know any cheap router that has place for USB disk and internally runs linux? That would be ideal hardware to create new firmware to do this kind of simple task. I believe that could be used on many other projects too.
This could be good place to start digging: http://en.wikipedia.org/wiki/Linksys_WRT54G_series. Model WRTSL54GS has USB for "StorageLink"...
From there you can find link to small linux distro http://openwrt.org/ that can be embedded to Linksys firmware.
Maybe that's a good distro to start prototyping with?

Author:  JensK [ Sun Mar 08, 2009 10:00 pm ]
Post subject:  Re: Yubihome - How to capture keystokes in public environment?

iipee wrote:
My question is, what would be good Linux distribution for this kind of solution? It should be very light weighted, maybe fit into 128M USB-stick?

I do not know them but here you can find a comparisation of linux os which are usefull for small systems http://lifehacker.com/5069054/battle-of-the-thumb-drive-linux-systems.

But I think openwrt seems to be a good start.

Cheers,
Jens

Author:  hacho [ Thu Apr 16, 2009 6:31 am ]
Post subject:  Re: Yubihome - How to capture keystokes in public environment?

You could consider the Ubiquiti RouterStation Pro. It runs OpenWRT and has USB and SDIO port for additional storage if needed. The Pro is very new and I think does not ship yet, but I see some sites selling it. For example http://www.streakwave.com/Itemdesc.asp?ic=RouterS%5FPro. You might want to give them a call.

If you can fit in the 16 MB on-board flash you can use the normal RouterStation, which is available from many sources at around $70, but I guess you need a USB port so this does not work.

You could also consider a full blown general purpose distro. For example you could install Debian or DSL in about 250 MB on a USB or Compact Flash. The benefit would be easier installation and ability to install any additional package you might need running on a normal x86 board. Disadvantage is hardware. Need to find some small board. I did something like that experimenting a while back on an embedded board from Advantech. Worked pretty well. These boards are generally pretty expensive, but I had one leftover from a different project. Now adays there are quite a few small boards that could work. Starting with VIA mini-ITX and the latest addition to the choices Atom based boards -
http://www.newegg.com/Product/ProductLi ... rder=PRICE

There are also some other low cost and small form factor x86 solutions (thin clients fall under this category). For example eBox-2300, ALIX boards from PC Engines, HP T5700, etc. You might be able to pickup something cheaply at eBay

Author:  hacho [ Fri Apr 17, 2009 5:55 am ]
Post subject:  Re: Yubihome - How to capture keystokes in public environment?

iipee wrote:
To really solve this I'm planning of installing different PC for just reading keyboard and sending OTP's as a UDP broadcast to network, where my Home Control server can do authorization, open door, switch lights etc. More detailed plan is found from http://smartpirtti-yubikey.blogspot.com ... under.html.


I don't quite understand why you want to do a UDP broadcast, but here is very simple shell script that should be completely sufficient to send the key you get in a UDP message using out-of-the-box tools

Code:
#!/bin/sh

PORT=9999            # port to send message to
DESTIP="127.0.0.1"      # IP address of destination machine

NETCAT_CMD="nc -w 1 -n -u $DESTIP $PORT"   # use UDP
#NETCAT_CMD="nc -w 1 $DESTIP $PORT"         # use TCP


while (true)
do
   read KEY
   echo "Got key $KEY"
   echo $KEY | $NETCAT_CMD
done

Author:  markus [ Tue Sep 08, 2009 8:43 pm ]
Post subject:  Re: Yubihome - How to capture keystokes in public environment?

I know this is an old thread, but take a look at http://www.marvell.com/products/embedde ... vaplug.jsp . It's essentially a computer that fits into a wall socket, and has ethernet and usb. Perfect for something like home automation and Yubikey, perhaps?

How did you end up doing it?

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/