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

Thread: Update script for bt4 (update.sh)

Hybrid View

  1. #1
    Senior Member
    Join Date
    May 2010
    Posts
    198

    Default Update script for bt4 (update.sh)

    NOW FIREFOX 4 and NMAP UPDATES!!!

    (News and Info)
    Scamentology probably doesn't mean what you think it does.
    Kismet is coming in the next version...
    Thanks to all that reported bugs and made suggestions.
    I may be waiting until Backtrack 5 comes out as it will probably break a lot of stuff in this script.

    (Change Log)
    - Firefox update will remove this software source for your sources.list file if it exists.
    (deb http://switch.dl.sourceforge.net/pro...la/mozilla/apt all main) - (relevant only if you ran an older version of this script)
    - Updates or installs gcc (For NMap install)
    - Fixed the SQLMap bug (You dont have to hit enter repeatedly on this update anymore)
    - Cleaned up the NMAP and Firefox sections
    - Updated the help menu
    - Fixed the SET version check bug (seems it was moved to another folder)
    - Made NMAP an optional update
    - Completely removed KDE update (that was just a bad idea)

    (Known Issues)
    - Using the btupdate.sh -u will put the updated version in your working directory but will not delete the old version (sorry about that)

    Here is a script to simplify the update process.

    Newest version - v1.96
    https://code.google.com/p/backtrack-...downloads/list

    Added Firefox 4 - btupdate.sh -F
    Added NMap 5.51 plus updated fingerprints - btupdate.sh -b

    Code:
    (C)opyright 2010 Scamentology ~
    ######################################
    #           btupdate 1.91            #
    # A script for updating Back|Track 4 #
    ######################################
    
     Usage: ./btupdate.sh [options]
     Options:
       -d [Dist-up]            ---  apt-get everything
       -o [Openvas Plugins]    ---  Update Openvas Plugins
       -m [Metasploit]         ---  Update Metasploit 2 and 3 (svn update)
       -a [aircrack-ng]        ---  Update aircrack-ng and airodump-ng suite
       -e [exploitdb]          ---  Update Exploitdb
       -s [SET]                ---  Update Social Engineering Toolkit
       -S [SQLMap]             ---  Update SQLMap
       -f [Fasttrack]          ---  Update Fasttrack
       -n [Nikto]              ---  Update Nikto
       -N [Nessus]             ---  Update Nessus Plugins
       -w [w3af]               ---  Update w3af
       -x [Everything]         ---  Do all actions in script (No Firefox or NMap)
       -z [Everything Except]  ---  Do all actions in script except apt-get (No Firefox or NMap)
       -u [Self Update]        ---  Updates this script using Google Code
       -h [Help]               ---  Help menu
    
     Optional Updates (Should be done seperately (won't update with -x or -z))
       -F [Firefox]            ---  Updates Firefox
       -b [NMap]               ---  Update NMap
    
    
     Example:
       ./btupdate.sh -x              (updates everything including apt-get
       ./btupdate.sh -d              (apt-get update, upgrade and dist-upgrade)
       ./btupdate.sh -m -a -s -f     (updates Metasploit Aircrack-ng SET and Fasttrack)
       ./btupdate.sh -F              (Updates Firefox)(won't update with -x or -z)
    The following output is from the command:
    ./btupdate.sh -xFb
    Code:
    ################################################################
                     Bactrack Update Utility
                  (C)opyright 2010 Scamentology
           Update report for Sat Apr  9 19:32:55 UTC 2011
    ################################################################
    -------------------------------------------------------
    Firefox 4.0 Installed Properly
    -------------------------------------------------------
    Framework 3 - Updated successfully to    (SVN 12286)
    SVN Before Update -                      (SVN 11923)
    vs - 3.7.0-dev
    -------------------------------------------------------
    Framework 2 - Updated successfully to    (SVN 12286)
    SVN Before Update -                      (SVN 11923)
    vs - 2.8-dev
    -------------------------------------------------------
    Aircrack-ng - Updated Successfully to    (SVN 1872)
    SVN Before Update -                      (SVN 1862)
    vs - 1.1
    -------------------------------------------------------
    SET         - Updated successfully to    (SVN 469)
    SVN Before Update -                      (SVN 445)
    vs - 1.3.3
    -------------------------------------------------------
    Fasttrack   - Updated successfully to    (SVN 469)
    SVN Before Update -                      (SVN 445)
    vs - 4.0.1
    -------------------------------------------------------
    SQLMap      - Updated successfully to    (SVN 3601)
    SVN Before Update -                      (SVN 3404)
    vs - 0.9-dev
    -------------------------------------------------------
    NMap        - Updated successfully to    (VN 5.51)
    SVN Before Update -                      (VN 5.35DC1)
    NMap Fingerprints - Updated to ....      (ID# 22527)
    -------------------------------------------------------
    w3af        - Updated successfully to    (SVN 4100)
    SVN Before Update -                      (SVN 4073)
    vs - 1.0
    -------------------------------------------------------
    Nikto       - No updates required.
    vs - 2.1.3
    -------------------------------------------------------
    Openvas     - Plugins are up to date
    vs - 3.1.1
    -------------------------------------------------------
    Nessus      - Plugins are up to date
    vs - 4.4.0
    -------------------------------------------------------
    Updating Distribution
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    
    System Info - Linux bt 2.6.35.8 i686
    ################################################################
    I wrote this mainly for myself but would also like to expand it so if you have any ideas or changes let me know.
    Last edited by Scamentology; 04-09-2011 at 11:02 PM. Reason: Updates
    "Never do anything against conscience -- even if the state demands it."
    -- Albert Einstein

  2. #2
    Junior Member
    Join Date
    Aug 2010
    Posts
    64

    Default Re: Update script for bt4 (update.sh)

    Could be very useful... now just take from the old fast-track and update a few more things

  3. #3
    Junior Member 5cardcharlie's Avatar
    Join Date
    Sep 2010
    Location
    Ohio
    Posts
    45

    Default Re: Update script for bt4 (update.sh)

    Thanks, this is nice to have.

    I get an error when trying to update aircrack-ng though:

    "./update.sh: line 211: cd: /pentest/wireless/aircrack-ng/: No such file or directory
    svn: '.' is not a working copy"

    The aircrack-ng folder is not in my "/pentest/wireless/" directory. I'm running BT4 upgraded to R1.

  4. #4
    Senior Member
    Join Date
    May 2010
    Posts
    198

    Default

    Quote Originally Posted by 5cardcharlie View Post
    Thanks, this is nice to have.

    I get an error when trying to update aircrack-ng though:

    "./update.sh: line 211: cd: /pentest/wireless/aircrack-ng/: No such file or directory
    svn: '.' is not a working copy"

    The aircrack-ng folder is not in my "/pentest/wireless/" directory. I'm running BT4 upgraded to R1.
    http://pastebin.com/ZewmVR3m Update v.1.4

    - added variables for install path and SVN links
    - cleaned up some stuff
    - added SQLMap to the update section

    I just did it with the script from pastebin and it worked OK. I uninstalled aircrack and reinstalled it then ran the script again. Is it possible that you installed it to a different folder or if its installed in the /pentest/wireless/aircrack-ng/ folder?

    If its installed, find the install directory and change line 43 in the script to match it.

    I'm glad you find it useful.

    Here's my output from the command ./update.sh -x

    Code:
    ################################################################
     Update report for Fri Oct 22 12:26:43 PDT 2010
    ################################################################
     -- Updating Distribution --------------------
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
     -- Framework 3 ------------------------------
    Updated Successfully to    (SVN 10792)
     -- Framework 2 ------------------------------
    Updated Successfully to    (SVN 10792)
     -- Aircrack-ng ------------------------------
    You are up to date already (SVN 1787)
     -- Exploitdb --------------------------------
    You are up to date already (SVN 10)
     -- SET --------------------------------------
    You are up to date already (SVN 350)
     -- Fasttrack --------------------------------
    You are up to date already (SVN 350)
     -- SQLMap -----------------------------------
    Updated Successfully to    (SVN 2134)
     -- Nikto ------------------------------------
    + No updates required.
     -- Nessus -----------------------------------
    Done. The Nessus server will restart when its scans are finished
     -- w3af -------------------------------------
    You are up to date already (SVN 3632)
    ################################################################
    Quote Originally Posted by sLiPpErY View Post
    Could be very useful... now just take from the old fast-track and update a few more things
    Thanks!

    I have updated the script with most everything that Fast-track updated.

    Anyone know why they removed that feature?

    Updated OP...
    Updated to v1.7
    http://pastebin.com/f0BYJyA9

    - added server error output

    The online check freezes because the site I used changed something. I changed it to ping google for the check now.

    Heres the update for that.
    http://pastebin.com/swa1bm4c
    Last edited by Archangel-Amael; 10-25-2010 at 10:13 AM.
    "Never do anything against conscience -- even if the state demands it."
    -- Albert Einstein

  5. #5
    Junior Member
    Join Date
    Jun 2010
    Location
    Carmel, IN USA
    Posts
    36

    Default Re: Update script for bt4 (update.sh)

    I have found an issue when update aircrack-ng, the script downloads and compiles that latest svn version like it is supposed to but it leaves the new files in /pentest/passwords/aircrack-ng/src and it should move the files to /usr/local/bin/

  6. #6
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    9

    Default Re: Update script for bt4 (update.sh)

    Hello,
    I added on a little bit to your script. I added an update everything except apt portion (-z flag.) For me, I personally like manually approving package updates (ie watching out for new wireless drivers.) So as I said, -z will update everything and perform an apt-get update, but will not perform an upgrade or dist-upgrade. Figured I'd post it in case someone else found it useful.

    http://pastebin.com/ALjJyt0j

  7. #7
    Just burned his ISO t4tm0h's Avatar
    Join Date
    Sep 2010
    Location
    Wudangshan
    Posts
    13

    Default Re: Update script for bt4 (update.sh)

    Pretty cool script, looks like you put a lot of effort into it.

    Here is a bug...

    #####################
    Internet access: Failed...
    #####################

    I'm pretty sure I'm on the internet right now!

  8. #8
    Just burned his ISO
    Join Date
    Jan 2011
    Posts
    20

    Default Re: Update script for bt4 (update.sh)

    uhh, what is wrong with

    apt-get update

    apt-get upgrade


    am i missing something?

    Cool script btw

  9. #9
    Junior Member 5cardcharlie's Avatar
    Join Date
    Sep 2010
    Location
    Ohio
    Posts
    45

    Default Re: Update script for bt4 (update.sh)

    apt-get only updates software to what is in the BT repo. The BT repo rarely has the current version (often the version is years outdated). A lot of the tools in BT have their own update functions, which this script consolidates into one place.

  10. #10
    Senior Member
    Join Date
    May 2010
    Posts
    198

    Default Re: Update script for bt4 (update.sh)

    Version 1.88 is available
    http://pastebin.com/xK8EsB0w

    KDE UPDATE PROBABLY DOES NOT WORK but you can try it out if you are bored on the live dvd and let me know if it did. (I just copied and pasted the code in there and forgot to remove it before release.
    ExploitDB is broken for the time being
    Some bug fixes and other stuff

    Quote Originally Posted by t4tm0h View Post
    Pretty cool script, looks like you put a lot of effort into it.

    Here is a bug...

    #####################
    Internet access: Failed...
    #####################

    I'm pretty sure I'm on the internet right now!
    I fixed this (I hope) in the new version by doubling the ping attempts.
    Otherwise edit the netcheck variable from - (netcheck="yes") to (netcheck="no")
    I am glad you liked it

    Quote Originally Posted by 5cardcharlie View Post
    apt-get only updates software to what is in the BT repo. The BT repo rarely has the current version (often the version is years outdated). A lot of the tools in BT have their own update functions, which this script consolidates into one place.
    Thanks. I thought for too long on how to answer that question.

    Quote Originally Posted by ericmilam View Post
    Late to the party, but have to say this is very cool...make everything easy.

    I was writing on-off scripts for diff things, this is my new update tool!

    Thanks for sharing!

    Eric
    I'm glad this script is useful
    Last edited by Scamentology; 01-25-2011 at 09:54 PM.
    "Never do anything against conscience -- even if the state demands it."
    -- Albert Einstein

Page 1 of 3 123 LastLast

Similar Threads

  1. simple update script for key pentest tools
    By brtw2003 in forum Experts Forum
    Replies: 3
    Last Post: 09-04-2010, 10:17 PM
  2. Update Script
    By alienstargate in forum OLD BackTrack 3 Final
    Replies: 0
    Last Post: 02-25-2010, 03:12 PM
  3. update-milw0rm script menu-item
    By Archangel-Amael in forum OLD BackTrack 4 Bugs and Fixes
    Replies: 4
    Last Post: 07-07-2009, 06:14 PM
  4. updated update script
    By bofh28 in forum OLD BT3beta General
    Replies: 16
    Last Post: 02-29-2008, 06:38 AM
  5. Update all script BT2
    By alienstargate in forum OLD BackTrack v2.0 Final
    Replies: 2
    Last Post: 02-13-2008, 12:35 AM

Posting Permissions

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