summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61eaad88cdb49147724f72189697480e7044b288 (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
# Maintainer : lsf <lsf@lsf>

pkgname=wifite2-git
pkgver=r379.d8a6628
pkgrel=1
pkgdesc="A tool to attack multiple WEP and WPA encrypted networks at the same time"
arch=(any)
url="https://github.com/kimocoder/wifite2"
license=('GPL')
depends=(python aircrack-ng wireless_tools net-tools wireshark-cli)
optdepends=(macchanger reaver bully
            cowpatty pyrit hcxdumptool hcxtools john hashcat)
makedepends=(git)
source=($pkgname::git+https://github.com/kimocoder/wifite2.git)

sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  mkdir -p ${pkgdir}/usr/bin
  mkdir -p ${pkgdir}/usr/share/wifite2
  install -D -m755 ${pkgname}/Wifite.py ${pkgdir}/usr/share/wifite2/Wifite.py
  cp -r $pkgname/wifite ${pkgdir}/usr/share/wifite2/wifite

  cat > "$pkgdir/usr/bin/wifite2" << EOF
#!/bin/sh
exec python /usr/share/wifite2/Wifite.py "\${@}"
EOF

chmod a+x "$pkgdir/usr/bin/wifite2"
}