Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PKGBUILD #217

Open
fabpiaf opened this issue Sep 3, 2024 · 1 comment
Open

PKGBUILD #217

fabpiaf opened this issue Sep 3, 2024 · 1 comment

Comments

@fabpiaf
Copy link

fabpiaf commented Sep 3, 2024

Since it is missing in AUR (no git-version) - maybe you want to add it here?

pkgname=patator-git
_pkgname=${pkgname%-git}
pkgver=r223.20e800a
pkgrel=1
pkgdesc="A multi-purpose bruteforcer"
arch=(any)
url="https://github.com/lanjelot/patator"
license=(GPL-2.0-only)
depends=(
  python
  python-dnspython
  python-pyasn1
  python-pyopenssl
)
optdepends=(
  'impacket: SMB'
  'java-runtime: keystore files'
  'openldap: LDAP'
  'python-crypto: VNC'
  'python-ipy: NETx keywords'
  'python-mysqlclient: MySQL'
  'python-paramiko: SSH'
  'python-psycopg2: PostgreSQL'
  'python-pycurl: HTTP'
  'python-pysnmp: SNMP'
  'unzip: zip archives'
)
conflicts=(
  patator
)
source=("git+https://github.com/lanjelot/patator.git")
sha256sums=('SKIP')
pkgver() {
    cd "$srcdir/$_reponame"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -Dm755 "$srcdir/$_pkgname/$_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
}
@lanjelot
Copy link
Owner

sorry what do you need?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants