#!/bin/bash # WT7 Updater Script for # Version 7.5 Updater Script # # WeakNet Labs - 2016 Douglas Berdeaux # WeakNetLabs@Gmail.com # VERSION=7.5 # COLORS: YELLOW='\e[33m'; GREEN='\e[32m' WHITE='\e[97m' RESET='\e[0m'; RED='\e[91m' function bracket { # 0 = yellow *, 1 = green ?, 2 = red ! if [ "$1" -eq "0" ] then printf "$WHITE[ $YELLOW*$WHITE ] $RESET"; elif [ "$1" -eq "1" ] then printf "$WHITE[ $GREEN?$WHITE ] $RESET"; elif [ "$1" -eq "2" ] then printf "$WHITE[ $RED!$WHITE ] $RESET"; fi } bracket 0; printf "Hello, I am the WT7 updater script version $VERSION.\n" bracket 0; printf "I will be updating your system.\n" bracket 0; echo "Localtime: $(date)"; bracket 2; printf "This will take a lot of time and will update a lot of things.\n"; bracket 2; printf "Please be patient.\n" sleep 4 # so tonight that I might see ### Update Debian bracket 0; echo "Updating Debian OS." apt-get update && apt-get dist-upgrade -y ### Update WT/OS bracket 0; echo "Making changes to OS for WT." update-rc.d redis-server remove rm -rf /root/core rm -rf /root/mysqlaccess.log wget https://weaknetlabs.com/images/grub2-splash.png -O /root/.wt7/images/grub2-splash.png && \ wget https://weaknetlabs.com/files/grub -O /etc/default/grub && \ update-grub # update it ### Update tools rm /pwnt/exploitation/beef/Gemfile.lock 2>/dev/null # remove cruft rm -rf /pwnt/80211/warcarrier 2>/dev/null# remove cruft cd /pwnt && for i in $(find /pwnt * | grep -i '\.git' | grep -Ev '^\.' | sed -r 's/\.git\/*//' \ | sed -r 's/(^[^/]+\/[^/]+\/).*/\1/'|egrep -v '^(\.|\/)' |sort -u); do cd $i && git pull 2>&1\ |grep -v 'object!'; cd /pwnt; done cd /pwnt/80211/aircrack-ng && make clean && make && make install cd /pwnt && git clone https://github.com/weaknetlabs/warcarrier cd /pwnt/exploitation/metasploit && gem install bundler && bundle install cd /tmp && git clone https://github.com/weaknetlabs/wt7-launcher && cd wt7-launcher && chmod +x wt7-launcher.sh && mkdir -p /wt7 2>/dev/null && cp wt7-launcher.sh /wt7/ # update / install the WT7 launcher ### Install New tools: apt-get install apktool goldeneye slowhttptest hping3 themole -y cd /pwnt/denial-of-service && git clone https://github.com/grafov/hulk cd /pwnt/reverse-engineering && git clone https://github.com/weaknetlabs/ByteForce && cd /pwnt/reverse-engineering/ByteForce && make mkdir -p /pwnt/hardware/magnetic-swipe && cd /pwnt/hardware/magnetic-swipe git clone http://github.com/weaknetlabs/mag-slash && cd mag-slash && make clean && make && make install ### Update UI wget https://weaknetlabs.com/images/thanks.png -O /root/.wt7/thanks/thankyouwt7.png wget https://weaknetlabs.com/files/menu -O ~/.fluxbox/menu # update fluxbox menu (important that this is last, apt will destroy it if not) wget https://weaknetlabs.com/files/.wbar -O /root/.wbar # update wbar wget https://weaknetlabs.com/images/wc-logos.png -O /root/.wt7/images/wallpapers/wc-logos.png && \ fbsetbg -c /root/.wt7/images/wallpapers/wc-logos.png && killall wbar; wbar >/dev/null 2>&1 & bracket 0; echo "The Updater.sh script is complete, returning to update-wt.sh"