Results 1 to 6 of 6

Thread: Weired Problems with wireless

  1. #1
    Just burned his ISO
    Join Date
    Apr 2007
    Posts
    5

    Default Weired Problems with wireless

    Hi,

    I have tried to configured BK2 on my WLAN on two laptops one with Atheros 802.11b/g card, the other with Intel 3945. I weren't able to configure it on both.

    Here what happened when I tried:

    Laptop 1: w/Atheros

    network={
    essid="mynetwork"
    key_mgmt=WPA-PSK
    proto=WPA
    pairwise=TKIP
    group=TKIP
    psk="test1234"
    }

    wpa_supplicant -D wext -i ath0 -c wpa_supplicant.conf

    Failed to read or parse configuration root/wpa_supplicant.

    I tried many compinations but all failed. One gave me this error:

    Line 8: failed to parse network block.

    Using Wassistant I were able to find many networks my network included, but weren't able to access mine because it uses WPA I tried WEP with passphrase didn't work, tried WEP without password it worked.

    Now it does not detect any network.

    Laptop 2: w/Intel 3945

    Its dual core 2.

    Works fine as a system, but does not detect the wcard, so I tried Load IPW3945 from 80211 menu, the system halted and I were forced to shut it down by pressing power button.

    Could someone please help/guide me to a way to make it work?

    Thanks!

  2. #2
    Member
    Join Date
    Jan 2006
    Posts
    66

    Default

    There are a couple of scripts you can try here: http://forums.remote-exploit.org/showthread.php?t=6222
    ---
    Useful HowTo Threads <-- Why do people think I'm joking when I link this?

  3. #3
    Just burned his ISO
    Join Date
    Apr 2007
    Posts
    5

    Default

    I have tried the following script

    Code:
    #!/usr/bin/bash
    
    #wpa_connect script by Hobz of #remote-exploit
    #Currently in beta, needs testing
    #April 2, 2007
    
    INT=$1
    ESSID=$2
    
    if [ -z "$2" ]; then
     printf "Usage: $0 [interface] [ESSID]\n"
     printf "$0 will create a /etc/wpa_supplicant.conf file if none exists"
     printf "Default driver: wext\n"
     exit
    fi
    
    function connect {
     ifconfig $INT down
     iwconfig $INT mode managed essid "$ESSID"
     printf "* - Configured interface\n"
     ifconfig $INT up
     printf "* - Interface up\n"
     wpa_supplicant -B -Dwext -i$INT -c/etc/wpa_supplicant.conf
     printf "* - wpa_supplicant running, sleeping for 10...\n"
     sleep 10
     printf "* - Running dhcpcd\n"
     dhcpcd $INT
     ifconfig $INT | grep inet
    }
    
    function conf_create {
     printf "What is your passphrase?\n"
     read "PASSPHRASE"
     printf "* - running wpa_passphrase\n"
     wpa_passphrase "$ESSID" "$PASSPHRASE" > /etc/wpa_supplicant.conf
    printf "* - done.  Starting to connect...\n"
    }
    
    if [ -f /etc/wpa_supplicant.conf ]; then
     connect
    else
     conf_create
     connect
    fi
    I were using the etherent when I ran the script it worked perfect. BK2 showed that ath0 connection is established, but it kept disconnecting. So I unplugged the wire to limit usage to wireless only. I weren't able to ping anything in the network the ip address and gateway were correct for ath0.

    I restarted the laptop-this time with no cable plugged in- and ran the script but it didn't work.

    * - done. Starting to connect
    down: error fetching interface information: Device not found
    Error: unrecognised wireless "request managed"
    * - Configured interface
    up: error fetching interface information: Device not found
    * - Interface up
    wpa_supplicant v0.5.7
    ...
    ...
    ...
    usage:
    wpa_supplicant [-BddehLqquvwW] [-p<pid file>]....

    Could you please help me find what went wrong?

    Also could you help me know why BK2 halts when I load 3945 driver.

    Thanks!

  4. #4
    Member
    Join Date
    Jan 2006
    Posts
    66

    Default

    I'm not sure what to tell you about the 3945 chipset, I've never owned or worked with one. As far as the atheros drivers go, try doing the command 'killall wpa_supplicant' before you try to reconnect. If that doesn't do the trick then try running 'strace bash script_name' and pm me the output (if it doesn't fit then use www.pastebin.ca).
    ---
    Useful HowTo Threads <-- Why do people think I'm joking when I link this?

  5. #5
    Just burned his ISO
    Join Date
    Apr 2007
    Posts
    5

    Default

    Thanks for your help. I've tried the steps that you gave me, still no luck.

    I'm able to connect to my wireless network, but I'm unable to ping any machine on that network or visit any web site.

    I've got a totally different wireless card (Linksys USB54 GC) based on what is written on backtrack wiki (backtrack.offensive-security.com) and still am having problems with that too.

    Here what I did:

    Code:
    wpa_supplicant -Datmel -irausb0 -c/etc/wpa_supplicant.conf
    ioctl[SIOCSIWPMKSA]: Network is down

    and here are the errors that I've got:

    ioctl[SIOCSIWMODE]: Network is down
    Could not configure driver to use managed mode
    wpa_driver_atmel_set_wpa rausb0
    wpa_driver_atmel_set_countermeasures - not yet implemented
    wpa_driver_atmel_set_drop_unencrypted - not yet implemented

    ioctl[SIOCGIWSCAN]: Resource temporarily unavailable

    I don't know why it is unable to connect.

    P.S I have sent a pm with what I got from running

    strace bash [script].

    Thanks for your time and the welling to help!

  6. #6
    Just burned his ISO
    Join Date
    Apr 2007
    Posts
    5

    Default

    I would like to thank hobbes for his help in solving my problem.

    Based on his steps I were able to connect to my network.

    The steps:

    1-Bring down ethernet interface eth0

    bt~#ifconfig eth0 down

    2- Run the script again.

    And then everything works fine:

    bt ~ # ping yahoo.com
    PING yahoo.com (216.109.112.135) 56(84) bytes of data.
    64 bytes from w2.rc.vip.dcn.yahoo.com (216.109.112.135): icmp_seq=1 ttl=56 time=76.3 ms.

    Hobbes your script is great. Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •