UPDATE: With the recent release of BT5r3 i suggest that you use this script here to update the system: BT5 r3 new build details

Note with the new BT5r2 release this script has not yet been tested, please only use this script on BT5r1 or earlier until we can confirm that it works on BT5r2 without any issues. Until then most of the fixes for BT5r2 are in this post.

Are you using BT5-Gnome and find that many of the tools are either missing or out of date? If the answer is yes then use this bt5-fixit.sh script to add many missing tools and replace the installed tools with their svn counter parts.

Just a few of the many tools that are missing that this script gives you the option to add:
RDP client, netwox, netsed, calculator, ssh-keys, missing drivers, arp-scan, gnomeVNC server, UbuntuFirewall, p7zip, screen, file-roller, wifite, open-vas, pyrite…. the list goes on!

To download
either use svn: svn checkout http://bt5-fixit.googlecode.com/svn/trunk/ bt5-fixit
or go to the Google Code Page

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version="2.5" #Nov/2011
# Changelog:
# v2.5 - Added many new fixes by recommendations of Michael Haberland (see below)
#                       Fixed pulseaudio so that sound now works by default
#                       Installed latest version of ophcrack v3.3.1
#                       Added apt alias for apt-get like in Mint
#                       Added option to auto login as root
#                       Added option to auto startx after root login
#                       Improved gnome-network-manager installation
#                       Fixed metasploit updater
#                       Added UPX-packing and signature stealing to fast-track
# v2.4 - Fixed framework3 to now be framework and turned nmap fingers to default to off
# v2.3 - Fixed an issue with Google PGP key import & SQLMap installation
# v2.2 - Plenty of spelling mistakes now fixed. Cheers Rich Hicks
# v2.1 - Added version 7.0 of hydra (and xhydra)
# v2.0 - Added meld program (quick visual diff between 2/3 files)
# v1.9 - Added tree command
# v1.8 - Added cisco-decrypt tool for pcf encrypred passwords (cisco client vpn)
#      - Added arduino, teensy and teensyduino
#      - Added missing tiger, creepy and arduino to install options
# v1.7 - Added tsclient, moved dropbox location and changed default option to No
# v1.6.1 - Fixed slight mistake in latest addition, Whoops!
# v1.6 - Added tiger, creepy, netwox and arduino. Added sshkey and wicd configuration
# v1.5 - Added deluge bittorent client and jockey-gtk for driver installations
# v1.4 - BRUTEFORCE recommended adding the following:
#                       removal of istall icon
#                       changing of password
#                       addition of mono, recordmydesktop and terminator
#                       ability to install dropbox
#                       removal of i_set option
#                       added apt-get autoremove to end of sections to clean up
# v1.3 - Added clear after diaog and changes openvas setup message
# v1.2 - Added mz, scapy, FernWifiCracker
# v1.1 - Added -u flag to allow skipping to updates function
# v1.0 - Official Release
# v0.4 - Cleaned up and added TUI checklist
# v0.3 - Added nipper, fwbuilder and routerdefense
# v0.2 - Clean with more missing apps
# v0.1 - First release

When you run it the first time you need to install the extra repositories, without them most of the tools will not install/update.

If you have any recommendations or requests please let me know by leaving a comment using the form below. I’ll try to update the script as quickly as I can for others.

Cheers

