Aircrack-ng
Welcome, Guest. Please login or register.
September 07, 2010, 03:50:09 am

Login with username, password and session length
Search:     Advanced search
Wiki: www.aircrack-ng.org
Bug tracker + latest devel sources: http://trac.aircrack-ng.org
35326 Posts in 6577 Topics by 22607 Members
Latest Member: bluelaymal042
* Home Help Search Login Register
+  Aircrack-ng
|-+  Members only
| |-+  Drivers
| | |-+  IWL4965 Howto without kernel-compile - Ubuntu 8.04
« previous next »
Pages: 1 [2] Print
Author Topic: IWL4965 Howto without kernel-compile - Ubuntu 8.04  (Read 29402 times)
AYAMY
Newbie
*
Posts: 3


Re: IWL4965 Howto without kernel-compile - Ubuntu 8.04
« Reply #15 on: September 06, 2008, 07:53:19 pm »

so this is the final tutorial :

Quote

1.) install aircrack-ng

For installing easily aircrack rc1  go download aircrack-ng_1.0~rc1-2ubuntu1_i386.deb  from http://ubuntu2.cica.es/ubuntu/ubuntu/pool/universe/a/aircrack-ng/

add the following lines into the file /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://archive.ubuntu.com/ubuntu/ intrepid main restricted

Then, we need to update Ubuntu's information about the available packages. That can be done by invoking this command   sudo apt-get update

install the debs and remove from /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://archive.ubuntu.com/ubuntu/ intrepid main restricted

then update Ubuntu's information about the available packages again.

[OLD
Install aircrack-ng from repository, this is only 1.0  beta but it does work too:

Code:
# aptitude install aircrack-ng
]

2.) let the kernel be

I didnt do any kernel-baking, all the options in http://aircrack-ng.org/doku.php?id=iwl4965#preparing_the_kernel were enabled by default.

3.)

compile driver

then i compiled the driver: (all this got thanks to grandstream http://tinyshell.be/aircrackng/forum/index.php?topic=2898.msg21350#msg21350) you need to have libnl-dev and libcss-dev installed:

Code:
aptitude install libnl-dev libssl-dev

go into directory
Code:
cd /usr/src/

get the compat-wireless driver source d injection-patches
Code:
wget http://www.orbit-lab.org/kernel/compat-wireless-2.6/2008/06/compat-wireless-2008-06-25.tar.bz2
wget http://patches.aircrack-ng.org/mac80211_2.6.26-rc8-wl_frag.patch
download http://tinyshell.be/aircrackng/forum/index.php?action=dlattach;topic=2898.0;id=360 into /usr/src for 0001-iwlwifi-Fix-packet-injection-in-iwl3945-and-iwl4965.patch

now after downloading the necessary files (Step 3), You have to disabled my wireless networking (by right clicking on the network manager)and keep the wireless disabled until you finished with Step 4

decompress and extract compat-wireless
Code:
bunzip2 compat-wireless-2008-06-25.tar.bz2
tar -vxf compat-wireless-2008-06-25.tar

now patch it, compile it and install it:
Code:
cd compat-wireless-2008-06-25
patch -p1 < /usr/src/0001-iwlwifi-Fix-packet-injection-in-iwl3945-and-iwl4965.patch
patch -p1 < /usr/src/mac80211_2.6.26-rc8-wl_frag.patch
make
make install
make load
rmmod iwl4965
modprobe iwl4965

4.) new firmware

the new driver is now loaded, next step is the firmware:
Code:
wget http://www.intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-4.44.1.20.tgz
tar -vxzf iwlwifi-4965-ucode-4.44.1.20.tgz
cp ./iwlwifi-4965-ucode-4.44.1.20/iwlwifi-4965-1.ucode  /lib/firmware/



5.) test it

now you should be able to inject:
disable the wlan in networkmanager (right click)
then do
Code:
iwconfig wlan0 mode monitor

if this gives errors (card in use or so) it is not shut down properly, a
Code:
rmmod iwl4965
modprobe iwl4965

helps, if not, you need to reboot.

and then try injection:
Code:
aireplay-ng --test wlan0

everything else can be found in various cracking-tutorials


there is some mistake ?
Before the 5 steps what I have to do: (enable the wireless networking with the right clicking on the network manager) o not?
Logged
riahc3
Newbie
*
Posts: 38


Re: IWL4965 Howto without kernel-compile - Ubuntu 8.04
« Reply #16 on: September 26, 2008, 01:23:52 am »

Can someone post a revisted and rewritten guide with all the official notes?

Because

