From 1fab33d834077d5b46ff43a254437b9204324ccf Mon Sep 17 00:00:00 2001 From: Antonio Date: Sun, 24 Nov 2024 23:19:06 +0100 Subject: [PATCH 1/5] bbot: add package --- lists/to-release | 7 ++++ packages/ansible-runner/PKGBUILD | 50 +++++++++++++++++++++++ packages/baddns/PKGBUILD | 52 ++++++++++++++++++++++++ packages/bbot/PKGBUILD | 59 ++++++++++++++++++++++++++++ packages/cloudcheck/PKGBUILD | 51 ++++++++++++++++++++++++ packages/python-radixtarget/PKGBUILD | 51 ++++++++++++++++++++++++ packages/python-wordninja/PKGBUILD | 51 ++++++++++++++++++++++++ packages/xmltojson/PKGBUILD | 50 +++++++++++++++++++++++ 8 files changed, 371 insertions(+) create mode 100644 packages/ansible-runner/PKGBUILD create mode 100644 packages/baddns/PKGBUILD create mode 100644 packages/bbot/PKGBUILD create mode 100644 packages/cloudcheck/PKGBUILD create mode 100644 packages/python-radixtarget/PKGBUILD create mode 100644 packages/python-wordninja/PKGBUILD create mode 100644 packages/xmltojson/PKGBUILD diff --git a/lists/to-release b/lists/to-release index e69de29bb2d..8bd458c3e21 100644 --- a/lists/to-release +++ b/lists/to-release @@ -0,0 +1,7 @@ +ansible-runner +baddns +cloudcheck +python-radixtarget +python-wordninja +xmltojson +bbot \ No newline at end of file diff --git a/packages/ansible-runner/PKGBUILD b/packages/ansible-runner/PKGBUILD new file mode 100644 index 00000000000..ac7b2e582df --- /dev/null +++ b/packages/ansible-runner/PKGBUILD @@ -0,0 +1,50 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=ansible-runner +pkgver=2.4.0.r14.g9e0eac5 +pkgrel=1 +pkgdesc='A tool and Python library that helps when interfacing with Ansible directly.' +arch=('any') +url='https://github.com/ansible/ansible-runner' +license=('Apache-2.0') +depends=('python' 'python-psutil' 'python-pexpect' 'python-daemon' + 'python-yaml' 'python-six') +makedepends=('git' 'python-build' 'python-pip') +source=("git+https://github.com/ansible/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( 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)" + ) +} + +build() { + cd $pkgname + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $pkgname + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + $pkgname +} + diff --git a/packages/baddns/PKGBUILD b/packages/baddns/PKGBUILD new file mode 100644 index 00000000000..8e1db3c4f25 --- /dev/null +++ b/packages/baddns/PKGBUILD @@ -0,0 +1,52 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=baddns +pkgver=v1.4.13.r0.g0c8d6e9 +pkgrel=1 +pkgdesc='Check subdomains for subdomain takeovers and other DNS tomfoolery.' +arch=('any') +groups=('blackarch' 'blackarch-recon') +url='https://github.com/blacklanternsecurity/baddns' +license=('GPL-3.0-or-later') +depends=('python' 'python-colorama' 'python-dateutil' 'python-dnspython' + 'python-httpx' 'python-tldextract' 'python-whois' + 'python-yaml') +makedepends=('git' 'python-build' 'python-pip') +source=("git+https://github.com/blacklanternsecurity/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( 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)" + ) +} + +build() { + cd $pkgname + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $pkgname + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + $pkgname +} + diff --git a/packages/bbot/PKGBUILD b/packages/bbot/PKGBUILD new file mode 100644 index 00000000000..07af8c96d22 --- /dev/null +++ b/packages/bbot/PKGBUILD @@ -0,0 +1,59 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=bbot +pkgver=5246.95d1bc5 +pkgrel=1 +pkgdesc='Multipurpose scanner built to automate your Recon, Bug Bounties, and ASM.' +arch=('any') +groups=('blackarch' 'blackarch-recon') +url='https://github.com/blacklanternsecurity/bbot' +license=('GPL-3.0-or-later') +depends=('python' 'python-ansible' 'python-beautifulsoup4' 'python-cachetools' + 'python-deepdiff' 'python-dnspython' 'python-httpx' 'python-idna' + 'python-jinja' 'python-lxml' 'python-mmh3' 'python-omegaconf' + 'python-psutil' 'python-puremagic' 'python-pycryptodome' + 'python-pydantic' 'python-pyopenssl' 'python-pyjwt' 'python-pyzmq' + 'python-radixtarget' 'python-regex' 'python-setproctitle' + 'python-socksio' 'python-tabulate' 'python-tldextract' + 'python-unidecode' 'python-websockets' 'python-wordninja' + 'python-yara-python-dex' 'ansible-runner' 'baddns' 'cloudcheck' + 'xmltojson') +makedepends=('git' 'python-build' 'python-pip') +source=("git+https://github.com/blacklanternsecurity/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( 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)" + ) +} + +build() { + cd $pkgname + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $pkgname + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + $pkgname +} + diff --git a/packages/cloudcheck/PKGBUILD b/packages/cloudcheck/PKGBUILD new file mode 100644 index 00000000000..325eab491bf --- /dev/null +++ b/packages/cloudcheck/PKGBUILD @@ -0,0 +1,51 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=cloudcheck +pkgver=670.f8f54ce +pkgrel=1 +pkgdesc='Check whether an IP address or hostname belongs to popular cloud providers.' +arch=('any') +groups=('blackarch' 'blackarch-recon') +url='https://github.com/blacklanternsecurity/cloudcheck' +license=('GPL-3.0-or-later') +depends=('python' 'python-httpx' 'python-pydantic' 'python-radixtarget' + 'python-regex') +makedepends=('git' 'python-build' 'python-pip') +source=("git+https://github.com/blacklanternsecurity/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( 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)" + ) +} + +build() { + cd $pkgname + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $pkgname + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + $pkgname +} + diff --git a/packages/python-radixtarget/PKGBUILD b/packages/python-radixtarget/PKGBUILD new file mode 100644 index 00000000000..39952fc74bf --- /dev/null +++ b/packages/python-radixtarget/PKGBUILD @@ -0,0 +1,51 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-radixtarget +_pkgname=${pkgname#python-} +pkgver=50.34d0585 +pkgrel=1 +pkgdesc='Performant radix implementation designed for quick lookups of IP addresses/networks and DNS hostnames.' +arch=('any') +groups=('blackarch' 'blackarch-recon') +url='https://github.com/blacklanternsecurity/radixtarget' +license=('GPL-3.0-or-later') +depends=('python') +makedepends=('git' 'python-build' 'python-pip') +source=("git+https://github.com/blacklanternsecurity/$_pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $_pkgname + + ( 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)" + ) +} + +build() { + cd $_pkgname + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $_pkgname + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + $_pkgname +} + diff --git a/packages/python-wordninja/PKGBUILD b/packages/python-wordninja/PKGBUILD new file mode 100644 index 00000000000..537fe14fcdd --- /dev/null +++ b/packages/python-wordninja/PKGBUILD @@ -0,0 +1,51 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-wordninja +_pkgname=${pkgname#python-} +pkgver=19.0421d14 +pkgrel=1 +pkgdesc='Probabilistically split concatenated words using NLP based on English Wikipedia unigram frequencies.' +arch=('any') +groups=('blackarch' 'blackarch-misc') +url='https://github.com/keredson/wordninja' +license=('MIT') +depends=('python') +makedepends=('git' 'python-build' 'python-pip') +source=("git+https://github.com/keredson/$_pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $_pkgname + + ( 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)" + ) +} + +build() { + cd $_pkgname + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $_pkgname + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + $_pkgname +} + diff --git a/packages/xmltojson/PKGBUILD b/packages/xmltojson/PKGBUILD new file mode 100644 index 00000000000..991d4633f56 --- /dev/null +++ b/packages/xmltojson/PKGBUILD @@ -0,0 +1,50 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=xmltojson +pkgver=22.dee0fc7 +pkgrel=1 +pkgdesc='CLI tool and Python module to convert XML to JSON.' +arch=('any') +groups=('blackarch' 'blackarch-misc') +url='https://github.com/shanahanjrs/xmltojson' +license=('Apache-2.0') +depends=('python' 'python-xmltodict') +makedepends=('git' 'python-build' 'python-pip') +source=("git+https://github.com/shanahanjrs/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( 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)" + ) +} + +build() { + cd $pkgname + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $pkgname + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + $pkgname +} + From 0c514be987ea953f725cc8fde5b620dd31016ef5 Mon Sep 17 00:00:00 2001 From: Antonio Date: Tue, 26 Nov 2024 02:22:35 +0100 Subject: [PATCH 2/5] Update PKGBUILD --- packages/bbot/PKGBUILD | 46 ++++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 29 deletions(-) diff --git a/packages/bbot/PKGBUILD b/packages/bbot/PKGBUILD index 07af8c96d22..90ecd1b186b 100644 --- a/packages/bbot/PKGBUILD +++ b/packages/bbot/PKGBUILD @@ -9,17 +9,8 @@ arch=('any') groups=('blackarch' 'blackarch-recon') url='https://github.com/blacklanternsecurity/bbot' license=('GPL-3.0-or-later') -depends=('python' 'python-ansible' 'python-beautifulsoup4' 'python-cachetools' - 'python-deepdiff' 'python-dnspython' 'python-httpx' 'python-idna' - 'python-jinja' 'python-lxml' 'python-mmh3' 'python-omegaconf' - 'python-psutil' 'python-puremagic' 'python-pycryptodome' - 'python-pydantic' 'python-pyopenssl' 'python-pyjwt' 'python-pyzmq' - 'python-radixtarget' 'python-regex' 'python-setproctitle' - 'python-socksio' 'python-tabulate' 'python-tldextract' - 'python-unidecode' 'python-websockets' 'python-wordninja' - 'python-yara-python-dex' 'ansible-runner' 'baddns' 'cloudcheck' - 'xmltojson') -makedepends=('git' 'python-build' 'python-pip') +depends=('python') +makedepends=('git' 'python-virtualenv' 'python-pip') source=("git+https://github.com/blacklanternsecurity/$pkgname.git") sha512sums=('SKIP') @@ -34,26 +25,23 @@ pkgver() { ) } -build() { - cd $pkgname +package() { + cd $pkgname - python -m build --wheel --outdir="$startdir/dist" -} + install -dm755 "$pkgdir/usr/share/$pkgname" -package() { - cd $pkgname + python -m venv "$pkgdir/usr/share/$pkgname/venv" + source "$pkgdir/usr/share/$pkgname/venv/bin/activate" + + pip install --upgrade pip + pip install . + + deactivate - pip install \ - --verbose \ - --disable-pip-version-check \ - --no-warn-script-location \ - --ignore-installed \ - --no-compile \ - --no-deps \ - --root="$pkgdir" \ - --prefix=/usr \ - --no-index \ - --find-links="file://$startdir/dist" \ - $pkgname + install -Dm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" < Date: Tue, 26 Nov 2024 02:23:13 +0100 Subject: [PATCH 3/5] Update PKGBUILD --- packages/bbot/PKGBUILD | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/bbot/PKGBUILD b/packages/bbot/PKGBUILD index 90ecd1b186b..981383ae4cc 100644 --- a/packages/bbot/PKGBUILD +++ b/packages/bbot/PKGBUILD @@ -26,19 +26,19 @@ pkgver() { } package() { - cd $pkgname + cd $pkgname - install -dm755 "$pkgdir/usr/share/$pkgname" + install -dm755 "$pkgdir/usr/share/$pkgname" - python -m venv "$pkgdir/usr/share/$pkgname/venv" - source "$pkgdir/usr/share/$pkgname/venv/bin/activate" + python -m venv "$pkgdir/usr/share/$pkgname/venv" + source "$pkgdir/usr/share/$pkgname/venv/bin/activate" - pip install --upgrade pip - pip install . + pip install --upgrade pip + pip install . - deactivate + deactivate - install -Dm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" < Date: Tue, 26 Nov 2024 02:26:49 +0100 Subject: [PATCH 4/5] Update PKGBUILD --- packages/bbot/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bbot/PKGBUILD b/packages/bbot/PKGBUILD index 981383ae4cc..27950392655 100644 --- a/packages/bbot/PKGBUILD +++ b/packages/bbot/PKGBUILD @@ -10,7 +10,7 @@ groups=('blackarch' 'blackarch-recon') url='https://github.com/blacklanternsecurity/bbot' license=('GPL-3.0-or-later') depends=('python') -makedepends=('git' 'python-virtualenv' 'python-pip') +makedepends=('git' 'python-pip' 'python-virtualenv') source=("git+https://github.com/blacklanternsecurity/$pkgname.git") sha512sums=('SKIP') From d61c0ebdee628b4b211d40d2cf6f29008766d024 Mon Sep 17 00:00:00 2001 From: Antonio Date: Tue, 26 Nov 2024 02:32:00 +0100 Subject: [PATCH 5/5] Update PKGBUILD --- packages/bbot/PKGBUILD | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/bbot/PKGBUILD b/packages/bbot/PKGBUILD index 27950392655..89e37103c2b 100644 --- a/packages/bbot/PKGBUILD +++ b/packages/bbot/PKGBUILD @@ -28,7 +28,9 @@ pkgver() { package() { cd $pkgname - install -dm755 "$pkgdir/usr/share/$pkgname" + install -dm 755 "$pkgdir/usr/share/$pkgname" + + install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md docs/*.md python -m venv "$pkgdir/usr/share/$pkgname/venv" source "$pkgdir/usr/share/$pkgname/venv/bin/activate" @@ -38,7 +40,7 @@ package() { deactivate - install -Dm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <