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

bbot: add package #4382

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 7 additions & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ansible-runner
baddns
cloudcheck
python-radixtarget
python-wordninja
xmltojson
bbot
50 changes: 50 additions & 0 deletions packages/ansible-runner/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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
}

52 changes: 52 additions & 0 deletions packages/baddns/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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
}

49 changes: 49 additions & 0 deletions packages/bbot/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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')
makedepends=('git' 'python-pip' 'python-virtualenv')
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)"
)
}

package() {
cd $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"

pip install --upgrade pip
pip install .

deactivate

install -Dm 755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<EOF
#!/bin/bash
source /usr/share/$pkgname/venv/bin/activate
exec python -m $pkgname.cli "\$@"
EOF
}

51 changes: 51 additions & 0 deletions packages/cloudcheck/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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
}

51 changes: 51 additions & 0 deletions packages/python-radixtarget/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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
}

51 changes: 51 additions & 0 deletions packages/python-wordninja/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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
}

50 changes: 50 additions & 0 deletions packages/xmltojson/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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
}