Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: iwconfig need help!!!!

  1. #1
    Just burned his ISO
    Join Date
    Oct 2009
    Posts
    15

    Default iwconfig need help!!!!

    I'm trying to write a bash script to chk wpa2 from txt list 12 characters but it's seems that iwconfig dosent accept 12 characters when command 'iwconfig key ' is entred? any suggestion?

    thx for helping

  2. #2
    Very good friend of the forum Gitsnik's Avatar
    Join Date
    Jan 2010
    Location
    The Crystal Wind
    Posts
    851

    Default

    You. Are. Doing. It. Wrong.

    Read the man page, come back, and tell me why my previous statement was correct. Oddly enough, doing so will give you a spoon-feeding-hint on you how to solve your problem as well.
    Still not underestimating the power...

    There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.

  3. #3
    Just burned his ISO
    Join Date
    Oct 2009
    Posts
    15

    Default

    Quote Originally Posted by Gitsnik View Post
    You. Are. Doing. It. Wrong.

    Read the man page, come back, and tell me why my previous statement was correct. Oddly enough, doing so will give you a spoon-feeding-hint on you how to solve your problem as well.
    opss sorry
    Use sensible descriptive titles in your posts - not titles such as "Please Help!!"
    and i'am not breaking nobody network it's my own network that iam testing and just to learn new technique

  4. #4
    Very good friend of the forum Gitsnik's Avatar
    Join Date
    Jan 2010
    Location
    The Crystal Wind
    Posts
    851

    Default

    Quote Originally Posted by gool54 View Post
    opss sorry
    Use sensible descriptive titles in your posts - not titles such as "Please Help!!"
    That too! But I meant this
    Still not underestimating the power...

    There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.

  5. #5
    Just burned his ISO
    Join Date
    Oct 2009
    Posts
    15

    Default

    so with iwconfig Passphrase is currently not supported.
    i tried with s:mykey didnt work as well
    the wpa2 i'am using looks like that 70460E726089

    any other way?


    i guess i have to edit the wpa_supplicant.conf

    #
    ctrl_interface=/var/run/wpa_supplicant

    eapol_version=1

    ap_scan=1

    fast_reauth=1

    network={
    ssid=”SSID”
    psk=”WPApassword”
    priority=5
    }
    #

    but how to use it to intregate it with bash script to do chk from list?

  6. #6
    Very good friend of the forum drgr33n's Avatar
    Join Date
    Jan 2010
    Location
    Dark side of the moon ...
    Posts
    699

    Default

    I don't get what you are trying to do ?? What are you checking ? Why are you checking it ? Maybe add some more detail to your post.

  7. #7
    Just burned his ISO
    Join Date
    Oct 2009
    Posts
    15

    Default

    Quote Originally Posted by Dr_GrEeN View Post
    I don't get what you are trying to do ?? What are you checking ? Why are you checking it ? Maybe add some more detail to your post.
    i'am trying write a bash script who will connecte to my AP and try different wpa2 keys from a txt list

    as follow:

    echo "adding static IP address configuration ..."
    ifconfig $1 192.168.1.200 netmask 255.255.255.0 2>/dev/null
    route del default gw 192.168.1.1 2>/dev/null


    echo "adding default gateway ..."
    route add default gw 192.168.1.1 2>/dev/null

    echo -en "trying key: ";

    for key in `cat $3`
    do
    echo -en "$key "
    iwconfig $1 key $key

    # if AP is pingable then we're in!
    if ping -c 4 192.168.1.1 | grep "64 bytes from" > /dev/null
    then
    echo -en "\nvalid key found!: $key\n"
    echo $key > $2.found.txt
    echo "found key was saved on $2.found.txt"
    route del default gw 192.168.1.1 2>/dev/null
    break
    fi
    done

    route del default gw 192.168.1.1 2>/dev/null


    but 12 characters wpa2 iwconfing dosent support it

  8. #8
    Very good friend of the forum Gitsnik's Avatar
    Join Date
    Jan 2010
    Location
    The Crystal Wind
    Posts
    851

    Default

    Quote Originally Posted by gool54 View Post
    but 12 characters wpa2 iwconfing dosent support it
    Correct, because iwconfig does either encryption on or off, it is only going to support one type of encryption (stands to reason really, if you couldn't find a way to configure whether it was WEP or WPA, then there probably isn't a way to do it).

    Edit the wpa config file, kill wpa_supplicant, connect, ping, if necessary, loop again.

    Prepare for a punishingly slow script, but it's not a bad idea - I was working on something identical with scapy a while ago.

    Edit: On the topic of integration, use sed to modify the psk= line.
    Still not underestimating the power...

    There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.

  9. #9
    Just burned his ISO
    Join Date
    Oct 2009
    Posts
    15

    Default

    Quote Originally Posted by Gitsnik View Post
    Correct, because iwconfig does either encryption on or off, it is only going to support one type of encryption (stands to reason really, if you couldn't find a way to configure whether it was WEP or WPA, then there probably isn't a way to do it).

    Edit the wpa config file, kill wpa_supplicant, connect, ping, if necessary, loop again.

    Prepare for a punishingly slow script, but it's not a bad idea - I was working on something identical with scapy a while ago.

    Edit: On the topic of integration, use sed to modify the psk= line.
    thanks for a confirmation , ill try to do it that way

  10. #10
    Very good friend of the forum Gitsnik's Avatar
    Join Date
    Jan 2010
    Location
    The Crystal Wind
    Posts
    851

    Default

    Quote Originally Posted by gool54 View Post
    thanks for a confirmation , ill try to do it that way
    Never a problem when someone makes at least a smidgen of effort rather than expecting us to spoon feed.

    Feel free to PM if you need some help with the script before you release it to the forums.
    Still not underestimating the power...

    There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.

Page 1 of 3 123 LastLast

Posting Permissions

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