1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
3 # You can also contact me on http://blog.harvie.cz/
5 pkgname=backtrack-pentest-library
6 _imagename=bt4-final.iso
9 pkgdesc='Pentesting scripts from Back-Track live-cd Linux distribution. All tools and exploits were collected by Max Moser. These are extracted from /pentest directory on DVD and installed to /opt/back-track/. More than 700MB of scripts in library!'
12 url="http://www.remote-exploit.org/backtrack.html"
15 'exploit-db: Exploits from exploit-db.com'
16 'milw0rm-exploit-database: Exploits from milw0rm.com (not updated)'
17 'metasploit: MetaSploit exploiting framework + exploits'
18 'nmap: Basic network scanner'
19 'nessus-core: Advanced security scanner'
20 'nessus-libraries: Advanced security scanner libraries'
21 'nessus-plugins: Advanced security scanner plugins'
22 'wine: To execute some of utilities from library'
23 'python: library contains lot of python scripts'
24 'perl: library contains lot of perl scripts'
27 #"ftp://mirror.informatik.uni-mannheim.de/pub/linux/distributions/BackTrack/${_imagename}/${_imagename}.iso"
28 #"http://www.backtrack-linux.org/download.php?fname=${_imagename}"
29 "http://nl2.beadwindow.net/mirrors/backtrack-linux/${_imagename}"
32 #'7d1eb7f4748759e9735fee1b8a17c1d8' #too slow - uncomment if needed/paranoid ;)
36 _destdir='/opt/backtrack'
39 echo '==> Building of this package will take a while.'
40 echo '==> So get coffee or something. ;o)'
43 echo "==> Creating target directory ${_destdir} in package."
44 mkdir -p ${pkgdir}/${_destdir}/tools
47 rm -rf ${startdir}/src/*
49 echo '==> Extracting basic tools from iso...'
50 for i in activate deactivate deb2lzm dir2lzm liblinuxlive lzm2dir mksquashfs tgz2lzm unsquashfs; do
51 iso-read -i ${_imagename}.iso -e "BT4/tools/$i" -o "./src/$i" || return 1
52 chmod +x "./src/$i" || return 1
55 echo '==> Extracting pentest.lzm archive from iso...'
56 iso-read -i ${_imagename}.iso -e BT4/base/pentest.lzm -o src/pentest.lzm || return 1
58 echo '==> Extracting files from pentest.lzm archive...'
60 ./src/lzm2dir ./src/pentest.lzm ${pkgdir}/${_destdir}/ || return 1
63 rm -rf ./src/pentest.lzm
64 cp ./src/* ${pkgdir}/${_destdir}/tools/
66 chown root:root ${pkgdir}/${_destdir}
67 chmod -R 655 ${pkgdir}/${_destdir}