View previous topic :: View next topic |
Author |
Message |
rikkards n00b
Joined: 21 Jun 2005 Posts: 17
|
Posted: Tue Jun 21, 2005 4:44 pm Post subject: Getting Aireplay/Aircrack and Prism nic working |
|
|
Hi,
I have an SMC 2532W-B PCMCIA card which is based off of a Prism 2.5 chipset. The machine is a Compaq R3000 laptop with 2.6 kernel.
I have confirmed using Auditor that it works in Linux but am having problems getting it to work under Gentoo.
The problem is interesting in that it can go either two ways: using HostAP drivers or Linux-Wlan-ng drivers. Auditor recommends using the linux-wlan-ng drivers.
Using Linux-wlan-ng Drivers
I configured the kernel, installed pcmcia-cs, the latest ebuild of linux-wlan-ng, and modprobe prism2_cs but when I slap in the card, I get an error message in dmesg saying:
cs: Unable to map card memory
I suspect that I need to add something into config.opts for memory settings. How do I determine what memory should be included or excluded?
Am I right in figuring a cat somewhere in /proc will tell me what it is trying to use?
Here is the respective section of the kernel
Code: |
CONFIG_NET_RADIO=y
CONFIG_HERMES=y
CONFIG_PLX_HERMES=n
CONFIG_PCI_HERMES=n
CONFIG_PCMCIA_HERMES=y
CONFIG_NET_WIRELESS=y
CONFIG_NET_PCMCIA=y
|
Cardctl info
Code: |
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
|
Using Hostap Drivers
I had some success prior using Hostap and getting Kismet working in Gentoo but the question is what do I need to do to get the card into the right status without using Kismet for aireplay and airodump to work? I need injection to work as well and am not sure if hostap will do it.
In Auditor it will use the monitor.wlan script which essentially puts it into monitor mode. I think iwpriv will be able to do it as well however I would like confirmation before I go back to emerging hostap again.
Would the following work?
Code: |
iwconfig wlan0 mode monitor channel X
iwpriv wlan0 hostapd 1
|
Can anyone confirm?
I like Auditor but would like to not have to reboot to use these two tools.
Any advice/questions gratefully accepted.
Thanks!! |
|
Back to top |
|
|
rikkards n00b
Joined: 21 Jun 2005 Posts: 17
|
Posted: Wed Jun 22, 2005 12:38 pm Post subject: <SOLVED>Getting Aireplay/Aircrack and Prism nic workin |
|
|
Got it working with Linux-wlan-ng. These need to be present:
1. Kernel enabled Prism2.5 driver, Wireless extensions
2. PCMCIA-CS
3. Linux-Wlan-NG
4. Wireless Tools (more for builtin nic but more about that later)
At that point I got the wireless card showing up but if I did a iwconfig, and it said "no Wireless Connections" but by entering the following it started showing the wireless info properly.
Code: | wlanctl-ng wlan1 lnxreq_ifstate ifstate=enable |
I also have a broadcom wireless nic builtin on the laptop using ndiswrapper which is showing up as wlan0 which I use as main connection and the SMC for IDS.
Once that was done the following had to be done to get the card in the right mode for Airodump and Aireplay to work (in this case channel 9):
Code: | wlanctl-ng wlan1 lnxreq_wlansniff "channel=9 enable=true prismheader=false wlanheader=false stripfcs=true keepwepflags=true
echo p2CnfWEPFlags=0,4,7 | wlancfg set wlan1
ifconfig wlan1 mode promisc
|
Hope someone finds this helpful!! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|