Skip to content

dhcpig: python3 support #4544

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

Merged
merged 3 commits into from
Jun 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lists/python2-tools
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ detect-sniffer
device-pharmer
dff
dga-detection
dhcpig
disitool
dnmap
dns2geoip
Expand Down
1 change: 1 addition & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dhcpig
19 changes: 9 additions & 10 deletions packages/dhcpig/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,27 @@

pkgname=dhcpig
pkgver=113.a140c62
pkgrel=1
pkgrel=2
epoch=2
pkgdesc='Enhanced DHCPv4 and DHCPv6 exhaustion and fuzzing script written in python using scapy network library.'
groups=('blackarch' 'blackarch-scanner' 'blackarch-fuzzer' 'blackarch-dos')
url='https://github.com/kamorin/DHCPig'
license=('GPL2')
license=('GPL-2.0-or-later')
arch=('any')
depends=('python2' 'python2-scapy')
depends=('python' 'python-scapy' 'libpcap')
makedepends=('git')
source=("$pkgname::git+https://github.com/kamorin/DHCPig.git")
sha512sums=('SKIP')

pkgver() {
cd $pkgname

echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare() {
cd $pkgname

sed -i 's/python/python2/' pig.py
( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null |
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
)
}

package() {
Expand Down
Loading