slimjim2234 Posted October 6, 2012 Posted October 6, 2012 Just for curiosity sake, I was wondering if anybody tried or has a suggestion for the possibility of turning a usb connected wifi card (AWUS036NHA) into a client so i can connect it to my home router? I have tried and failed with and iw wlan1 scan and I populate a output "scan aborted!" and i tried the networkmanager with no success. I read (here: http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_NLCP_WLAN_IW_commands) that i may need to stop the hostapd process in order to turn it into a station mode. I've also tried airodump-ng and the screen screws upon scanning. It doesn't refresh almost as if it's running fine in the background but i get no output on the terminal window. I do it on my laptop all the time so I know how to use the tool, but it just doesn't wanna work right on the pineapple. I'm just looking for a decent way to scan wifi network using the usb wifi card. wireshark implementation? Kismet? wifi stumbler? Any suggestions would be greatly appreciated. Thanks! Quote
PineDominator Posted October 6, 2012 Posted October 6, 2012 What firmware version are you using, there has been some fixes in the latest dev releases but it is kinda a work in progress as far as dev firmware gos. ssh in and make sure that wlan1 shows up "iwconfig" Quote
Neworld Posted October 6, 2012 Posted October 6, 2012 I'm confused... are you trying to connect to the internet using a external usb wifi card?? Network Manager should work for this... have you set it up right. (see the directions I posted in the network managers forum page in the comment section) If you are just trying to scan for networks... then just use airodump-ng and your wireless interface on mon0. Quote
slimjim2234 Posted October 7, 2012 Author Posted October 7, 2012 (edited) I am running 1.6.4 and iwconfig definitely shows both wlan0 and wlan1. Sorry for the confusion, that's what happens when I don't read what I write. First, I'm looking for a way to connect to a wifi router using the USB wifi card and have the signal relay through the pineapple so I can use it as a repeater. I followed your instructions on the networkmanager but it just gets me into trouble every time. when i first installed it on the pineapple i experimented with it and somehow ended up with almost 20 entries in the /etc/config/wireless file. Some of them were exactly the same and others i didn't want anymore since they were failed trials. That's when i realized my wifi wasn't working anymore (I talked about this issue in another thread "). So i rebuilt the /etc/config/wireless file, commented out the disable wifi line, and it worked again. Tried networkmanager again, this time using your instructions, and ended up doing the same thing. I'll try it again. Second, is to scan networks efficiently for wardriving. Maybe I'm doing it wrong which I highly doubt since I do airodump-ng quite often on my backtrack box. As in the previous post, I'm having trouble with the airodump-ng on the pineapple. I appreciate all the replies, any more helper suggestions would be greatly appreciated. Edited October 7, 2012 by slimjim2234 Quote
Neworld Posted October 7, 2012 Posted October 7, 2012 hmm.... if all else fails, you might want to try a clean flash. A clean flash is the only thing I can guarantee will fix the problem. Do you own a UART? In regards to Network Manager... can you ping google? or is it a Internet Connection Sharing problem. You've got to remember, in order to share internet you have to go to the ICS tab in Network Manager and share from Wlan1 to Wlan0...... You've got to remember to hit save on this everytime you want to ICS after reboot, unless you click the check box that says start on boot. I'm not to sure about wardriveing, but if your looking for networks in airodump, you should be able to see networks by using these commands: airmon-ngairmon-ng start wlan1airodump-ng mon0[/CODE] Quote
Sebkinne Posted October 7, 2012 Posted October 7, 2012 hmm.... if all else fails, you might want to try a clean flash. A clean flash is the only thing I can guarantee will fix the problem. Do you own a UART? In regards to Network Manager... can you ping google? or is it a Internet Connection Sharing problem. You've got to remember, in order to share internet you have to go to the ICS tab in Network Manager and share from Wlan1 to Wlan0...... You've got to remember to hit save on this everytime you want to ICS after reboot, unless you click the check box that says start on boot. I'm not to sure about wardriveing, but if your looking for networks in airodump, you should be able to see networks by using these commands: airmon-ngairmon-ng start wlan1airodump-ng mon0[/CODE]You can't guarantee that a clean flash will fix the issue - sorry.A clean flash is no different to a flash over the UI or serial. The difference is that you can do a clean flash when your pineapple is bricked.The same process is used for all three methods.Best Regards,Sebkinne Quote
PineDominator Posted October 7, 2012 Posted October 7, 2012 (edited) touch /usb/wpa-supplicant.conf network={ ssid="SSIDName" psk="wpa key/passphrase"}[/CODE]touch /usb/wireless-connect.shchmod +x /usb/wireless-connect.sh[CODE]#!/bin/sh#Change the Mac address of the usb wifi to something random.ifconfig wlan1 downmacchanger -A wlan1ifconfig wlan1 up#WPA2 - Let's assume we're going to connect to a WPA2 networkwpa_supplicant -B -D nl80211 -i wlan1 -c /usb/wpa_supplicant.conf#WEP - Uncomment if you want to conect to a WEP network#iwconfig wlan1 mode managed key your_key_here#iwconfig wlan1 essid "your access point name here"#OPEN - Uncomment if you want to conect to a WEP network#iwconfig wlan1 essid "your access point name here"#Setup ipforwarding via iptables.echo 1 > /proc/sys/net/ipv4/ip_forward#Reset iptablesiptables -Fiptables -Xiptables -A FORWARD -o wlan1 -i br-lan -s 172.16.0.0/24 -m conntrack --ctstate NEW -jACCEPTiptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPTiptables -A POSTROUTING -t nat -j MASQUERADE#Wait for 7 seconds to give enough time for association.sleep 7#Grab an ip via DHCPudhcpc -i wlan1[/CODE]/usb/./wireless-connect.shI would also suggest re-flash because your radio0 radio1 ect could be messed up and a flash will be best. Edited October 7, 2012 by petertfm Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.