| GNU Linux Information and discussions about GNU Linux. |
|
#1
| ||||
| ||||
| BackTrack 4 Bash Update-Script 2 FRHACK Edition!
Hello there, Jerome was so kind to send me this per e-mail ![]() I heard there was a small bug in it but that might be fixed in this. This bash script isn't tested fully by me but it's safe and secure. Have fun with the additions It's great!Code: #!/bin/bash
clear
echo " ---------------------------------------------------------- "
echo "| BackTrack 4 Pre Release - Update |"
echo "| |"
echo "| Greetings to JA-PSI company |"
echo "| http://www.ja-psi.fr/ |"
echo "| |"
echo "| Original version available on Remote Exploit web site |"
echo "| http://www.remote-exploit.org/backtrack_download.html |"
echo "| |"
echo "| Script V1.0 Licence GPLv3 |"
echo "| |"
echo " ---------------------------------------------------------- "
read -p "Press <Entrer> to start update"
function VERIF_ROOT()
{
if [ $HOME != "/root" ] || [ $(whoami) != "root" ]
then
echo " ERROR : This script may be launched as ROOT (UID 0)"
exit
else
MAJ_SYS
fi
}
#-----------------------------------------------#
# System update #
#-----------------------------------------------#
function MAJ_SYS()
{
clear
echo " --------------------------------------------------------- "
echo "| System Update |"
echo " --------------------------------------------------------- "
read -p "Press <Entrer> to continue"
aptitude -y update && aptitude -y safe-upgraof
INSTALL
}
#-----------------------------------------------#
# Libraries Install #
#-----------------------------------------------#
function INSTALL
{
aptitude install -y flex
aptitude install -y gcc-4.2
# aptitude install -y python-pyx
aptitude install -y libgtk2.0-ofv
aptitude install -y libexpect-perl
aptitude install -y libqt4-opengl-ofv
aptitude install -y sun-java6-jre sun-java6-plugin
mkdir /wordlist
cd /wordlist
mkdir /wordlist
mkdir /Wifi
mkdir /Ophcrack
#-----------------------------------------------#
# Wireless #
#-----------------------------------------------#
# Install of SpoonWEP and SpoonWPA
cd /pentest/wireless/
wget "http://www.fileofn.com/files/2008/10/11/2138272/spoonwep-wpa-rc3.ofb"
dpkg -i spoonwep-wpa-rc3.ofb
rm -rf spoonwep-wpa-rc3.ofb
# Install of FakeAP
cd /pentest/wireless/
wget "http://www.blackalchemy.to/project/fakeap/download.php?name=fakeap-0.3.2.tar.gz"
mv download.php?name=fakeap-0.3.2.tar.gz fakeap-0.3.2.tar.gz
gzip -d fakeap-0.3.2.tar.gz
tar xf fakeap-0.3.2.tar
rm -rf fakeap-0.3.2.tar
mv fakeap*/ fakeap/
# Install of Airgraph-ng
cd /pentest/wireless/
svn co http://trac.aircrack-ng.org/svn/trunk/scripts/airgraph-ng airgraph-ng
cd airgraph-ng/
make && make install
# Install of Airoscript
cd /pentest/wireless/
svn co http://trac.aircrack-ng.org/svn/branch/airoscript/ airoscript
cd airoscript
make
# Install of Wifitap
cd /etc/
wget "http://www.secofv.org/projects/scapy/files/ethertypes"
cd /pentest/wireless/
wget "http://sid.rstack.org/coof/wifitap.tgz"
tar xzf wifitap.tgz
rm -rf wifitap.tgz
# Install of WepCrack
cd /pentest/wireless/
mkdir -p /pentest/wireless/WEPCrack
cd /pentest/wireless/WEPCrack/
wget "http://downloads.sourceforge.net/project/wepcrack/wepcrack-perl/0.1.0/WEPCrack-0.1.0.tar.gz?use_mirror=freefr"
tar xzf WEPCrack-0.1.0.tar.gz
rm -rf WEPCrack-0.1.0.tar.gz
# Install of Wifi-Radar
cd /pentest/wireless/
wget "http://download.berlios.de/wifi-radar/wifi-radar-2.0.s05.tar.bz2"
tar xjf wifi-radar-2.0.s05.tar.bz2
rm -rf wifi-radar-2.0.s05.tar.bz2
mv wifi-radar*/ wifi-radar/
# Install of GpsDrive
aptituof install -y gpsdrive
# Install of SSIDSniff
cd /pentest/wireless/
wget "http://www.bastard.net/~kos/wifi/ssidsniff-0.53.tar.gz"
tar xzf ssidsniff-0.53.tar.gz
rm -rf ssidsniff-0.53.tar.gz
mv ssidsniff*/ ssidsniff/
cd ssidsniff/
./configure
make && make install
# Install of Zulu
cd /pentest/wireless/
wget "http://sourceforge.net/projects/zulu-wireless/files/zulu-src/zulu-0.1/zulu-0.1.tgz/download"
tar xzf zulu-0.1.tgz
rm -rf zulu-0.1.tgz
cd zulu/
./configure
make && make install
# Install of AP-Hopper
cd /pentest/wireless/
wget "http://downloads.sourceforge.net/project/aphopper/aphopper/0.3/aphopper-0.3.tar.gz?use_mirror=freefr"
tar xzf aphopper-0.3.tar.gz
rm -rf aphopper-0.3.tar.gz
cd aphopper/
./configure
make && make install
# Instalation of Wi-Spy
cd /pentest/wireless/
wget "http://www.kismetwireless.net/coof/wispy-tools-2007-svn.tar.gz"
tar xzf wispy-tools-2007-svn.tar.gz
rm -rf wispy-tools-2007-svn.tar.gz
mv wispy*/ wispy/
cd wispy/
./configure
make && make install
# Install of Airsnort
cd /pentest/wireless/
wget "http://sourceforge.net/projects/airsnort/files/airsnort/airsnort-0.2.7e/airsnort-0.2.7e.tar.gz/download"
tar xzf airsnort-0.2.7e.tar.gz
rm -rf airsnort-0.2.7e.tar.gz
mv airsnort*/ airsnort/
cd airsnort/
./configure
make && make install
# Install of MDK3
cd /pentest/wireless/
wget "http://homepages.tu-darmstadt.de/%7Ep_larbig/wlan/mdk3-v5.tar.bz2"
tar xjf mdk3-v5.tar.bz2
rm -rf mdk3-v5.tar.bz2
cd mdk3-v5/
cd osdep/
sed -e "s/(TOOL_PREFIX)gcc/(TOOL_PREFIX)gcc-4.2/g" common.mak > common.mak.tmp && mv -f common.mak.tmp common.mak
cd ..
make && make install
# Install of WepBuster
cd /pentest/wireless/
wget "http://wepbuster.googlecode.com/files/wepbuster-1.0_beta_0.6.tgz"
tar xzf wepbuster-1.0_beta_0.6.tgz
rm -rf wepbuster-1.0_beta_0.6.tgz
mv wepbuster*/ wepbuster/
#-----------------------------------------------#
# Web #
#-----------------------------------------------#
# Install of Fierce
cd /pentest/web/
mkdir -p /pentest/web/fierce
cd /pentest/web/fierce/
wget "http://ha.ckers.org/fierce/fierce.pl"
wget "http://ha.ckers.org/fierce/hosts.txt"
# Install of JBroFuzz
cd /pentest/web/
mkdir -p /pentest/web/JBroFuzz
cd /pentest/web/JBroFuzz/
wget "http://sourceforge.net/projects/jbrofuzz/files/jbrofuzz/jbrofuzz-1.5/jbrofuzz-jar-15.zip/download"
unzip jbrofuzz-jar-15.zip
rm -rf jbrofuzz-jar-15.zip
# Install of Wfuzz
cd /pentest/web/
wget "http://www.edge-security.com/soft/wfuzz-1.4.tar.gz"
tar xzf wfuzz-1.4.tar.gz
rm -rf wfuzz-1.4.tar.gz
mv wfuzz-1.4/ wfuzz/
#-----------------------------------------------#
# Bluetooth #
#-----------------------------------------------#
# Install of Bluemaho
cd /pentest/bluetooth
wget "http://wiki.thc.org/BlueMaho?action=AttachFile&do=get&target=bluemaho_v090417.tgz"
mv *.tgz bluemaho_v090417.tgz
tar xzf bluemaho_v090417.tgz
rm -rf bluemaho_v090417.tgz
mv bluemaho_v090417*/ bluemaho/
# Install of Bluescanner
cd /pentest/bluetooth
wget "http://cz.archive.ubuntu.com/ubuntu/pool/main/b/bluez-libs/libbluetooth2_3.29-0ubuntu1_i386.ofb"
dpkg -i libbluetooth2_3.29-0ubuntu1_i386.ofb
rm -rf libbluetooth2_3.29-0ubuntu1_i386.ofb
wget "http://downloads.sourceforge.net/project/bluescanner/bluescanner/BlueScan%201.0.6/bluescan_1.0.6?use_mirror=freefr"
dpkg -i bluescan_1.0.6.ofb
rm -rf bluescan_1.0.6.ofb
chmod +x bluescan_1.0.6
# Install of Bluesnarfer
cd /pentest/bluetooth
wget "http://www.alighieri.org/tools/bluesnarfer.tar.gz"
tar xzf bluesnarfer.tar.gz
rm -rf bluesnarfer.tar.gz
cd bluesnarfer/
make
# Install of Ghettotooth
mkdir /pentest/bluetooth/ghettotooth
cd /pentest/bluetooth/ghettotooth/
wget "http://www.oldskoolphreak.com/tfiles/ghettotooth.txt"
mv ghettotooth.txt ghettotooth.pl
# Install of BT-Audit
cd /pentest/bluetooth/
wget "http://www.betaversion.net/btdsd/download/bt_audit-0.1.1.tar.gz"
tar xzf bt_audit-0.1.1.tar.gz
rm -rf bt_audit-0.1.1.tar.gz
cd bt_audit/src
make
#-----------------------------------------------#
# Forensic #
#-----------------------------------------------#
mkdir /pentest/forensic
cd /pentest/forensic/
# Install of FatBack
cd /pentest/forensic/
wget "http://sourceforge.net/projects/fatback/files/fatback/fatback-1.3/fatback-1.3.tar.gz/download"
tar xzf fatback-1.3.tar.gz
rm -rf fatback-1.3.tar.gz
mv fatback*/ fatback/
cd fatback/
./configure
make && make install
# Install of Pasco
cd /pentest/forensic/
wget "http://sourceforge.net/projects/oofssa/files/Pasco/20040505_1/pasco_20040505_1.tar.gz/download"
tar xzf pasco_20040505_1.tar.gz
rm -rf pasco_20040505_1.tar.gz
mv pasco*/ pasco/
cd pasco/src/
make && make install
# Install of Unhiof
cd /pentest/forensic/
wget "http://archive.ubuntu.com/ubuntu/pool/universe/u/unhiof/unhiof_20080519-2_i386.ofb"
dpkg -i unhiof_20080519-2_i386.ofb
rm -rf unhiof_20080519-2_i386.ofb
# Install of Memdump
cd /pentest/forensic/
wget "http://www.porcupine.org/forensics/memdump-1.01.tar.gz"
tar xzf memdump-1.01.tar.gz
rm -rf memdump-1.01.tar.gz
mv memdump*/ memdump/
cd memdump/
make
# Install of allin1
cd /pentest/forensic/
wget "http://www.netmon.ch/forensic/allin1-0.4.tar.gz"
tar xzf allin1-0.4.tar.gz
rm -rf allin1-0.4.tar.gz
mv allin1-0.4/ allin1/
cd allin1/
./install.sh
#-----------------------------------------------#
# Anonymat #
#-----------------------------------------------#
useradd privoxy -s /bin/false
usermod -G privoxy privoxy
# Install of TOR
cd /pentest/anonymat/
wget "http://www.torproject.org/dist/tor-0.2.1.19.tar.gz"
tar xzf tor-0.2.1.19.tar.gz
rm -rf tor-0.2.1.19.tar.gz
cd tor-0.2.1.19/
./configure
/etc/init.d/tor stop
# Install of Privoxy
cd /pentest/anonymat/
wget "http://sourceforge.net/projects/ijbswa/files/Sources/3.0.8%20%28stable%29/privoxy-3.0.8-stable-src.tar.gz/download"
tar xzf privoxy-3.0.8-stable-src.tar.gz
rm -rf privoxy-3.0.8-stable-src.tar.gz
chown -R privoxy.privoxy privoxy-3.0.8-stable/
cd privoxy-3.0.8-stable/
autoheaofr && autoconf && ./configure
make && make install
mv /usr/local/etc/privoxy/config /usr/local/etc/privoxy/config.old
touch /usr/local/etc/privoxy/config
echo "
# Tor listens as a SOCKS4a proxy here:
forward-socks4a / 127.0.0.1:9050 .
confdir /etc/privoxy
logdir /var/log/privoxy
actionsfile standard # Internal purpose, recommenofd
actionsfile offault # Main actions file
actionsfile user # User customizations
filterfile offault.filter
# Don't log interesting things, only startup messages, warnings and errors
#logfile logfile
#jarfile jarfile
#ofbug 0 # show each GET/POST/CONNECT request
ofbug 4096 # Startup banner and warnings
ofbug 8192 # Errors - *we highly recommenofd enabling this*
user-manual /usr/share/doc/privoxy/user-manual
listen-address 127.0.0.1:8118
toggle 1
enable-remote-toggle 0
enable-edit-actions 0
enable-remote-http-toggle 0
buffer-limit 4096
" > /usr/local/etc/privoxy/config
/etc/init.d/tor stop
/etc/init.d/privoxy stop
#-----------------------------------------------#
# Passwords #
#-----------------------------------------------#
# Install of Ophcrack
cd /pentest/password/
apt-get -y build-ofp ophcrack
wget "http://downloads.sourceforge.net/project/ophcrack/ophcrack/3.3.1/ophcrack-3.3.1.tar.bz2?use_mirror=freefr"
tar -xjf ophcrack-3.3.1.tar.bz2
rm -rf ophcrack-3.3.1.tar.bz2
mv ophcrack*/ ophcrack/
cd ophcrack/
./configure
make && make install
# Install of VNCrack
cd /pentest/password/
mkdir -p /pentest/password/VNCrack
cd /pentest/password/VNCrack/
wget "http://www.phenoelit-us.org/vncrack/vncrack_src-1.21.tar.gz"
tar xzf vncrack_src-1.21.tar.gz
rm -rf vncrack_src-1.21.tar.gz
make
# Install of TFTP-bruteforce
cd /pentest/password/
wget "http://packetstormsecurity.org/UNIX/audit/TFTP-bruteforce.tar.gz"
tar xzf TFTP-bruteforce.tar.gz
rm -rf TFTP-bruteforce.tar.gz
# Install of DNS Brute
cd /pentest/password/
wget "http://sourceforge.net/projects/pydns/files/pydns/pydns-2.3.3/pydns-2.3.3.tar.gz/download"
tar xzf pydns-2.3.3.tar.gz
rm -rf pydns-2.3.3.tar.gz
cd pydns-2.3.3/
python setup.py install
cd ..
wget "http://packetstormsecurity.org/Crackers/DNSBruteforce.tar.gz"
tar xzf DNSBruteforce.tar.gz
rm -rf DNSBruteforce.tar.gz
# Install of kalgecin
cd /pentest/password/
svn checkout http://kalgecin.googlecoof.com/svn/ kalgecin
rm -rf kalgecin/wiki/
#-----------------------------------------------#
# Fuzzer #
#-----------------------------------------------#
# Install of FuzzGrind
cd /pentest/fuzzers/
wget "http://www.security-labs.org/fuzzgrind/files/fuzzgrind_090622.tar.gz"
tar xzf fuzzgrind_090622.tar.gz
rm -rf fuzzgrind_090622.tar.gz
cd fuzzgrind/
./install.sh
rm *.tar.gz
rm *.tar.bz2
#-----------------------------------------------#
# Exploitation #
#-----------------------------------------------#
# Install of Origami
cd /pentest/exploits/
wget "http://www.security-labs.org/origami/files/origami-1.0.0-beta0.tar.gz"
tar xzf origami-1.0.0-beta0.tar.gz
rm -rf origami-1.0.0-beta0.tar.gz
mv origami*/ origami/
#-----------------------------------------------#
# Vulnerabilites Identification #
#-----------------------------------------------#
# Ibstallation of MetaScan
mkdir /pentest/exploits/metascan
cd /pentest/exploits/metascan/
wget "http://www.regis-senet.fr/FRHACK/MetaScan.rb"
sed -i '11i $path = "cat /pentest/exploits/framework3/modules/"' MetaScan.rb
sed '12d' MetaScan.rb > MetaScan.rb.tmp && mv -f MetaScan.rb.tmp MetaScan.rb
rm -rf *~
# Install of Nessus
#cd /pentest/exploits/
#wget "http://www.regis-senet.fr/FRHACK/Nessus-4.0.1-ubuntu810_i386.ofb"
#dpkg -i Nessus-4.0.1-ubuntu810_i386.ofb
#rm -rf Nessus-4.0.1-ubuntu810_i386.ofb
#wget "http://www.regis-senet.fr/FRHACK/NessusClient-4.0.1-ubuntu810_i386.ofb"
#dpkg -i NessusClient-4.0.1-ubuntu810_i386.ofb
#rm -rf NessusClient-4.0.1-ubuntu810_i386.ofb
#clear
#read -p "Please specify your Nessus register number : " registerNumber
#/opt/nessus/sbin/nessus-adduser
#/opt/nessus/bin/nessus-fetch --register $registerNumber
#/etc/init.d/nessusd start
#Install of Complemento suite
cd /pentest/exploits/
wget "http://cz.archive.ubuntu.com/ubuntu/pool/universe/c/c-ares/libc-ares1_1.5.1-0_i386.deb"
dpkg -i libc-ares1_1.5.1-0_i386.deb
rm -rf libc-ares1_1.5.1-0_i386.deb
wget "http://sourceforge.net/projects/complemento/files/complemento/complemento-0.7/complemento-0.7.ofb/download"
dpkg -i complemento-0.7.deb
rm -rf complemento-0.7.deb
#-----------------------------------------------#
# Divers #
#-----------------------------------------------#
# Install of The middler
cd /pentest/spoofing/
wget "http://inguardians.com/tools/middler-1.0.tgz"
tar xzf middler-1.0.tgz
rm -rf middler-1.0.tgz
#-----------------------------------------------#
# Other #
#-----------------------------------------------#
# Wallpaper
mv /opt/kof3/share/wallpapers/origin2.jpg /opt/kof3/share/wallpapers/backtrack.jpg
cd /opt/kof3/share/wallpapers/
wget "http://www.regis-senet.fr/FRHACK/origin2.jpg"
echo "ServerName 127.0.0.1" >> /etc/apache2/apache2.conf
cd /root/.config/menus/
rm -rf *
wget "http://www.regis-senet.fr/FRHACK/applications-kmenuedit.menu"
cd /root/.local/share
rm -rf applications/ icons/
wget "http://www.regis-senet.fr/FRHACK/Bureau.zip"
unzip Bureau.zip
rm -rf Bureau.zip
cd Bureau
mv * ../
cd ..
rm -rf Bureau/
cd /root/
rm -rf .mozilla
wget "http://www.regis-senet.fr/FRHACK/mozilla.zip"
unzip mozilla.zip
rm -rf mozilla.zip
mv mozilla/ .mozilla/
#-----------------------------------------------#
# Nettoyage #
#-----------------------------------------------#
apt-get clean
apt-get autoclean
END_INSTALL
}
function END_INSTALL
{
clear
echo " --------------------------------------------------------- "
echo "| Felicitation, les Install sont terminees |"
echo " --------------------------------------------------------- "
read -p "Appuyer sur <Entrer> pour quitter"
clear
exit
}
VERIF_ROOT
__________________ Code: ____/____\_________________
\|/ | OMG IT'S TEH LEET STORY!! |
/*\ /\ -*- |______ ________/\_________|
// \\ / \ /|\ / \/ \ / \
/// \\\ / \ / \/ \
// \\ / \ / \o/ \ \
| | / \ / | \ \
___| |____/ \______/________/ \_______\_____\_________
/ o \
#"=-
/\
__________________________________________________________
On a mission, to find the lost member of Teh Unkwon.. |
|
#2
| ||||
| ||||
| Re: BackTrack 4 Bash Update-Script 2 FRHACK Edition!
Thanks for the bash script with some goodies. I kinda went off and created my own little version and added only the things I use on a reg basis but always take a look at anything they release :) and looking at new tools that are out there
|
|
#3
| |||
| |||
| Re: BackTrack 4 Bash Update-Script 2 FRHACK Edition!
that script is for backtrack 4
|
|
#4
| ||||
| ||||
| Re: BackTrack 4 Bash Update-Script 2 FRHACK Edition! Yes that's why the title says BackTrack 4 Bash Update Script 2 (to) FRHACK edition
__________________ Code: ____/____\_________________
\|/ | OMG IT'S TEH LEET STORY!! |
/*\ /\ -*- |______ ________/\_________|
// \\ / \ /|\ / \/ \ / \
/// \\\ / \ / \/ \
// \\ / \ / \o/ \ \
| | / \ / | \ \
___| |____/ \______/________/ \_______\_____\_________
/ o \
#"=-
/\
__________________________________________________________
On a mission, to find the lost member of Teh Unkwon.. |
|
#5
| ||||
| ||||
| Re: BackTrack 4 Bash Update-Script 2 FRHACK Edition!
Ive got me BT4 DLED just need to get a blank CD and im all over it!!! Nice post too!! +rep if possible
__________________ "BackTrack is the fastest way to go from boot to remote root." - H.D. Moore ![]() |
|
#6
| ||||
| ||||
| Re: BackTrack 4 Bash Update-Script 2 FRHACK Edition!
some links are dead in the script forgot to post about that before but you can use MaXe other post and d/l the frhack iso
|
|
#7
| ||||
| ||||
| Re: BackTrack 4 Bash Update-Script 2 FRHACK Edition!
Exactly Tsukasa, it was also mentioned on the Mailing list for Metasploit (or Full Disclosure I'm not sure..) But I hope they are going to implement these changes / packages into the official BackTrack, but in the mean time One can always try update BackTrack within itself and see if the new packages has been distributed or not, if not then One could just dload the ISO :-)
__________________ Code: ____/____\_________________
\|/ | OMG IT'S TEH LEET STORY!! |
/*\ /\ -*- |______ ________/\_________|
// \\ / \ /|\ / \/ \ / \
/// \\\ / \ / \/ \
// \\ / \ / \o/ \ \
| | / \ / | \ \
___| |____/ \______/________/ \_______\_____\_________
/ o \
#"=-
/\
__________________________________________________________
On a mission, to find the lost member of Teh Unkwon.. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bash Profile Hack (In C) | K1llTh3C0rruption | C // C++ | 0 | 8th January 2010 10:18 |
| LAK (Local Attack Kit) Bash for bt4 | Zero Cold | Other Programming Languages | 3 | 17th December 2009 16:19 |
| [BETA] FRHack OS | MaXe | GNU Linux | 4 | 12th December 2009 19:13 |
| problem with frhack login | mahabad1972 | Introductions | 1 | 8th October 2009 20:42 |