LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-05-2006, 06:57 PM   #1
Ashex
Member
 
Registered: Mar 2006
Location: Bellevue, WA USA
Distribution: Debian KDE/Fluxbox
Posts: 36

Rep: Reputation: 15
Madwifi-old + Aircrack/Trouble compiling madwifi


Hey everyone,
This is my first post here, whenever I searched google for information on linux hardware linuxquestions always came up and the information I found on here was always useful. So I decided to join! For a tech class I'm taking, my final project is to Crack a wireless network using Linux, Distro SuSE 10.0 KDE.

Anyways, now that you know what I'm doing is completely legal and everything;

For the project I was originally going to go with Madwifi-ng and Kismet. It took me a few days but I managed to get them both to work. however I was never able to get kismet to collect packets (would collect a hundred or so then stop). I looked around and found Aircrack, I was also told that aircrack only worked with madwifi-old at this time. So I went through the process for uninstalling madwifi-ng, and got the source for madwifi-old.

for awhile I kept getting this error:
Quote:
ashex@linux:~/madwifi-old> make
cat: /usr/src/linux-2.6.13-15.8-obj/i386/default/include/linux/wireless.h: No such file or directory
cat: /usr/src/linux-2.6.13-15.8-obj/i386/default/include/linux/wireless.h: No such file or directory
Checking if all requirements are met... FAILED
Only kernel versions 2.4.x and above are supported.
You have .
make: *** [configcheck] Error 1
ashex@linux:~/madwifi-old> sudo su
Password:
Sorry, try again.
Password:
linux:/home/ashex/madwifi-old # make
cat: /usr/src/linux-2.6.13-15.8-obj/i386/default/include/linux/wireless.h: No such file or directory
cat: /usr/src/linux-2.6.13-15.8-obj/i386/default/include/linux/wireless.h: No such file or directory
Checking if all requirements are met... FAILED
Only kernel versions 2.4.x and above are supported.
You have .
make: *** [configcheck] Error 1
linux:/home/ashex/madwifi-old #
I managed to solve that using 'export KERNELSOURCES=<kernel version>'
I also had to set the kernel path for some reason using 'KERNELPATH=path/to/kernel/'

At long last I got it to compile, I kept getting the error that I was missing sharutils, even after I downloaded the rpm for Suse and installed it.

I did the make install and it installed for me. however I couldn't get modprobe ath_pci to work, kept telling me the kernel was missing. So I read through the docs on Madwifi and uninstalled, did export KERNELRELEASE=`uname -r` and everything, then recompiled and installed.

so now that works, barely. HOWEVER, it doesn't recognise the other modules. the command wlanconfig doesn't exist, and executing command madwifi gives me a command unrecognized.

Right now I'm completely stumped as to why this is occuring, my kernel source is 2.6.13-15.8 and matches with kernel-default too. Everything looks as it should be, I'm not sure where to proceed from here, so any help would be greatly appreciated!
 
Old 03-05-2006, 08:14 PM   #2
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
Madwifi isn't a command, it's a driver
you need to modprobe ath_hal and ath_pci

then, you need to add "alias ath_pci ath0" in your /etc/modprobe.conf, without the quotes

After you do that, modprobe ath_pci, it should load everything you need, but, if not, the drivers should be:
ath_hal
ath_pci
wlan
ath_rate_sample


After that, run: ifconfig ath0 up
then: dhcpcd ath0

If you use a sercure wireless connection, before you dhcpcd it, you're going to have to set the wireless key by:
ifconfig ath0 key xxx (where xxx is your key)

What distro do you use?
 
Old 03-06-2006, 08:38 PM   #3
Ashex
Member
 
Registered: Mar 2006
Location: Bellevue, WA USA
Distribution: Debian KDE/Fluxbox
Posts: 36

Original Poster
Rep: Reputation: 15
I don't know why I tried to execute madwifi, I was probably brain dead from studying the whole day (mid-terms )

Anyways, I'm using SuSE 10.0 KDE since because of it's ease of use (although I'm thinking of killing the gui),

When I added that line into modprobe.conf, I got this error when trying to execute modprobe ath_pci:

linux:/home/ashex/madwifi-old # modprobe ath_pci
FATAL: Module ath0 not found.
 
Old 03-06-2006, 08:52 PM   #4
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
hmm.. it's been ages since i've setup madwifi like that, you might want to take it out of the modprobe.conf... now that I look over my config, it's been commented out.
 
Old 03-06-2006, 11:09 PM   #5
Ashex
Member
 
Registered: Mar 2006
Location: Bellevue, WA USA
Distribution: Debian KDE/Fluxbox
Posts: 36

Original Poster
Rep: Reputation: 15
removing modprobe.conf? wouldn't that disable the command completely?
 
Old 03-07-2006, 02:49 PM   #6
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
No.. sorry, the ath0 line from modprobe.conf

Sorry... didn't really explain myself, I think I was distracted by something shiny when I was typing that message.
 
Old 04-05-2006, 09:54 PM   #7
crazibri
Member
 
Registered: Mar 2004
Location: Orange County, CA
Distribution: OS X, SuSE, RH, Debian, XP
Posts: 377

Rep: Reputation: 31
I'm trying to do a similar thing with an Atheros 5215 chipset. Its a USB wireless device.

I downloaded madwifi-old. Found the "susebuild" script here: http://madwifi.org/wiki/UserDocs/Distro/SuSE

I installed the "sharutils" from Yast Software Management.

Then I just ran "./susebuild" and it compiled. I ran "./susebuild install" and the drivers are installed in /lib/modules/`uname -r`/extra.

I typed "modprobe ath_pci" and "modprobe ath_hal" and still nothing shows up in ifconfig or iwconfig. I know I havent configured the settings for the wireless device, but I should still be able to perform "iwlist ath0 scanning" but the device isnt available.

Does anyone have any insight?

Distro is Suse 10.0.
Thanks!

PS i'm going to try madwifi-ng and report back.
 
Old 04-05-2006, 11:39 PM   #8
crazibri
Member
 
Registered: Mar 2004
Location: Orange County, CA
Distribution: OS X, SuSE, RH, Debian, XP
Posts: 377

Rep: Reputation: 31
Found out Madwifi doesnt support Atheros USB Wireless devices.

I'm going back to the store to locate a better device.

Back to square 1.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Madwifi-old + Aircrack/Trouble compiling madwifi Ashex Linux - Software 0 03-05-2006 06:55 PM
Madwifi.rpm not compiling because of sharutils ee1ka Linux - Wireless Networking 1 01-07-2006 09:56 AM
Error compiling Madwifi Drivers kf8rd Linux - Networking 0 06-17-2005 06:08 AM
compiling madwifi Subbeh Mandriva 6 03-07-2005 08:17 PM
Error compiling madwifi drivers thiqued Linux - Software 0 09-24-2004 04:11 PM


All times are GMT -5. The time now is 11:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration