No SSH host verification

En passant

Sometimes I need to connect to an host which has his ssh key fingerprint changed.

To bypass the host key verification we can connect like this:

ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mach

And no more :

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Exploit 0-day Kernel

En passant

Ouch ! Un exploit de type 0-day tourne sur le net et permet de devenir root sur une machine (pas besoin de mettre un lien ici, vous le trouverez aisément). Les kernel 2.6.37 à 3.8.8 semble être impactés.

Et voilà le patch : http://git.kernel.org/linus/8176cced706b5e5d15887584150764894e94e02f Juste un typage… !

Debian security l’a patché : https://security-tracker.debian.org/tracker/DSA-2669-1
Ubuntu aussi : http://people.canonical.com/~ubuntu-security/cve/2013/CVE-2013-2094.html

Chroot

En passant

I always forgot how to mount special kernel FS when I need to chroot. So this is a memo :)

mount /dev/sdXX /mnt/
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -t sysfs sys /mnt/sys
chroot /mnt/ /bin/bash
hack hack ...