Page 1 of 6 123 ... LastLast
Results 1 to 10 of 53

Thread: Update script for bt4 (update.sh)

  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
    Senior Member
    Join Date
    May 2010
    Posts
    198

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

    Quote Originally Posted by Picch View Post
    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
    Version 1.81 is up ~ http://pastebin.com/3QLbLQdg

    Thats a great idea. I hope you don't mind I took it a step further and added variables to make it customizable.

    Under the variable section "# OS Update and Upgrade Variables" you will be able to change any of these to "no" and it won't do any of those functions.
    Your scenario would look like this:
    Code:
    # OS Update and Upgrade Variables
                  update="yes"       # (yes/no) yes for Update
                 upgrade="no"        # (yes/no) yes for Upgrade
                     dup="no"        # (yes/no) yes for Distribution Update
                   clean="no"        # (yes/no) Cleanup downloaded packages
    They are defaulted to "yes" so change these and all is good.
    Or change everything to "no" and it will skip the apt-get section when you use the -x switch.

    Edit: added -z option for everything except apt-get
    http://pastebin.com/cpgNP9gv version 1.82

    Thanks for the suggestion.
    Last edited by Scamentology; 10-27-2010 at 02:18 AM. Reason: updates
    "Never do anything against conscience -- even if the state demands it."
    -- Albert Einstein

  8. #8
    Member
    Join Date
    Feb 2010
    Location
    MTI3LjAuMC4x
    Posts
    90

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

    this makes my little update script look like crayon art. thanks for the script!

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

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

    Quote Originally Posted by spudgunman View Post
    this makes my little update script look like crayon art. thanks for the script!
    Thats one hell of a compliment, thank!!

    Version 1.82 is up
    OP updated
    Last edited by Scamentology; 10-27-2010 at 02:38 AM.
    "Never do anything against conscience -- even if the state demands it."
    -- Albert Einstein

  10. #10
    Member
    Join Date
    Feb 2010
    Location
    MTI3LjAuMC4x
    Posts
    90

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

    np, finally got around to checking it out on my box runs nice. one Q, I noticed that you left out openVAS any reason?

    openvas-nvt-sync

Page 1 of 6 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
  •