If you're going to post code, please post it in the code tags.
Hello,
I took the script that Baxter, ReL1K, PrairieFire, and purehate wrote and modified it for BT3. Here are the results. Let me know what you think.
Code tags added. I will leave the thread here for now as it is BT3-beta specific. -theprez98Code:#!/bin/sh # #### Metasploit Framework 2/3,Aircrack-ng-dev,Kismet,Slaptget #### # option=13 while [ $option -ne 0 ] do clear echo " 1. --> Update Metasploit Framework 3" echo " 2. --> Update Metasploit Framework 2" echo " 3. --> Update Kismet" echo " 4. --> Install Slaptget (0.9.12-i386-1)" echo " 5. --> Install Gpsd (2.37)" echo " 6. --> Install Aircrack-ng beta2" echo " 7. --> Update Airpwn (1.3)" echo " 0. --> Exit" read option case $option in #### This part was written by ReL1K #### 1) echo "*** Updating Metasploit Framework 3 ***" svn update /pentest/exploits/framework3/;; 2) echo "*** Updating Metasploit Framework 2 ***" svn update /pentest/exploits/framework2/;; 3) echo "UpDating Kismet..." svn co http://svn.kismetwireless.net/code/trunk kismet-devel cd kismet-devel ./configure make dep && make && make install if !(id kismet > /dev/null 2>&1); then useradd kismet fi if test -f /usr/local/etc/kismet.conf; then mv -f /usr/local/etc/kismet.conf /usr/local/etc/kismet.org fi sed -i 's/suiduser=your_user_here/suiduser=kismet/g' /usr/local/etc/kismet.conf cp conf/kismet.conf /usr/local/etc/kismet.conf if test -f /usr/local/etc/kismet_ui.conf; then mv -f /usr/local/etc/kismet_ui.conf /usr/local/etc/kismet_ui.org fi cp conf/kismet_ui.conf /usr/local/etc/kismet_ui.conf if test -f /usr/local/etc/kismet_drone.conf; then mv -f /usr/local/etc/kismet_drone.conf /usr/local/etc/kismet_drone.org fi cp conf/kismet_drone.conf /usr/local/etc/kismet_drone.conf cd .. rm -r kismet-2007-01-R1b.tar.gz rm -r kismet-2007-01-R1b rm -rf kismet-devel;; 4) echo "Installing Slaptget" wget http://software.jaos.org/slackpacks/...4.7-i486-1.tgz wget http://software.jaos.org/slackpacks/...1.4-i486-1.tgz wget http://software.jaos.org/slackpacks/...0.1-i486-1.tgz wget http://software.jaos.org/slackpacks/...12c-i386-1.tgz upgradepkg slapt-get-0.9.12c-i386-1.tgz upgradepkg gnupg-1.4.7-i486-1.tgz upgradepkg gpgme-1.1.4-i486-1.tgz upgradepkg libassuan-1.0.1-i486-1.tgz rm -r slapt-get-0.9.12-i386-1.tgz rm -r gnupg-1.4.7-i486-1.tgz rm -r gpgme-1.1.4-i486-1.tgz rm -r libassuan-1.0.1-i486-1.tgz echo "usage slapt-get --update" echo "slapt-get --upgrade";; 5) cd /usr/local/share/ svn checkout svn://svn.berlios.de/gpsd/trunk gpsd-2.37 cd gpsd-2.37 autogen.sh make cp gpsd /usr/local/bin/ cd .. rm -rf gpsd-2.37-dev gpsd -V;; 6) echo "Install Aircrack-ng dev" svn co http://trac.aircrack-ng.org/svn/trunk aircrack-ng cd aircrack-ng gmake SQLITE=true gmake SQLITE=true install cd .. rm -r aircrack-ng;; 7) echo "Updating Airpwn..." wget http://kent.dl.sourceforge.net/sourc...airpwn-1.3.tgz gzip -d airpwn-1.3.tgz tar -xvvf airpwn-1.3.tar cd airpwn-1.3 gzip -d lorcon-current.tgz tar -xvvf lorcon-current.tar cd lorcon ./configure && make && make install cd .. ./configure && make cd rm -r airpwn-1.3.tar rm -r airpwn-1.3;; 0) echo "*** Exiting ***" ;; *) exit &;; esac done
update gpsd to latest version
fix error on line 48 and 73
update gpsd and air-crack to latest versions
I like the bleeding edge, but I don't like blood loss
If you're going to post code, please post it in the code tags.
A third party security audit is the IT equivalent of a colonoscopy. It's long, intrusive, very uncomfortable, and when it's done, you'll have seen things you really didn't want to see, and you'll never forget that you've had one.
Also it should be posted in Programming
dd if=/dev/swc666 of=/dev/wyze
Upgrade to more recent version of GPSD.
linkCode:cd /usr/local/share/ svn checkout svn://svn.berlios.de/gpsd/trunk gpsd-2.36-dev cd gpsd-2.36-dev autogen.sh make cp gpsd /usr/local/bin/ cd gpsd -V
Μολὼν λαβέ - Great spirits encounter heavy opposition from mediocre minds.
Just to be honest and clarify I don't believe I wrote any of that script. No big deal I just want to make sure the people who wrote it get the proper credit. I believe balding_parrot wrote some of it.
I did, but most of what I added to it has been removed.
No biggie though.
I am sorry I forgot the code tags. I could make some lame excuse, but what the heck I forgot. I debated whether I should post this in programming or BT3 General. I decided BT3 General as this is BT3 specific. I figured if I made the wrong decision someone would move it. I am sorry if I didn't add someone to the list of credits. I just looked at the original thread. Feel free to edit the posting as needed. I try to make sure that people who did the work get the proper credit.
Thanks,
I like the bleeding edge, but I don't like blood loss
Hi, thanks for the script. I am getting a slight error though sorry.
i saved it as update.sh and ran it but get error below:
Code:./update.sh: line 48: syntax error near unexpected token `-rf' ./update.sh: line 48: ` rm -rf kismet-devel'
sorry if this is obvious but the command looks good to me so did i copy it incorrectly somehow?
I just fixed the error on line 48. Thanks for reporting it.
I like the bleeding edge, but I don't like blood loss
Code:./ud: line 73: syntax error near unexpected token `)' ./ud: line 73: ` 6) echo "Install Aircrack-ng dev"'