Commit | Line | Data |
---|---|---|
209feeb0 H |
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/ | |
4 | ||
5 | pkgname=backtrack-pentest-library | |
6 | _imagename=bt4-final.iso | |
7 | pkgver=4f | |
8 | pkgrel=1 | |
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!' | |
10 | arch=('any') | |
11 | license=('many') | |
12 | url="http://www.remote-exploit.org/backtrack.html" | |
13 | makedepends=() | |
14 | optdepends=( | |
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' | |
25 | ) | |
26 | source=( | |
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}" | |
30 | ) | |
31 | md5sums=( | |
32 | #'7d1eb7f4748759e9735fee1b8a17c1d8' #too slow - uncomment if needed/paranoid ;) | |
33 | ) | |
34 | ||
35 | build() { | |
36 | _destdir='/opt/backtrack' | |
37 | ||
38 | echo | |
39 | echo '==> Building of this package will take a while.' | |
40 | echo '==> So get coffee or something. ;o)' | |
41 | echo | |
42 | ||
43 | echo "==> Creating target directory ${_destdir} in package." | |
44 | mkdir -p ${pkgdir}/${_destdir}/tools | |
45 | ||
46 | cd ${startdir} | |
47 | rm -rf ${startdir}/src/* | |
48 | ||
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 | |
53 | done; | |
54 | ||
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 | |
57 | ||
58 | echo '==> Extracting files from pentest.lzm archive...' | |
59 | echo | |
60 | ./src/lzm2dir ./src/pentest.lzm ${pkgdir}/${_destdir}/ || return 1 | |
61 | echo; echo; | |
62 | ||
63 | rm -rf ./src/pentest.lzm | |
64 | cp ./src/* ${pkgdir}/${_destdir}/tools/ | |
65 | ||
66 | chown root:root ${pkgdir}/${_destdir} | |
67 | chmod -R 655 ${pkgdir}/${_destdir} | |
68 | } | |
69 |