<HTML>
<HEAD>
<TITLE>AirSnort 0.2.7e (WEP Crack)</TITLE>
<link rel="stylesheet" type="text/css" href="../css0.css">
</HEAD>
<BODY>

<!--#include virtual="/doc/header.html" -->

<h1>AirSnort 0.2.7e (WEP Crack)</h1>
<p>13/Aug/2006 tested on SUSE10.1 and PrismGT card, and Atheros (madwifi) card</p>

AirSnort is a wireless LAN (WLAN) tool which recovers encryption keys. AirSnort operates by passively monitoring transmissions, computing the encryption key when enough packets have been gathered.

<!-******************** HEADER ********************>
<h2>Requirment</h2>

<ol>
<li>Wireless NIC
	<p>AirSnort runs under linux, and requires that your wireless nic be capable of rf monitor mode. Cards knows to do this are:</p>
	<ol>
	<li>Atheros cards with madwifi driver
	<li>Cisco Aironet
	<li>Prism2 based cards using patched wlan-ng drivers
	<li>Orinoco cards and clones using patched orinoco_cs drivers
	</ol>
<li>Download Airsnort-0.2.7e.tar.gz from http://airsnort.shmoo.com/
</ol>
<!-******************** HEADER ********************>
<h2>Install Madwifi Driver</h2>

This installation will install madwifi driver with a patch aircrack.

<li>Download driver and patch. First, download the latest patch, and then download the corresponding version of driver.
<pre>
# get http://patches.aircrack-ng.org/madwifi-ng-r1679.patch
# get http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r1679-20060707.tar.gz 
</pre></li>

<li>Install 
<pre>
# tar zxvf madwifi-ng-r1679-20060707.tar.gz
# cd madwifi-ng-r1679-20060707/
# patch -Np1 -i ../madwifi-ng-r1679.patch
# make
# make install
# mod_probe ath_pci
</pre></li>

<li>Create a new interface from wifi0. This might be required only for madwifi-ng driver. This creates ath1 monitor mode.
<pre>
# wlanconfig ath1 create wlandev wifi0 wlanmode monitor
</pre></li>

<!-******************** HEADER ********************>
<h2>Install Airsnort</h2>

<li>Install necessary packages. ie install from cdrom
<pre>
# cd /media/cdrom/suse/i586
# rpm -ihv pkgconfig-0.15.0-201.i586.rpm
# rpm -ihv gtk2-devel-2.6.4-6.i586.rpm
</pre>
<li><p>Perform the following steps.

<blockquote><pre>
# cd airsnort-0.2.7e.tar.gz /usr/local/src
# cd /usr/local/src
# tar -xzf airsnort-0.2.7e.tar.gz
# cd AirSnort-0.2.1
# ./configure
# make
# make install
</pre></blockquote>
If you see error messages, you need to make sure to be installed necessary packages.</p>

<li>Execute airsnort
<pre>
# airsnort
</pre>

<li>For Madwifi driver, select Host AP/Orinoco Driver Type.
<img src="images/airsnort02.png"></p>

<p>The number of interesting packets needed to perform a successful crack
depends on two things; luck and key length. Assuming that luck is on
your side, the key length is the only important factor. For a key
length of 128 bits, this translates to about 1500 packets. For other
key lengths, assume 115 packets per byte of the key.</p>

<p>When every weak packet has been gathered (13 key bytes * 256 = 3315
packets), there is no point to continuing the capture process. In
reality, it takes somewhat fewer packets than this.</p></li>

</ol>

<p><b>Note:</b> In my experience, using Aircrack is the best tool compare with other tools.
Aircrack on Linux support packet injection which means we can
increase the traffic, so we need only few hours to capture
sufficient packets. </p>
<p>Here is other my report.</p>

<table border=1>
<tr>
  <th>Tool</th>
  <th>OS</th>
  <th>CPU usage</th>
  <th>Packet injection</th>
  <th>My recommendation</th>
</tr>
<tr>
  <td>Airsnort on Windows<br>(<a href="http://www.grape-info.com/doc/win2000srv/security/airsnort.html" target="_blank">My note</a>)</td>
  <td>Windows</td>
  <td>High</td>
  <td>Not supported</td>
  <td>Low</td>
</tr>
<tr>
  <td>Airsnort on Linux</td>
  <td>Linux</td>
  <td>High</td>
  <td>Not supported</td>
  <td>Low</td>
</tr>
<tr>
  <td>Aircrack on Windows<br>(<a href="http://www.grape-info.com/doc/win2000srv/security/aircrack-2.3.html" target="_blank">My note</a>)</td>
  <td>Windows</td>
  <td>Low</td>
  <td>Not supported</td>
  <td>Middle</td>
</tr>
<tr>
  <td>Aircrack on Linux<br>(<a href="aircrack-ng-0.6.html">My note</a>)</td>
  <td>Linux</td>
  <td>Low</td>
  <td><b>Supported!</b></td>
  <td><b>Recommended!</b></td>
</tr>
</table>

<hr><a href="../index.html">Back</a>

<!--#include virtual="/doc/footer.html" -->

</body>
</html>

