summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c04d63caafc12baa18421c7cf055d2ffeb85ad4a (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: Antoine Lubineau <antoine@lubignon.info>

pkgname=patator
pkgver=0.9
pkgrel=1
pkgdesc="A multi-purpose bruteforcer"
arch=('any')
url="https://github.com/lanjelot/patator"
license=('GPL2')
depends=('python2')
optdepends=(
  'python2-paramiko: SSH'
  'python2-pycurl: HTTP'
  'openldap: LDAP'
  'impacket: SMB'
  'mysql-python: MySQL'
  'python2-psycopg2: PostgreSQL'
  'python2-crypto: VNC'
  'python2-pydns: DNS'
  'python2-pysnmp: SNMP'
  'python2-ipy: NETx keywords'
  'java-runtime: keystore files'
  'unzip: zip archives'
)
source=("https://github.com/lanjelot/patator/archive/$pkgver.tar.gz")
sha256sums=('dfec3106e3bbab15b83135e17728e8dbb325f2697875364d99abc2ebba15fd5a')

build() {
  sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|g' -i "$srcdir/${pkgname}-$pkgver/${pkgname}.py"
}

package() {
  install -D -m 0755 "$srcdir/${pkgname}-$pkgver/${pkgname}.py" "$pkgdir/usr/bin/patator"

  _modules=(
    'ftp_login'
    'ssh_login'
    'telnet_login'
    'smtp_login'
    'smtp_vrfy'
    'smtp_rcpt'
    'finger_lookup'
    'http_fuzz'
    'pop_login'
    'pop_passd'
    'imap_login'
    'ldap_login'
    'smb_login'
    'smb_lookupsid'
    'vmauthd_login'
    'mssql_login'
    'oracle_login'
    'mysql_login'
    'pgsql_login'
    'vnc_login'
    'dns_forward'
    'dns_reverse'
    'snmp_login'
    'unzip_pass'
    'keystore_pass'
  )
  for module in ${_modules[@]}; do
    ln -s /usr/bin/patator "$pkgdir/usr/bin/$module"
  done
}

# vim:set ts=2 sw=2 et: