Jannich Brendle on June 10th, 2010

I’ve just gotten a new internet connection, from TDC, which included a wireless router. That means that I can play with my Asus WL-500gp. :-)
The first step was upgrading to OpenWRT 10.03, which was really easy:

cd /tmp/
wget http://downloads.openwrt.org/backfire/10.03/brcm47xx/openwrt-brcm47xx-squashfs.trx
sysupgrade openwrt-brcm-2.4-squashfs.trx
reboot

Now it’s playtime! :-)

Tags: , ,

Jannich Brendle on June 7th, 2010

To increase security a bit on my blog when using public networks such as those at libraries, I decided to create a self-signed certificate for the administration part of my wordpress installation, and I figured that I might as well write down the procedure here.

Of course all of bredsaal.dk is secured by SSL, not only the administration part, but since I’m using a self-signer certificate, most (if not all) modern browsers will warn the user that the certificate is not signed by a third-party, such as thawte.

Please note that this describes how to use a self-signed certificate on Debian Lenny, if you use a different distribution, you might have to change stuff. ;-)

Creating your certificate

sudo -s
mkdir /etc/lighttpd/certificates
cd /etc/lighttpd/certificates/
openssl req -new -x509 -keyout bredsaal.dk.pem -out bredsaal.dk.pem -days 365 -nodes
chown www-data:www-data /etc/lighttpd/certificates/ -R
chmod 600 /etc/lighttpd/certificates/

Setting up lighttpd

cat << EOF >> /etc/lighttpd/lighttpd.conf
$SERVER["socket"] == "bredsaal.dk:443" {
server.document-root = "/var/www/bredsaal.dk/"
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/certificates/bredsaal.dk.pem"
}
EOF

Now you just need to restart lighttpd:

/etc/init.d/lighttpd restart

That’s it. Now, go see if you can reach https://bredsaal.dk/! :-)

Tags: ,

Jannich Brendle on May 22nd, 2010

Some time ago, Google announced that they had developed and released a security testing tool called skipfish. Running this on debian or ubuntu is quite simple. Open a terminal and type in the following:

sudo apt-get install libssl-dev zlib1g-dev libidn11-dev build-essential
wget http://skipfish.googlecode.com/files/skipfish-1.34b.tgz
tar xzf skipfish-1.34b.tgz
make

Now you are ready to test your web application:


./skipfish -W dictionaries/default.wl -o /tmp/bredsaal.dk http://bredsaal.dk/

Of course, you have to replace bredsaal.dk with your own domain. For the fastest results, install the wepapp you want to test on localhost. :-)

Tags: , ,