Aircrack suite + Ubuntu 11.10 problems with monitor mode channel

Recently I have been playing around with the aircrack suite and in particular the aireplay-ng tool. This tool may be used for ARP replay attacks, however it requires that the monitor mode interface is able to switch channels to the channel of the target device / access point. For some reason my monitor interface was stuck in channel -1. So to fix this I found a forum post on Ubuntu Forums which solves this problem: http://ubuntuforums.org/showpost.php?p=10550806&postcount=6

You can apply this to the wlan interface to put it directly into monitor mode and avoid using the airmon-ng tool altogether if you wish. You may also be able to apply this to the mon0 interface created by the airmon-ng tool as well, however I have not tried it yet.

The bulk of the problem is just the order in which monitor mode and channel are enabled, it must follow the order as follows:
ifconfig $IFACE down
iwconfig $IFACE mode managed
ifconfig $IFACE up
iwconfig $IFACE channel $@
ifconfig $IFACE down
iwconfig $IFACE mode monitor
ifconfig $IFACE up

Hope this solves some problems…

Windows 7 – SP1, Multiple OS – Grub

A while ago I bought a Toshiba netbook which of course came with Windows 7 startup. Since I was going to be putting 4 OS’es on it (Windows, Ubuntu, Chromium and Meego), I was switching from the usual method of booting directly into Windows, into using Grub2. Of course now that the SP1 update has come out, it doesn’t install properly. This is the support page that the error pointed me to: http://windows.microsoft.com/en-US/windows7/windows-7-windows-server-2008-r2-service-pack-1-sp1-installation-error-0x800F0A12


Windows Disk Management Tool, used for setting active partition

Unfortunately, none of these options worked. It turns out, it is a simple fix (at least for me). In start menu, type “disk management” into the search, and click on “create and format hard disk partitions”. Right click on the partition that has Windows7 (likely the largest NTFS partition [don’t select the recovery partition] if you have a setup like mine) and click “Mark Partition as Active”. Then try to install SP1 again, and it should work fine.