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.
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 :)
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.
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/
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
Re: Update script for bt4 (update.sh)
Quote:
Originally Posted by
Picch
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.
Re: Update script for bt4 (update.sh)
this makes my little update script look like crayon art. thanks for the script!
Re: Update script for bt4 (update.sh)
Quote:
Originally Posted by
spudgunman
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
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