Skip to content

Commit

Permalink
Fix tools
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r committed Jan 18, 2025
1 parent 7548707 commit df1cbbf
Show file tree
Hide file tree
Showing 22 changed files with 240 additions and 165 deletions.
77 changes: 0 additions & 77 deletions packages/archive/python2/gconf/PKGBUILD

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See COPYING for license details.

pkgname=python-canari
_pkgname=${pkgbase#python-}
_pkgname=${pkgname#python-}
pkgver=3.3.10
pkgrel=6
groups=('athena' 'athena-forensic' 'athena-recon' 'athena-scanner')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,28 @@
# See COPYING for license details.

pkgname=python-safedexml
_pkgname=safedexml
_pkgname=${pkgname#python-}
pkgver=0.5.1
pkgrel=7
pkgdesc='A defusedxml version of dead-simple Object-XML mapper for Python.'
arch=('any')
url='https://pypi.org/project/safedexml/#files'
license=('MIT')
makedepends=('python-setuptools')
depends=('python' 'python-defusedxml')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('3e9ebef0044d3319aae98a71cdb9790639c8eaadd9bd0775aa95c4bf56daaa1bd79614ee1600a347f757365ef447ce973e0b4e596a3d500b9c148a94efb0ee0a')

build() {
cd "$_pkgname-$pkgver"

python setup.py build
}

package_python2-safedexml() {
depends=('python2' 'python2-defusedxml')


python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
--skip-build
python -m build --wheel --no-isolation
}

package() {
depends=('python' 'python-defusedxml')

cd "$_pkgname-$pkgver"

python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
--skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
}

File renamed without changes.
25 changes: 8 additions & 17 deletions packages/libs/python/python-requests-futures/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,28 @@
# See COPYING for license details.

pkgname=python-requests-futures
_pkgname=requests-futures
pkgver=1.0.1
_pkgname=requests_futures
pkgver=1.0.2
pkgrel=1
pkgdesc='Asynchronous Python HTTP for Humans.'
arch=('any')
url='https://pypi.org/project/requests-futures/#files'
license=('Apache-2.0')
makedepends=('python-setuptools')
depends=('python' 'python-certifi' 'python-charset-normalizer' 'python-idna' 'python-requests' 'python-urllib3')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('e95c2ae8a97f314a6f2ec02ab1d4b456cd673599dea9cf4abd9f2c601ea7ea4b48a6595d4b52bd5c717cfcbbb378be8789d6f63dfb58fb2aa4778db408521730')
sha512sums=('1d163ffe45a09e0160710cf8bd060f741a524e60d69318af7c03a3b5dc41f27f4f7d115faed227bb710b29ffdb230a7ef5991e33ab2ad4e25b3c52727ef76fc7')

build() {
cd "$_pkgname-$pkgver"

python setup.py build
}

package_python2-requests-futures() {
depends=('python2' 'python2-requests' 'python2-futures')


python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
--skip-build
python -m build --wheel --no-isolation
}

package() {
depends=('python' 'python-requests' 'python2-futures')

cd "$_pkgname-$pkgver"

python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
--skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
}

10 changes: 5 additions & 5 deletions packages/os-specific/roles/athena-dos-role/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ pkgrel=2
pkgdesc="DoS Attacker Role tools."
arch=('any')
license=("custom")
depends=('blacknurse' 'davoset' 'ddosify' 'dhcpig' 'dnsdrdos' 'fhttp'
'goldeneye' 'habu' 'httpbog' 'hulk' 'iaxflood' 'impulse' 'inviteflood'
'nkiller2' 'ntpdos' 'phpstress' 'pwnloris' 'slowloris' 'slowloris-py'
'synflood' 'synner' 't50' 'tcgetkey' 'thc-ssl-dos' 'torshammer'
'ufonet' 'wifi-pumpkin' 'wreckuests')
depends=('blacknurse' 'davoset' 'ddosify' 'dnsdrdos' 'fhttp' 'goldeneye'
'habu' 'httpbog' 'hulk' 'iaxflood' 'impulse' 'inviteflood' 'nkiller2'
'ntpdos' 'phpstress' 'pwnloris' 'slowloris' 'slowloris-py' 'synflood'
'synner' 't50' 'tcgetkey' 'thc-ssl-dos' 'ufonet' 'wifi-pumpkin'
'wreckuests')
2 changes: 1 addition & 1 deletion packages/os-specific/roles/athena-redteamer-role/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ pkgdesc="Red Teamer Role tools."
arch=('any')
license=("custom")
depends=('athena-cracker' 'athena-database' 'athena-debugger'
'athena-decompiler' 'athena-exploitation athena-fuzzer'
'athena-decompiler' 'athena-exploitation' 'athena-fuzzer'
'athena-networking' 'athena-recon' 'athena-scanner' 'athena-sniffer'
'athena-spoof' 'athena-webapp' 'athena-windows')
9 changes: 4 additions & 5 deletions packages/pentesting/caido-cli/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Credits Athena OS ( https://athenaos.org/ )

pkgname=caido-cli
pkgver=0.44.1
pkgver=0.45.1
pkgrel=1
groups=('athena' 'athena-webapp' 'athena-proxy' 'athena-scanner' 'athena-fuzzer')
pkgdesc="A lightweight web security auditing toolkit."
pkgdesc='A lightweight web security auditing toolkit.'
arch=('x86_64' 'aarch64' 'armv7h')
url="https://caido.io/"
url='https://caido.io/'
license=('private')
depends=(gcc-libs glibc)
conflicts=('caido-desktop')
depends=('gcc-libs' 'glibc')
source_x86_64=("$pkgname-$pkgver-x86_64.tar.gz::https://caido.download/releases/v${pkgver}/caido-cli-v${pkgver}-linux-x86_64.tar.gz")
source_aarch64=("$pkgname-$pkgver-aarch64.tar.gz::https://caido.download/releases/v${pkgver}/caido-cli-v${pkgver}-linux-aarch64.tar.gz")
sha512sums_x86_64=('c8cda43b296e13eab7e24ab3692584f9f99f75c5651daa15c2dd56efd333fece2f13c3f2c3184fa62cd2bed47e77a8c9cd43058fb5154ea8c719e77ab5ae7a31')
Expand Down
10 changes: 5 additions & 5 deletions packages/pentesting/caido-desktop/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# AUR ( https://aur.archlinux.org/ )

pkgname=caido-desktop
pkgver=0.44.1
pkgver=0.45.1
pkgrel=1
groups=('athena' 'athena-webapp' 'athena-proxy' 'athena-scanner' 'athena-fuzzer')
pkgdesc="A lightweight web security auditing toolkit."
pkgdesc='A lightweight web security auditing toolkit.'
arch=('x86_64')
url="https://caido.io/"
url='https://caido.io/'
license=('private')
depends=(glibc gcc-libs)
depends=('glibc' 'gcc-libs')
provides=(caido)
source=("https://caido.download/releases/v${pkgver}/caido-desktop-v${pkgver}-linux-x86_64.AppImage")
sha512sums=('d69621bdf526a8260d89c9ad5eec51052d23f898bec35c7cc455864879569e5297b343d6ff9ee1742779d661854276b33243d298dc737e56065e8bc4b5f4466b')
sha512sums=('cc83eaf715658163142c952b1c6215a70a7c99c4e4d9561051e9e6ad2e04db1cb9a47370552dcff23b69df6e3a5cbd89e04a1b6d8807e1c6c4914a82bde8527e')

prepare() {
chmod +x *.AppImage
Expand Down
54 changes: 15 additions & 39 deletions packages/pentesting/frida-tools/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,57 +1,33 @@
# Credits BlackArch ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgbase=frida-tools
pkgname=('python2-frida-tools' 'python-frida-tools')
_pkgname=frida-tools
pkgver=11.0.0
pkgrel=2
pkgname=python-frida-tools
_pkgname=${pkgname#python-}
pkgver=13.6.1
pkgrel=1
pkgdesc='Frida CLI tools.'
groups=('athena' 'athena-mobile' 'athena-binary' 'athena-reversing')
arch=('any')
url='https://pypi.org/project/frida-tools/#files'
license=('custom:unknown')
makedepends=('python2-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$pkgbase-$pkgver.tar.gz"
depends=('python' 'python-frida' 'python-colorama' 'python-prompt_toolkit'
'python-pygments' 'libimobiledevice')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
'setup.py.patch')
sha512sums=('31ed33ea0a652f9f7c0055c1770663bbace60ef9e15446ddc71719878fee78b1907b63b7ca12527972a41f2021d770c77a4cc52ee8ed88c4c53a089f15298527'
sha512sums=('551dbbdf5d2e7dbf2df69242ff6c5a47e1db5f887136d345bec69a7f5e28cf794b319d5be7b39ebe4ab2a234bbbe859bf6b9f38f7374003faa3df029584304e9'
'48dc1d48f21e0d5672b7b628aca40c2431687608c4e228fbace9c88172b13103814af6ef9abebb4539fafa5700787b9af2c86b0c3b7988c805711db7458186e4')

prepare() {
#patch -p1 < setup.py.patch

cp -a "$pkgbase-$pkgver"{,-2}
}

build() {
cd "$pkgbase-$pkgver-2"
cd "$_pkgname-$pkgver"

python2 setup.py build

cd "$srcdir/$pkgbase-$pkgver"

python setup.py build
python -m build --wheel --no-isolation
}

package_python2-frida-tools() {
depends=('python2' 'python2-frida' 'python2-colorama' 'python2-prompt_toolkit'
'python2-pygments' 'libimobiledevice')

cd "$pkgbase-$pkgver-2"

python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

for i in "$pkgdir/usr/bin/"* ; do
mv $i "${i}2"
done
}

package_python-frida-tools() {
depends=('python' 'python-frida' 'python-colorama' 'python-prompt_toolkit'
'python-pygments' 'libimobiledevice')

cd "$pkgbase-$pkgver"
package() {
cd "$_pkgname-$pkgver"

python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
}

82 changes: 82 additions & 0 deletions packages/pentesting/gconf/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Maintainer: João Figueiredo <[email protected]>
# Contributor: Jan de Groot <[email protected]>

pkgname=gconf
pkgver=3.2.6+11+g07808097
pkgrel=11
pkgdesc='An obsolete configuration database system'
url='https://projects-old.gnome.org/gconf/'
arch=($CARCH)
license=('LGPL')
depends=('libxml2' 'polkit' 'libldap' 'dbus-glib' 'python')
makedepends=('git' 'intltool' 'gtk-doc' 'gobject-introspection' 'gnome-common' 'glib2-devel')
install=gconf.install
_commit=0780809731c8ab1c364202b1900d3df106b28626 # The latest and last commit, dug out from deep within the waves of time...
source=("git+https://gitlab.gnome.org/Archive/gconf.git#commit=$_commit"
"01_xml-gettext-domain.patch"
"gconf-reload.patch"
"gconf-merge-schema"
"gconfpkg"
"gconf-install.hook"
"gconf-remove.hook"
"gsettings-schema-convert.patch")
sha512sums=('1b7c0263581710f5bbe6155938b37e1bc42eb79a91e84caae3df5c3bee9adbe5225401873fc11d86f73102590d11394384b8a295e8cac613d576152009bb3e79'
'08c2bb7872816ec8a272bf393793167b2e2a285ede419f1385380bda34b55cdb08f9d5599714960407ad3549f1b03590ca39b3511ba33eec5aeea33d37521b5f'
'1af1d0c926d622794b5d2f21646783c276a8a5c2c6d8b8236804bfcaeb71ab40c6658b17eb4599ca01fb8fe33a513ebe7ec9e8c23e9a21ccae622f6d10aa5657'
'0d2a099c772c9fbe535b6c5c35078038987d214a2b68f2d589f46b8bf4e5a8c604624363cd32747b6447d04037d2fb0870502982425629af25ac3ef8ebb2cde4'
'c1a180fdbd88415f4d0277919bdd3af8c1003e44f81a6ab7f7c341a4065f9e01e320e639177ad93d53463ceecb7f1331171980edabcebdc10998d7f16c490494'
'b4c8f1a3dbb9edf6fde6e129a5673f4e47193fd77e4bdf669f1737e127e3aff9154ad3808780b9a983f6b2e43ff0c60a212b749d7190684b2a02cb0a4ac7dfc4'
'563ac014f398022ae00d1bad9518a5c3387deb4794ac12e9e88ca3b66f51d65573fd7f7737be5e0444916473c5cf47cc70b74292c3fcf3f812411a57f25af8f9'
'1ac33a89aa163e9e72ea88deb1afe2914f18430bda39e290815469bf86d7c516271df102d10b787b2736fb078b6ac26d06fe7de00473ebd1e6f6219cc1688477')

prepare() {
cd $pkgname

# Patch from fedora - reloads gconf after installing schemas
patch -Np1 -i ../gconf-reload.patch

# http://bugzilla.gnome.org/show_bug.cgi?id=568845
patch -Np1 -i ../01_xml-gettext-domain.patch

# The following line copied from Fedora
# https://src.fedoraproject.org/rpms/GConf2/blob/70ed26d67b563d858a84505622d11f41879a6b37/f/GConf2.spec#_90
#2to3-2.7 --write --nobackup gsettings/gsettings-schema-convert
patch -Np1 -i ../gsettings-schema-convert.patch

sed -i '1s|#!/usr/bin/env python$|#!/usr/bin/python|' gsettings/gsettings-schema-convert

NOCONFIGURE=1 ./autogen.sh
}

build() {
cd $pkgname
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib \
--enable-defaults-service \
--disable-gtk-doc \
--disable-static \
--disable-orbit
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}

check() {
cd $pkgname
make check
}

package() {
DESTDIR="$pkgdir" make -C $pkgname install

install -d "$pkgdir/etc/gconf/gconf.xml.system"
install -D gconf-merge-schema gconfpkg -t "$pkgdir/usr/bin"
install -Dm644 ./*.hook -t "$pkgdir/usr/share/libalpm/hooks"

# fix dbus policy location - --with-dbusdir doesn't work
install -Dm644 "$pkgdir/etc/dbus-1/system.d/org.gnome.GConf.Defaults.conf" -t "$pkgdir/usr/share/dbus-1/system.d"
rm -rf "$pkgdir/etc/dbus-1/"
}

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit df1cbbf

Please sign in to comment.