sudo aireplay-ng --test wlan0
01:17:24  Trying broadcast probe requests...
01:17:26  No Answer...
01:17:26  Found 0 APs

it doesnt seem to work.
Logged
emicsmi
Newbie
*
Posts: 1


Re: IWL4965 Howto without kernel-compile - Ubuntu 8.04
« Reply #17 on: November 10, 2008, 04:13:31 am »

I'm using ubuntu 8.10 kernel 2.6.27 and I get this error when i try to
make to compile the drivers:
/home/emily/compat-wireless-2008-11-07/drivers/net/wireless/iwlwifi/iwl-sta.c: In function 'iwl_get_sta_id':
/home/emily/compat-wireless-2008-11-07/drivers/net/wireless/iwlwifi/iwl-sta.c:994: error: 'IEEE80211_IF_TYPE_MNTR' undeclared (first use in this function)
/home/emily/compat-wireless-2008-11-07/drivers/net/wireless/iwlwifi/iwl-sta.c:994: error: (Each undeclared identifier is reported only once
/home/emily/compat-wireless-2008-11-07/drivers/net/wireless/iwlwifi/iwl-sta.c:994: error: for each function it appears in.)
make[4]: *** [/home/emily/compat-wireless-2008-11-07/drivers/net/wireless/iwlwifi/iwl-sta.o] Error 1
make[3]: *** [/home/emily/compat-wireless-2008-11-07/drivers/net/wireless/iwlwifi] Error 2
make[2]: *** [/home/emily/compat-wireless-2008-11-07/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/emily/compat-wireless-2008-11-07] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [modules] Error 2

How do I finish compiling the drivers?
Logged
caek
Newbie
*
Posts: 1


Re: IWL4965 Howto without kernel-compile - Ubuntu 8.04
« Reply #18 on: February 19, 2009, 06:52:43 pm »

Having exactly the same problem as above, cant make.


Code:
root@user:/usr/src/compat-wireless-2008-06-25# make
make -C /lib/modules/2.6.27-7-generic/build M=/usr/src/compat-wireless-2008-06-25 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic'
/usr/src/compat-wireless-2008-06-25/config.mk:48: "WARNING: You are running a kernel >= 2.6.23, you should enable in it CONFIG_NETDEVICES_MULTIQUEUE for 802.11[ne] support"
  CC [M]  /usr/src/compat-wireless-2008-06-25/drivers/net/wireless/ath5k/base.o
/usr/src/compat-wireless-2008-06-25/drivers/net/wireless/ath5k/base.c: In function ‘ath5k_rxbuf_setup’:
/usr/src/compat-wireless-2008-06-25/drivers/net/wireless/ath5k/base.c:1256: warning: passing argument 1 of ‘pci_dma_mapping_error’ makes pointer from integer without a cast
/usr/src/compat-wireless-2008-06-25/drivers/net/wireless/ath5k/base.c:1256: error: too few arguments to function ‘pci_dma_mapping_error’
/usr/src/compat-wireless-2008-06-25/drivers/net/wireless/ath5k/base.c: In function ‘ath5k_beacon_setup’:
/usr/src/compat-wireless-2008-06-25/drivers/net/wireless/ath5k/base.c:2017: warning: passing argument 1 of ‘pci_dma_mapping_error’ makes pointer from integer without a cast
/usr/src/compat-wireless-2008-06-25/drivers/net/wireless/ath5k/base.c:2017: error: too few arguments to function ‘pci_dma_mapping_error’
make[4]: *** [/usr/src/compat-wireless-2008-06-25/drivers/net/wireless/ath5k/base.o] Error 1
make[3]: *** [/usr/src/compat-wireless-2008-06-25/drivers/net/wireless/ath5k] Error 2
make[2]: *** [/usr/src/compat-wireless-2008-06-25/drivers/net/wireless] Error 2
make[1]: *** [_module_/usr/src/compat-wireless-2008-06-25] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [modules] Error 2
Logged
liwei742665505
Newbie
*
Posts: 1


Re: IWL4965 Howto without kernel-compile - Ubuntu 8.04
« Reply #19 on: June 20, 2009, 01:15:27 pm »

It goes well untuil step 3 ,I can not install the compat-wireless-2008-06-25 driver, I am using Ubuntu 8.10 .but after I downloaded the lastest version of compat-wireless from http://wireless.kernel.org/download/compat-wireless-2.6 ,I install it sucessfully. And the following steps goes well.
Thank you all !
Logged
Pages: 1 [2] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Aircrack-ng | Powered by SMF 1.0.10.
© 2005, Simple Machines LLC. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!