User Tools

Site Tools


install_fonera

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
install_fonera [2007/02/13 04:39] sonicvanajrinstall_fonera [2018/11/22 00:14] (current) – deprecated mister_x
Line 1: Line 1:
-====== Tutorial: How to install Aircrack-ng on La Fonera ======+====== DEPRECATED - Tutorial: How to install Aircrack-ng on La Fonera ======
 February 12, 2007 \\ February 12, 2007 \\
 By: SonicvanaJr By: SonicvanaJr
Line 24: Line 24:
  
 The Fon is able to run the [[http://openwrt.org|OpenWRT]] Kamikaze image, and can thus run various pieces of software that are ported to it. Including the Aircrack-ng suite. The Fon is able to run the [[http://openwrt.org|OpenWRT]] Kamikaze image, and can thus run various pieces of software that are ported to it. Including the Aircrack-ng suite.
 +
 +== Power Adapter(s) ==
 +
 +Over the past month of so I have fabricated various power supplies for the fon, since a power outlet is not always available. 
 +
 +Since it runs on five volts the options to power it are almost limitless. 
 +
 +So far I have build a car power adapter, USB power adapter, and a power adapter that uses two 9V batteries.
 +
 +The car, and 9V battery adapters both used a 5V voltage regulator available from Radioshack. Part number 276-1770
 +
 +Basically this takes an input voltage up to 35V, and drops it down to 5V. However since the laws of science apply in our world the lost energy has to go somewhere, and that somewhere is out of the regulator in the form of heat, so in layman's terms these get VERY hot after a bit of use.
 +
 +For the USB adapter it was as simple as connecting ground to ground and positive to 5V+ on the USB cable.
 +
 +I'm not going to go into wiring specifics since all of it is VERY basic stuff, however if you need help feel free to contact me.
 +
  
 ===== Installing ===== ===== Installing =====
Line 31: Line 48:
 Please note to be able to do this you either need a Fon that has SSH enabled. Please note to be able to do this you either need a Fon that has SSH enabled.
  
-Tutorial/Guide [[http://bingobommel.blogspot.com/|here]]. This only works on Fons with firmware 7.0 r4 or below, though at the time of writing [2/12/2007] [[http://http://mrmuh.blogspot.com/|these people]] claim to have a way to enable SSH on newer firmwares.+Tutorial/Guide [[http://bingobommel.blogspot.com/|here]]. This only works on Fons with firmware 7.0 r4 or below, though at the time of writing [2/12/2007] [[http://mrmuh.blogspot.com/|these people]] claim to have a way to enable SSH on newer firmwares.
  
 If your Fon is not capable of being SSH'd into then you can use a [[http://wiki.openwrt.org/OpenWrtDocs/Customizing/Hardware/Serial_Console|serial console]] to flash the image as well.  If your Fon is not capable of being SSH'd into then you can use a [[http://wiki.openwrt.org/OpenWrtDocs/Customizing/Hardware/Serial_Console|serial console]] to flash the image as well. 
  
-Instructions for building your own image, and various other information about the Fon and OpenWRT can be found  [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Fon/Fonera|here]]+Instructions for building your own image, and various other bits of information about the Fon and OpenWRT can be found  [[http://wiki.openwrt.org/OpenWrtDocs/Hardware/Fon/Fonera|here]]
  
-Before building the image however the Madwifi-Ng drivers must be patched to allow injection. 
-The patch for the Madwifi-Ng driver can be found [[http://patches.aircrack-ng.org/madwifi-ng-r1886.patch|here]] 
-Please make note that there are actually only two **code** changes made to //if_ath.c// file, rest is just comments, and can and **will** be omitted when patching for OpenWRT. 
  
-To make your own injection capable image of the OpenWRT Kamikaze image follow the steps below. 
  
 ==== First pull the SVN trunk and packages from the OpenWRT SVN server ==== ==== First pull the SVN trunk and packages from the OpenWRT SVN server ====
-    *  <code bash>svn co https://svn.openwrt.org/openwrt/trunk/</code> +    *  <code bash>cd ~</code> 
-    *  <code bash>svn co https://svn.openwrt.org/openwrt/packages</code>+    *  <code bash>svn co svn://svn.openwrt.org/openwrt/trunk/ trunk</code> 
 +    *  <code bash>svn co svn://svn.openwrt.org/openwrt/packages/ packages</code>
     *  You can then later update either of those by going into either the **trunk** or **packages** directory, and typing <code bash>svn up</code>     *  You can then later update either of those by going into either the **trunk** or **packages** directory, and typing <code bash>svn up</code>
  
 ==== Setup and build the image ==== ==== Setup and build the image ====
-  * Go into trunk/package directory and create a symbolic link from the packages tree to the trunk/packages directory <code bash> ln -../../packages/*/* . </code>+  * Go into trunk/package directory and create a symbolic link from the packages tree to the trunk/packages directory <code bash> cd ~/trunk/package </code> 
 +  * <code bash> ln -sf ../../packages/*/* . </code> 
 + 
 +  *  Now go into the trunk directory, and type <code bash> cd ~/trunk/ </code> 
 +  * <code bash> make menuconfig </code> 
 +    * Make sure that "Target System" is "Atheros AR231x/AR5312 [2.6]" 
 +<code bash>(X) Atheros AR231x/AR5312 [2.6]</code>
  
-  *  Now go into the trunk directory, and type <code bash> make menuconfig </code> 
-    * Make sure that "Target System" is Atheros [2.6] 
     * Make sure the Aircrack-Ng package is selected in the Network section as a module.     * Make sure the Aircrack-Ng package is selected in the Network section as a module.
 +<code>Network  ---> 
 +<*> airpwn........................................... Packet injection pwnage (NEW)
 +    wireless  ---> 
 +<*> aircrack-ng................ next generation of aircrack with new features (NEW)
 +<*> aircrack-ptw............. A tool using a new method for breaking WEP Keys (NEW)
 +<*> kismet-drone................................................ Kismet drone (NEW)</code>
 +
     * Make sure the libpthread package is selected in the Libraries section as a module.     * Make sure the libpthread package is selected in the Libraries section as a module.
 +<code>Libraries  --->
 +<*> libpthread-stubs........................................ libpthread-stubs (NEW)</code>
 +
     * Exit out of the kernel configuration, and be sure to save your changes.     * Exit out of the kernel configuration, and be sure to save your changes.
  
   * Go to the trunk directory and type <code bash>make</code>   * Go to the trunk directory and type <code bash>make</code>
- + 
-  * Once this is done type <code bash>make clean</code> +
- +
-==== Patch the madwifi source ==== +
-    * Go into the trunk/dl directory +
-    * Extract the madwifi source by typing <code bash> tar xvjf  madwifi-0.9.2.1.tar.bz2 </code> +
-    * Edit the madwifi-0.9.2.1/ath/if.c file +
-      * Open said file in your favorite text editor and at the beginning you will see a bunch of commented code. Remove one line of this code. I know this seems stupid, and is quite a dirty hack, but it must be done so that when the madwifi-ng package builds the other patches can be applied to it without any problems. +
-      * Now apply the two lines of code found within the patch file mentioned at the beginning of tutorial. Again I know it sucks to do it by hand, but then again it is quite trivial, and easy, so don't complain to much. Once this is done save the file, and exit out of your text editor. +
- +
-==== Repackage the madwifi-ng source ==== +
-    * <code bash>rm -rf madwifi-0.9.2.1.tar.bz2 && tar cvjf madwifi-0.9.2.1.tar.bz2 madwifi-ng-0.9.2/ && rm -rf madwifi-0.9.2.1/</code> +
-   +
-==== Rebuild the image, this time with the patched drivers ==== +
-    * Go into the trunk directory, and type <code bash>make</code> +
- +
 Now that all of this is done you should have some files in your bin directory. Now that all of this is done you should have some files in your bin directory.
   * openwrt-atheros-2.6-vmlinux.lzma   * openwrt-atheros-2.6-vmlinux.lzma
Line 92: Line 104:
 Once you have successfully flashed your Fon boot it up, and ssh into it. Default login "root", password "admin" Once you have successfully flashed your Fon boot it up, and ssh into it. Default login "root", password "admin"
  
-Now you need the aircrack-ng and libpthread ipk files. They can be found [[http://sonicvanajr.com/fonera/|here]] or if you built them you should have no problem getting them over to your fon at this point.+Now you need the aircrack-ng and libpthread ipk files. They can be found [[http://mobileaccess.de/fonera/bin/packages|here]] or if you built them you should have no problem getting them over to your fon at this point.
  
 Use the command <code bash>ipkg install <file name here>.ipk</code> for both of the files. Use the command <code bash>ipkg install <file name here>.ipk</code> for both of the files.
Line 109: Line 121:
  
 If you need help I can be found in the Aircrack-ng IRC channel. If you need help I can be found in the Aircrack-ng IRC channel.
 +
  
 ===== Ready to use images ===== ===== Ready to use images =====
  
-However, if you're lazy, or just don't feel like you can do this you can download the image files [[http://sonicvanajr.com/fonera/images/|at this site]]+However, if you're lazy, or just don't feel like you can do this you can download the image files [[http://mobileaccess.de/fonera/bin/packages/|at this site]]
  
-Please understand that these packages are provided as is, and I will not be making any changes to their kernel configuration unless I need to or you can prove to me why I should make a certain change+Please understand that these packages are provided as is.
install_fonera.txt · Last modified: 2018/11/22 00:14 by mister_x