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
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"
30 #'7d1eb7f4748759e9735fee1b8a17c1d8' #too slow - uncomment if needed/paranoid ;)
34 _destdir='/opt/backtrack'
37 echo '==> Building of this package will take a while.'
38 echo '==> So get coffee or something. ;o)'
41 echo "==> Creating target directory ${_destdir} in package."
42 mkdir -p ${pkgdir}/${_destdir}/tools
45 rm -rf ${startdir}/src/*
47 echo '==> Extracting basic tools from iso...'
48 for i in activate deactivate deb2lzm dir2lzm liblinuxlive lzm2dir mksquashfs tgz2lzm unsquashfs; do
49 iso-read -i ${_imagename}.iso -e "BT4/tools/$i" -o "./src/$i" || return 1
50 chmod +x "./src/$i" || return 1
53 echo '==> Extracting pentest.lzm archive from iso...'
54 iso-read -i ${_imagename}.iso -e BT4/base/pentest.lzm -o src/pentest.lzm || return 1
56 echo '==> Extracting files from pentest.lzm archive...'
58 ./src/lzm2dir ./src/pentest.lzm ${pkgdir}/${_destdir}/ || return 1
61 rm -rf ./src/pentest.lzm
62 cp ./src/* ${pkgdir}/${_destdir}/tools/
64 chown root:root ${pkgdir}/${_destdir}
65 chmod -R 655 ${pkgdir}/${_destdir}