2011-07-17 23:59:25

Yubico is awesome

Categories: coding, security, unix

Yubico and their products are awesome.

That pretty much sums up this blog post but I'm going to go on anyway. If you're thinking of introducing two-factor authentication to your company, or you're using something that's fundamentally broken (like RSA SecureID) you simply must at least take Yubikeys into consideration.

Read the rest of this entry »
2010-09-05 15:22:47

gettimeofday() should never be used to measure time

Categories: bugs, coding

gettimeofday() and time() should only be used to get the current time if the current wall-clock time is actually what you want. They should never be used to measure time or schedule an event X time into the future.

Read the rest of this entry »
2010-08-05 19:33:00

tlssh - a replacement for SSH

Categories: coding, network, security, unix

I've started writing a replacement for SSH.

Why? Because SSH has some drawbacks that sometimes annoy me. I also wanted an authentication scheme that's more similar to SSL/TLS than what SSH does.

With tlssh you don't specify username or password, you simply connect to the server using a client-side certificate to log in as the user specified in the certificate. No interaction until you reach the shell prompt on the server.

Read the rest of this entry »
2010-05-13 21:35:59

Redirecting to the closest site using Javascript

Categories: coding, web

I'm sure this problem has been solved this way many times before, but I haven't seen it while idly browsing around sites about scalability and load balancing. So here it is, a Javascript solution to the closest-site problem.

Read the rest of this entry »
2010-04-01 19:45:03

10 years of maintaining an open source program

Categories: arping, coding

Arping 0.1 was released 10 years ago last month or so. It's since been included as a package in Debian GNU/Linux, Ubuntu, OpenBSD, FreeBSD and NetBSD, Gentoo and some other smaller and bigger OSs and distributions.

Read the rest of this entry »
2010-01-26 21:28:45

Clipboard sniffer

Categories: coding, security, unix

Yes clipboard, not keyboard. I've made a clipboard sniffer for X called ClipSniff.

It periodically saves whatever is in the clipboard (both the "PRIMARY" and the "CLIPBOARD") into a sqlite database.

git clone http://github.com/ThomasHabets/clipsniff.git
Read the rest of this entry »
2009-10-29 22:47:17

Lightwave. Like Google Wave only much less

Categories: coding, erlang, web

I felt sorry for all those who don't yet have a Google Wave account, and I was impressed with their demo. And I also wanted an Erlang project.

So I killed three birds with one stone. I made Lightwave. It's like Google Wave only:

  • Dumber
  • Buggier
  • Uglier
  • More incomplete
  • Written in Erlang

Read the rest of this entry »
2009-10-01 21:16:05

Autotools is nice

Categories: autotools, coding, unix

I was recently asked why autotools was so good. I thought I might as well post what I answered.

Read the rest of this entry »
2009-03-21 20:58:01

Moving a process to another terminal

Categories: coding, tty, unix

I've always wanted to be able to move a process from one terminal to another. For example if I've started a long-running foreground process (such as irssi or scp) outside of a screen and I have to log out my local terminal. I looked around and there doesn't seem to be any way to do this.

Read the rest of this entry »
2008-07-27 22:54:00

Erlang BGP daemon

Categories: bgp, bugs, cisco, coding, erlang, network

I'm writing a BGP daemon in Erlang. It can connect, parse update packets and announce routes.

Read the rest of this entry »