Results 1 to 10 of 17

Thread: updated update script

Hybrid View

  1. #1
    Good friend of the forums
    Join Date
    Jan 2010
    Location
    outside chicago, il
    Posts
    442

    Default updated update script

    Hello,

    I took the script that Baxter, ReL1K, PrairieFire, and purehate wrote and modified it for BT3. Here are the results. Let me know what you think.

    Code:
    #!/bin/sh
    #
    #### Metasploit Framework 2/3,Aircrack-ng-dev,Kismet,Slaptget ####
    #
    option=13
    while [ $option -ne 0 ]
    do
    clear
    echo " 1. --> Update Metasploit Framework 3"
    echo " 2. --> Update Metasploit Framework 2"
    echo " 3. --> Update Kismet"
    echo " 4. --> Install Slaptget (0.9.12-i386-1)"
    echo " 5. --> Install Gpsd (2.37)"
    echo " 6. --> Install Aircrack-ng beta2"
    echo " 7. --> Update Airpwn (1.3)"
    echo " 0. --> Exit"
    read option
          case $option in
                     #### This part was written by ReL1K ####
                  1) echo "*** Updating Metasploit Framework 3 ***"
                     svn update /pentest/exploits/framework3/;;
                  2) echo "*** Updating Metasploit Framework 2 ***"
                     svn update /pentest/exploits/framework2/;;
                  3) echo "UpDating Kismet..."
                     svn co http://svn.kismetwireless.net/code/trunk kismet-devel
                     cd kismet-devel
                     ./configure
                     make dep && make && make install
                     if !(id kismet > /dev/null 2>&1); then
                        useradd kismet
                     fi
                     if test -f /usr/local/etc/kismet.conf; then 
                        mv -f /usr/local/etc/kismet.conf /usr/local/etc/kismet.org
                     fi
                     sed -i 's/suiduser=your_user_here/suiduser=kismet/g' /usr/local/etc/kismet.conf
                     cp conf/kismet.conf /usr/local/etc/kismet.conf
                     if test -f /usr/local/etc/kismet_ui.conf; then 
                        mv -f /usr/local/etc/kismet_ui.conf /usr/local/etc/kismet_ui.org
                     fi
                     cp conf/kismet_ui.conf /usr/local/etc/kismet_ui.conf
                     if test -f /usr/local/etc/kismet_drone.conf; then 
                        mv -f /usr/local/etc/kismet_drone.conf /usr/local/etc/kismet_drone.org
                     fi
                     cp conf/kismet_drone.conf /usr/local/etc/kismet_drone.conf
                     cd ..
                     rm -r kismet-2007-01-R1b.tar.gz
                     rm -r kismet-2007-01-R1b
                     rm -rf kismet-devel;;
                  4) echo "Installing Slaptget"
                     wget http://software.jaos.org/slackpacks/...4.7-i486-1.tgz
                     wget http://software.jaos.org/slackpacks/...1.4-i486-1.tgz
                     wget http://software.jaos.org/slackpacks/...0.1-i486-1.tgz
                     wget http://software.jaos.org/slackpacks/...12c-i386-1.tgz
                     upgradepkg slapt-get-0.9.12c-i386-1.tgz
                     upgradepkg gnupg-1.4.7-i486-1.tgz
                     upgradepkg gpgme-1.1.4-i486-1.tgz
                     upgradepkg libassuan-1.0.1-i486-1.tgz
                     rm -r slapt-get-0.9.12-i386-1.tgz
                     rm -r gnupg-1.4.7-i486-1.tgz
                     rm -r gpgme-1.1.4-i486-1.tgz
                     rm -r libassuan-1.0.1-i486-1.tgz
                     echo "usage  slapt-get --update"
                     echo "slapt-get --upgrade";;
                  5) cd /usr/local/share/
                     svn checkout svn://svn.berlios.de/gpsd/trunk gpsd-2.37
                     cd gpsd-2.37
                     autogen.sh
                     make
                     cp gpsd /usr/local/bin/
                     cd ..
                     rm -rf gpsd-2.37-dev
                     gpsd -V;;
                  6) echo "Install Aircrack-ng dev"
                     svn co http://trac.aircrack-ng.org/svn/trunk aircrack-ng
                     cd aircrack-ng
                     gmake SQLITE=true
    		 gmake SQLITE=true install
                     cd ..
                     rm -r aircrack-ng;;
                  7) echo "Updating Airpwn..."
                     wget http://kent.dl.sourceforge.net/sourc...airpwn-1.3.tgz
                     gzip -d airpwn-1.3.tgz
                     tar -xvvf airpwn-1.3.tar
                     cd airpwn-1.3
                     gzip -d lorcon-current.tgz
                     tar -xvvf lorcon-current.tar
                     cd lorcon
                     ./configure  && make && make install
                     cd ..
                     ./configure && make
                     cd
                     rm -r airpwn-1.3.tar
                     rm -r airpwn-1.3;;
                  0) echo "*** Exiting ***"
                      ;;
                  *) exit &;;
          esac
    done
    Code tags added. I will leave the thread here for now as it is BT3-beta specific. -theprez98
    update gpsd to latest version
    fix error on line 48 and 73
    update gpsd and air-crack to latest versions
    I like the bleeding edge, but I don't like blood loss

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

    Default

    If you're going to post code, please post it in the code tags.
    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
    Jenkem Addict imported_wyze's Avatar
    Join Date
    Jul 2007
    Posts
    1,543

    Default

    Also it should be posted in Programming
    dd if=/dev/swc666 of=/dev/wyze

  4. #4
    Senior Member PrairieFire's Avatar
    Join Date
    Apr 2007
    Posts
    705

    Default

    Upgrade to more recent version of GPSD.
    Code:
    cd /usr/local/share/
    svn checkout svn://svn.berlios.de/gpsd/trunk gpsd-2.36-dev
    cd gpsd-2.36-dev
    autogen.sh
    make
    cp gpsd /usr/local/bin/
    cd
    gpsd -V
    link
    Μολὼν λαβέ - Great spirits encounter heavy opposition from mediocre minds.

  5. #5
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default

    Just to be honest and clarify I don't believe I wrote any of that script. No big deal I just want to make sure the people who wrote it get the proper credit. I believe balding_parrot wrote some of it.

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

    Default

    I did, but most of what I added to it has been removed.

    No biggie though.

  7. #7
    Just burned his ISO
    Join Date
    Jun 2007
    Posts
    2

    Default

    Nice script, but one problem, Aircrack 1.0 Dev is no longer on the site, but there is a 1.0 Beta 2 in the Trunk folder

Posting Permissions

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