LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-01-2006, 08:36 AM   #1
dumbnoobie
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
Madwifi and Patching


Hi, wonder if you could aid please.

MY situation is this -

I've managed to do the hard drive install of Knoppix 5 live and its gone well.

I can get my wireless WG311T working and on the net.

Problem is I'm wanting to use Airsnort and when I go into it if does nothing.

I have the madwifi drivers and presume they are installed as I edited Kismet.conf to read source=madwifi_ag,ath0,atheros and is works in Kisemt so I presume the drivers are present. Without the entrance into Kismet kismet won't run for me so I guess the madwifi drivers are there.

I've read alot about saying the madwifi drivers have to be 'patched' Can someone tell me if this 'patch' just means I have to have the regular drivers or if the 'patch' actually alters the Madwifi drivers as they are and adds something to them? From what I have read it points towards adding
something to the already existing bog-standard Madwifi drivers which allows 'packet injection' when using the likes of Airsnort / Aircrack etc. IS THIS CORRECT? Do I need to get a patch for my already existing Madwifi drivers? HELP ! PLEASE !

Regardless I wish the ability of packet injection. How can I see if it has it?


I also read the to get AIRSNORT to work I need to do some kind of virtual lan emulation and point the ath0 to ath1 or something - is this correct too ?

Any answers would be appreciated there is much conflicting information confusing me !
Ta
 
Old 10-02-2006, 06:19 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
From the madwifi documentation:

Quote:
Atheros based wireless cards use the madwifi drivers and several different operating modes. The driver module created by madwifi is "ath_pci". Along with this driver module, madwifi installs a configuration tool called "wlanconfig". Madwifi and atheros wireless cards support many different "modes", including the station mode(sta) which is the usual managed mode wifi interface; the access point mode(ap) which allows you to use the card as a wireless access point; monitor mode(monitor) which is used for wireless network monitoring and wireless "cracking" programs like Aircrack; and the additional modes of "adhoc" , "wds" and "ahdemo".
When you load the ath_pci module, a station mode interface(sta) is created by default and given the name "ath0". To avoid this default behaviour, you can run:

# modprobe ath_pci autocreate=none

when loading the driver.

However, once an interface is created, the mode cannot be directly changed on the fly within madwifi. Instead, you need to destroy the interface whose mode you want to change and then recreate it in the correct mode:
# ifconfig ath0 down
# wlanconfig ath0 destroy
# wlanconfig ath0 create wlandev wifi0 wlanmode [sta|adhoc|ap|monitor|wds|ahdemo]
You are probably configured to run in station mode. To use cracking programs you need to run in monitor mode. Per the above, you can do that by opening a console, su to root and run:

# ifconfig ath0 down
# wlanconfig ath0 destroy
# wlanconfig ath0 create wlandev wifi0 wlanmode monitor
# ifconfig ath0 up

You should now be able to run your cracking program.
 
  


Reply



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 7 04-05-2006 11:39 PM
Madwifi-old + Aircrack/Trouble compiling madwifi Ashex Linux - Software 0 03-05-2006 06:55 PM
Can someone email me "madwifi-2.6.8_and_-mm-040821.patch.bz2"? (madwifi 2.6.8 patch) 95se Linux - Wireless Networking 0 09-01-2004 10:34 AM
patching ybaws Linux - Software 3 04-02-2004 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration