Jump to content

TunezNZ

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by TunezNZ

  1. I have got it working now on a different network. I think it has something to-do with having the pineapple connected on the lan connection and trying to join the same network, I find funny things happen when I connect the pineapple up to my lan (With the exit gateway/router 172.16.42.42) such as it stealing all the DHCP clients and setting the pineapple as the default gateway.
  2. Im having a problem with getting the TP-Link WN722N going. I have mk4 with 2.5, First run with standard script it attempts to get an IP address and then stopped so I removed the -B from the wpa_supplicant line it then returns "wlan1: Failed to initiate AP scan" three times then and stops. Commenting out everything but the wpa_supplicant line gives the same results. This is the output with the normal commenting. root@Pineapple:~# iwconfig wlan1 wlan1 IEEE 802.11bgn ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm RTS thr:off Fragment thr:off Encryption key:off Power Management:off root@Pineapple:~# cat ./wireless_connect2.sh #!/bin/sh #Change the Mac address of the usb wifi to something random. ifconfig wlan1 down macchanger -A wlan1 ifconfig wlan1 up #WPA2 - Let's assume we're going to connect to a WPA2 network wpa_supplicant -D nl80211 -i wlan1 -c /etc/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 iptables iptables -F iptables -X iptables -A FORWARD -o wlan1 -i br-lan -s 172.16.0.0/24 -m conntrack --ctstate NEW -jACCEPT iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE #Wait for 6 seconds to give enough time for association. sleep 6 #Grab an ip via DHCP udhcpc -i wlan1 root@Pineapple:~# cat /etc/wpa_supplicant.conf network={ ssid="ssid" psk="password" } [/CODE] Putting in the correct SSID has helped, but now its telling me this. [CODE] root@Pineapple:~# ./wireless_connect2.sh Current MAC: 00:60:04:b0:90:58 (Computadores Modulares Sa) Faked MAC: 00:c0:c3:40:34:66 (Acuson Computed Sonography) wlan1: Failed to initiate AP scan wlan1: SME: Trying to authenticate with 90:f6:52:48:43:30 (SSID='Mack_2.0' freq=2412 MHz) wlan1: Trying to associate with 90:f6:52:48:43:30 (SSID='Mack_2.0' freq=2412 MHz) wlan1: Associated with 90:f6:52:48:43:30 wlan1: WPA: 4-Way Handshake failed - pre-shared key may be incorrect wlan1: CTRL-EVENT-DISCONNECTED bssid=90:f6:52:48:43:30 reason=3 wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3 wlan1: SME: Trying to authenticate with f8:d1:11:93:c2:3f (SSID='Mack_2.0' freq=2412 MHz) wlan1: Trying to associate with f8:d1:11:93:c2:3f (SSID='Mack_2.0' freq=2412 MHz) wlan1: Associated with f8:d1:11:93:c2:3f wlan1: CTRL-EVENT-DISCONNECTED bssid=f8:d1:11:93:c2:3f reason=3 wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3 wlan1: SME: Trying to authenticate with 90:f6:52:48:43:30 (SSID='Mack_2.0' freq=2412 MHz) wlan1: Trying to associate with 90:f6:52:48:43:30 (SSID='Mack_2.0' freq=2412 MHz) wlan1: Associated with 90:f6:52:48:43:30 wlan1: WPA: 4-Way Handshake failed - pre-shared key may be incorrect [/CODE]
×
×
  • Create New...