summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9658242c1892b7911f0cb4e9320e83dbca2c070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Alexandre Bolelli <semeion7@hotmail.com>
# Maintainer: Alexandre Bolelli <semeion7@hotmail.com>

pkgname=handshake-cracker
pkgver=43.c025d98
pkgrel=1
pkgdesc="Handshake capture with aircrack-ng, test with pyrit, crack with john the ripper using self-builted wordlists."
arch=('any')
url='https://github.com/semeion/handshake-cracker'
license=('GPL3')
depends=('aircrack-ng' 'pyrit' 'scapy' 'mdk3' 'xterm' 'ncurses' 'psmisc' 'gawk'
         'coreutils' 'glibc' 'sed' 'gzip' 'bzip2' 'unzip' 'wget' 'sudo' 'less' 'john' 'python2' 'python2-lxml')
makedepends=('git')
source=('git+https://github.com/semeion/handshake-cracker.git')
sha256sums=('SKIP') # use 'updpkgsums' if you want

pkgver() {
  cd "${srcdir}/${pkgname}"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package()
{
    cd "${srcdir}/${pkgname}"

    # Install script
    install -D -m755 crack "${pkgdir}/usr/bin/crack"
    install -D -m755 crawler-dicionarioinformal "${pkgdir}/usr/bin/crawler-dicionarioinformal"
    install -D -m755 crawler-dictionary "${pkgdir}/usr/bin/crawler-dictionary"
    install -D -m755 handshake "${pkgdir}/usr/bin/handshake"
    install -D -m755 wordlist "${pkgdir}/usr/bin/wordlist"

    # Install john config with custom rules
    install -D -m644 john.conf.custom "${pkgdir}/etc/john/john.conf.custom"
}