70 Responses to bt5-fixit.sh

  • pr0bepin says:

    Even though my firefox works fine from with in backtrack VM, the script fails as it could not detect the Net connection!!

    When i check the code the interval for pinging google is set at 1000. I tested with 10 and the script worked fine. Just wanted to let you know

  • Ion says:

    Started testing on BT5r2… Let’s share what is fixed and what is still applicable.

    configuration_stuff(): all fixes valid for this version as well.

    Will update again soon.

  • Ion says:

    Hello Phillips :)
    Another thing I noticed, alongside with changing the root password in the first step with passwd, I think that the MySQL’s root password should also change accordingly.

  • stephan says:

    First, thank you for this outstanding update script! The script executes fine, I am not sure if it is related but it would appear it might break W3AF. I am not longer able to launch the console or the GUI, it just close with no error.

    Any idea?
    Thanks,
    Stephan

    • phillips321 says:

      Are you running the latest version of the script? version 3.0 (r42) contains a fix for w3af.
      The new install is as follows:

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      cp /usr/share/applications/backtrack-w3af-gui.desktop /tmp/.
      cp /usr/share/applications/backtrack-w3af-console.desktop /tmp/.
      cp /usr/share/app-install/desktop/w3af.desktop /tmp/.
      apt-get purge -y w3af
      cd /pentest/web
      svn co https://w3af.svn.sourceforge.net/svnroot/w3af/trunk w3af
      cp /tmp/backtrack-w3af-gui.desktop /usr/share/applications/.
      cp /tmp/backtrack-w3af-console.desktop /usr/share/applications/.
      cp /tmp/w3af.desktop /usr/share/applications/. ;
      apt-get -y install python-nltk python-soappy python-lxml python-svn python2.6-dev
      wget http://pypi.python.org/packages/source/p/pybloomfiltermmap/pybloomfiltermmap-0.2.0.tar.gz
      git clone git://github.com/axiak/pybloomfiltermmap.git /tmp/pybloomfiltermmap
      cd /tmp/pybloomfiltermmap
      python setup.py install
      cd -
  • AcerUser says:

    Thanks for this great script. I ran the updates and installs without a problem. But now my wifi will not connect. Every time I try to connect it comes back with a ‘bad password’ error. The connection was fine before the update.

    Any ideas out there about what happened?
    Thanks in advance.

    • phillips321 says:

      This was potentially caused by compiling the 32bit drivers for a 64bit OS, are you using a 64bit OS?
      For now disable the following option when installing:
      missing-drivers “allows easy install of nVidia, AMD and Wireless Drivers” OFF

  • Will says:

    I was wondering if you had a fix, or could implement a fix, for bt5-fixit so that it won’t break my wifi on my laptop for 64-bit BT5R1? I ran the bt5-fixit script with the option for correcting/updating wicd first, and when it got to the point of correcting/updating wicd my wireless had dropped its connection and I could not get connected again to any connection, be unencrypted, WEP, WPA, or WPA2.

    I then tried to run the script after re-installing BT5R1 64-bit not selecting wicd this time, but when the script got past the screen for selecting wicd to correct/update my connection was still dropped/broke.

    From my reading it seems as this is just an issue with 64-bit machines, but not sure, haven’t been able to find a lot of information on it.

    Thank you for the great script none-the-less, it is a work of art if I may say so myself phillips321 :)

    • phillips321 says:

      This was potentially caused by compiling the 32bit drivers for a 64bit OS.
      For now disable the following option when installing:
      missing-drivers “allows easy install of nVidia, AMD and Wireless Drivers” OFF

      Hope this helps for now.

      I’ll look to getting this sorted ASAP.

  • shipcode says:

    There’s some typo error in this script in:

    i_routerdefense() { svn checkout http://routerdefense.googlecode.com/svn/trunk/
    /vaw/www/routerdefense ;}
    u_routerdefense() { svn up /vaw/www/routerdefense/ ;}

    Instead of vaw it should be var ;)

  • Ion says:

    Hello phillips, how are you?
    Just so you know, the opera launchpad repo/package gives an error when apt-get updating.
    Also, w3af does not work out of the box. I don’t know if this is due to the changes because of your script, but it needs some more packages/work. I will write you the snippet to add it immediately after installing it.
    Lastly, by all means change “Bruteforce” to “Ion” in your script’s changelog :P

  • Ion says:

    Hello phillips. When running the script with the update flag I get the following error:

    ###############################################
    Now updating: warvox
    ###############################################
    svn: Repository moved temporarily to ‘http://www.metasploit.com/svn/warvox/trunk’; please relocate

    Just so you know.

  • BT says:

    how do I use this????

    it only shows this:

    root@bt:~# svn checkout http://bt5-fixit.googlecode.com/svn/trunk/ bt5-fixit
    Checked out revision 39.

  • Timos says:

    Very nice work!!! Congratulations!!!

  • jgg says:

    Just wanted to say thank you for writing such a terrific script. I’m accustomed to badly maintained scripts, installers throwing errors, and spending hours doing repairs. Bt5-fixit executed smooth as glass. The only errors I encountered were my own and even they were easily recoverable.

    So, thank you again!

  • Flavio says:

    Hello it’s me again to share some extra PPAs that I included to install new software versions, if you find them usefull feel free to add in a future script version.
    ———————
    add-apt-repository ppa:deluge-team/ppa
    apt-get install deluge
    ———————
    add-apt-repository ppa:gnome-terminator/ppa
    apt-get install terminator
    ———————
    add-apt-repository ppa:mozillateam/firefox-stable
    apt-get install firefox
    ———————
    add-apt-repository ppa:nilarimogard/webupd8
    apt-get install mono-devel mono-runtime parcellite launchpad-getkeys
    ———————
    filezilla nautilus-dropbox unetbootin
    echo “deb http://archive.getdeb.net/ubuntu lucid-getdeb apps #GetDeb Software Portal” >> /etc/apt/sources.list.d/getdeb.list
    wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
    ———————
    Description
    launchpad-getkeys search and installs missing ppa keys.
    unetbootin creates boot usb key.
    parcellite manages clipboard.
    The rest is just update.

    Cheer.

    • Flavio says:

      The last command should be:

      echo “deb http://archive.getdeb.net/ubuntu lucid-getdeb apps #GetDeb Software Portal” >> /etc/apt/sources.list.d/getdeb.list
      wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
      apt-get install filezilla nautilus-dropbox unetbootin

      And if some new user wants to add these ppas manualy, before every ‘apt-get install’ it needs, of course, a ‘apt-get update’.

    • phillips321 says:

      Changes made in v2.7 (revision r37) thanks for the pointers

      • Ion says:

        For some reason the ppa:mozillateam/firefox-stable signing key throws an error when apt-get updating. You might want to look at that.

        PS. At some point I guess all this can become a mainterner’s hell. I hope you’ll still have time to support it :)

        • phillips321 says:

          Making changes doesn’t take much time at all, just The testing of the changes adds up. You’ve mad plenty of useful recommendations, fancy editing the code directly? Do you have a google account I could add directly to the code so you can commit changes? Cheers again

          • Ion says:

            Hello Phillips, would be cool, thanks. You can use the email I enter in this comment. I already have another tool in my mind. Cheers.

            PS. I have added you on twitter as well.

  • JL Griffin says:

    I wonder if you could add a script that starts networking and wicd by default. I Contacted the Devs of BT 5 and they said that if an ethernet cord is plugged in then BT will NOT start networking to protect against attacks during boot when the system is vulnerable, so i wonder if you could make some sort of startup script that runs when X starts with the command “/etc/init.d/networking start” and that also starts WICD. It annoys the hell out of me that i have to type that into the terminal after starting X every time…

    • phillips321 says:

      If you want to start networking by default ensure when you run the script that you tick gnome-network-manager. This is better intergated into the gnome desktop and manages both normal wired ethernet as well as wireless networks. It also has options for 3G networking and VPN connections. Once you have settings installed it will auto start and connect to wireless acccess points. Hope this helps

  • Flavio says:

    Congrats for this great script.

    Just a few comments. You can remove the line:
    add-apt-repository ppa:sevenmachines/flash
    Since it’s no longer supported.
    And I didn’t understand why using:
    http://packages.fwbuilder.org/deb/stable/ maverick contrib
    Instead of:
    http://packages.fwbuilder.org/deb/stable/ lucid contrib
    Since it’s the same version.

    Cheers

  • Red says:

    Another useful tool, this one for web services testing “SoapUI”. available here: http://sourceforge.net/projects/soapui/files/soapui/4.0.1/soapUI-x32-4_0_1.sh/download

    And if you didnt find it, XSSF is available here: https://code.google.com/p/xssf/

    Thanks for your efforts

  • 0xthor says:

    Very good in BT5-R1

  • bruteforce says:

    Works fine with BT5 R1!

    Only one error, in line 437:

    u_msf3() { /pentest/exploits/framework3/msfupdate ; }

    framework3 should change to just ‘framework’.

  • cacam says:

    I use Gnacktrack 6 if it is sufficiently stable, and how to affairs of bugs in it :mrgreen:

  • Lanzorg says:

    Is it compatible with BackTrack 5R1?

  • red says:

    not sure if its in MSF4, but the XSSF module for metasploit would be awesome. cheers, nice work

  • Jabberwocky says:

    I installed the BT5 installation for Android, and noticed that it is missing quite a lot. I tried to use your script, but after running it, I get an error: ./bt5-fixit.sh: line372: syntax error near unexpected token ‘{apt-get i_tiger(){apt-get install -y tiger ;}

    How can I get around this?

  • bruteforce says:

    And another tool worth installing is tiger: http://www.nongnu.org/tiger/

    It’s in the repos, apt-get install tiger :)

  • bruteforce says:

    Hello once again.

    Here is another suggestion. If you have run wicd you should have noticed the error message that pops up everytimg about wicd’s D-Bus interface. This is how to remove it.

    BEFORE STARTING WICD, you should run:
    dpkg-reconfigure wicd
    update-rc.d wicd defaults

    Also, it would be good for the script to autogenerate the sshd keys, because newbies don’t have any idea how to set up ssh access:
    sshd-generate

    That’s it and you’re ready to connect through SSH.

    Also, I should mention again that creepy (apt-get install creepy) is a nice tool that I suggested above, but you forgot it or otherwise decided not to include. Any reason for that? :?:

  • Piero says:

    THANK YOU, that’s a very useful script!

    I tryed it without any option on a plain vanilla BT5 Gnome VM, and it broke framework3 installation.
    However it may be nice to upgrade to FW4.
    Cheers,
    Piero

  • bruteforce says:

    Hello Phillips, another suggestion is to add jockey-gtk for 3rd party drivers: http://packages.ubuntu.com/hardy/jockey-gtk

    Also, a torrent client should be added, preferably Deluge.

  • bruteforce says:

    Another thing is the double entry of WBarConf in the Applications–>Accessories menu. You could also remove the second one.

    And lastly, you could check if the script is run as root, just to be sure:
    if [ "`whoami`" != "root" ]; then
    echo “Run as root please. Exiting…” && exit 1
    fi

    Now you should really combine the above comments :mrgreen: Sorry for flooding your post :oops:

  • bruteforce says:

    You could also apt-get autoremove some left-over packages. Sorry for the many comments, combine them if you want. :oops:

  • bruteforce says:

    The installer for SET also throws an error (i_set), it doesn’t exist.

  • bruteforce says:

    Hello again Phillips321, I really like your script, here are some suggestions:

    a) Option to change the root password: passwd
    b) Option to remove the Install Backtrack icon from Desktop: if [ -f /root/Desktop/backtrack-install.desktop ]; then
    rm /root/Desktop/backtrack-install.desktop
    fi
    c) Option to add Dropbox:
    if [ "`dpkg -s nautilus-dropbox | grep Status`" != "Status: install ok installed" ]; then
    wget -N http://linux.dropbox.com/packages/nautilus-dropbox_0.6.8_i386.deb
    dpkg -i nautilus-dropbox_0.6.8_i386.deb
    nautilus –quit #restart nautilus
    dropbox start -i #run gui installer
    read -e -p “Please complete the installation and then press Enter to continue…”
    dropbox autostart y #already by default, just to be sure
    rm nautilus-dropbox_0.6.8_i386.deb
    fi
    d) Add some more packages: mono-runtime, mono-devel, gtk-recordmydesktop, terminator

    If anything else comes to mind I’ll throw another comment. Keep up the good work! :smile:

    • phillips321 says:

      a> Good idea, any idea how to check if the password is currently set to “toor”
      b> Another good idea, will be added
      c> I’ll see if i can implement the dropbox option under the tool installs section.
      d> Have added these to install menu

      • bruteforce says:

        a> Not really, the passwords are stored in the shadow file (/etc/shadow). I have changed mine and from what I see the SHA512 salted algorithm is used. So, the only “solution” I see is to crack this I guess which in turn is not a solution… I guess you could create a dialog asking the user if he wants to change it (for the first-time run).

  • Friend says:

    gcalctool is missing from BackTrack5. Please add it to the script.

Leave a Reply