Atheros AR9170 & BackTrack 4
by Darwin Mach on Apr.21, 2010, under IT Security, Tutorials
I recently broke out my Netgear WNDA3100 adapter that I bought a while ago to replace my old Netgear WG111 that I used to use for cracking wireless networks. Granted, the WG111 was reliable, but the reasons for the replacement are obvious: the WNDA3100 is dual-band and supports 802.11n. But for beginners who don’t want to shell out as much money nor spend extra time getting a wireless card to work properly, the WG111 is still the best choice.
Spend extra time to get the WNDA3100 to work properly? Yes, it didn’t quite readily work with BT4 (and probably not with other distros running the same kernel version). After doing some searching, I found a thread on backtrack-linux.org’s forum that allows my new adapter to work, with full monitor mode & packet injection capabilities. For a matter of record & for easy searching, I’ll document the directions below.
These instructions work for any Atheros AR9170 based cards:
* Arcadyan – WN7512
* Atheros – 9170
* Atheros – TG121N
* AVM – FRITZ!WLAN USB Stick N
* AMV – FRITZ!WLAN USB Stick N 2.4
* Cace – Airpcap NX
* D-Link – DWA 160A1
* D-Link – DWA 160A2
* IO-Data – WNGDNUS2
* Netgear – WNDA3100
* Netgear – WN111 v2
* Planex – GWUS300
* Sphairon – Homelink 1202
* TP-Link – TL-WN821N v2
* Z-Com – UB81 BG
* Z-Com – UB82 ABG
* Zydas – ZD1221
* Zyxel – NWD271N
IMPORTANT: please note that the hardware revisions matter, especially for the WNDA3100 that I’m working with. The WNDA3100v2 uses a Broadcom chipset instead, which has some other issues & corresponding remedies I won’t be discussing here.
Anyways…
1.) Download the patched firmwares ar9170.fw, ar9170-1.fw, and ar9170-2.fw and place them into /lib/firmware.
2.) Download compat-wireless-2.6.32.3.tar.bz2 and untar it to your favorite location.
3.) Run the following in the terminal:
cd compat-wireless-2.6.32.3
make
make install
make unload
*If you get a “No such file or directory” error when you run make, run:
ln -s /usr/src/linux /lib/modules/2.6.30.9/build
I didn’t get the error so I didn’t run it.
4.) Add “blacklist arusb_lnx ” to the end of /etc/modprobe.d/blacklist. This will prevent the loading of the buggy/incorrect drivers and load the proper ones instead.
5.) On line 174 of /usr/sbin/airmon-ng, change “xar9170″ to “xar9170usb”. This will tell airmon from the aircrack suite to use the new drivers.
6.) Save all files and reboot.
Test it using the following:
1.) Plug in your adapter (WNDA3100 in my case) and start the networking service.
/etc/init.d/networking start
2.) Run:
airmon-ng start wlan0
Replace wlan0 with your wireless interface’s name. This will put your card into monitoring mode.
3.) Run:
aireplay-ng -9 wlan0
The -9 parameter means –test for short. This should show you some output with the APs found, whether injection was successful, etc.
Enjoy!
These new firmwares and drivers are likely to be incorporated in a newer version of the kernel, and thus later releases of *nix distros, hopefully eliminating the need for a large portion of this hack.
A Must Have App for the N900
by Darwin Mach on Apr.19, 2010, under Personal
I’m back, for a really brief update… This time to give a shoutout to a new applet for the N900. If you run SSH on your device, this one is a great one for improving security.
It’s called SSH Status and Switcher that allows you to toggle SSHD directly from the status area menu.
Overclocking the N900
by Darwin Mach on Apr.08, 2010, under News, Tech Tips, Tutorials
Hello everyone.
Today, I bring to you… How to overclock the Nokia N900! Since the first sighting of an overclocked Cortex-A8 processor has appeared, the folks at maemo.org have managed to flash the N900 with customized kernels in order to allow the CPU to be overclocked up to 1.2GHz (DSP up to 500MHz)! But due to liability concerns, only the kernel images of up to 930MHz have been posted.
Technically, the battery life would be less, but the N900 dynamically scales the CPU speed down to 250MHz when it is idle. The custom kernel allows it to go down to 125MHz.
Personally, I have flashed the 850MHz / 450MHz DSP kernel via XTerminal and the phone is definitely a lot snappier & responsive. So far, it’s been stable for me. As with any overclocking, you are on your own and accept the fact that you may cause hardware damage. In no way is anyone liable for such modifications. Period. You have been warned.
The kernels require N900 firmware PR1.1 or greater to run. However, since PR1.2 is coming soon, I highly recommend you restore the stock kernel before upgrading to the newest firmware or you may see some problems. As a side note, these customized kernel images were based off of PR1.1.1 and will almost definitely be incompatible with PR1.2. So once the new firmware has been released, WAIT for a new version of the custom kernels!
If you’re still interested, here’s a link to the guide that jakiman (thanks!) over @ maemo.org has put together: http://talk.maemo.org/showpost.php?p=595582&postcount=774
Props to lehto and titan @ maemo.org for their work in creating these wonderful mods. I will update you guys if anything interesting shows up with the overclocking between now and PR1.2.