Could be very useful... now just take from the old fast-track and update a few more things![]()
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
The following output is from the command: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)
./btupdate.sh -xFb
I wrote this mainly for myself but would also like to expand it so if you have any ideas or changes let me know.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 ################################################################
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
Could be very useful... now just take from the old fast-track and update a few more things![]()
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
Thanks!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) ################################################################
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
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/
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:
They are defaulted to "yes" so change these and all is good.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
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
this makes my little update script look like crayon art. thanks for the script!
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