diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c843d819..8b0f3150 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -56,6 +56,7 @@ jobs: - package-iker - package-impacket-stable - package-impacket-unstable + - package-katana - package-krbrelayx - package-lapsdumper - package-ldap-shell @@ -83,11 +84,13 @@ jobs: - package-roadtools - package-roadtools-hybrid - package-sccmhunter + - package-sccmsecrets - package-scrying - package-servicedetector - package-shortscan - package-shuffledns - package-sliver + - package-smbclient-ng - package-spk - package-subfinder - package-tlsx @@ -661,6 +664,22 @@ jobs: path: ./impacket-unstable/*.pkg.tar.zst retention-days: 1 if-no-files-found: error + package-katana: + runs-on: ubuntu-24.04 + needs: + - build-container + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build package + run: ./build-package.sh katana + - name: Upload package + uses: actions/upload-artifact@v4 + with: + name: package-katana + path: ./katana/*.pkg.tar.zst + retention-days: 1 + if-no-files-found: error package-krbrelayx: runs-on: ubuntu-24.04 needs: @@ -1093,6 +1112,22 @@ jobs: path: ./sccmhunter/*.pkg.tar.zst retention-days: 1 if-no-files-found: error + package-sccmsecrets: + runs-on: ubuntu-24.04 + needs: + - build-container + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build package + run: ./build-package.sh sccmsecrets + - name: Upload package + uses: actions/upload-artifact@v4 + with: + name: package-sccmsecrets + path: ./sccmsecrets/*.pkg.tar.zst + retention-days: 1 + if-no-files-found: error package-scrying: runs-on: ubuntu-24.04 needs: @@ -1173,6 +1208,22 @@ jobs: path: ./sliver/*.pkg.tar.zst retention-days: 1 if-no-files-found: error + package-smbclient-ng: + runs-on: ubuntu-24.04 + needs: + - build-container + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build package + run: ./build-package.sh smbclient-ng + - name: Upload package + uses: actions/upload-artifact@v4 + with: + name: package-smbclient-ng + path: ./smbclient-ng/*.pkg.tar.zst + retention-days: 1 + if-no-files-found: error package-spk: runs-on: ubuntu-24.04 needs: diff --git a/katana/PKGBUILD b/katana/PKGBUILD new file mode 100644 index 00000000..7e317063 --- /dev/null +++ b/katana/PKGBUILD @@ -0,0 +1,26 @@ +pkgname=katana +pkgver=latest +pkgrel=1 +url="https://github.com/projectdiscovery/${pkgname}.git" +arch=(any) +license=(MIT) +makedepends=(git go) +source=("git+${url}") +sha256sums=(SKIP) + +build() { + cd "${srcdir}/${pkgname}/cmd/katana" + go mod tidy + go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags '-s -w' -o "${pkgname}" . +} + +package() { + cd "${srcdir}/${pkgname}" + mkdir -p "${pkgdir}/opt/archpkgs/bin" + install -Dm 755 "./cmd/katana/${pkgname}" "${pkgdir}/opt/archpkgs/bin/${pkgname}" +} + +pkgver() { + cd "${srcdir}/${pkgname}" + echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} diff --git a/sccmhunter/PKGBUILD b/sccmhunter/PKGBUILD index 7832b287..6d078680 100644 --- a/sccmhunter/PKGBUILD +++ b/sccmhunter/PKGBUILD @@ -1,7 +1,7 @@ pkgname=sccmhunter pkgver=latest pkgrel=1 -url="https://github.com//garrettfoster13/${pkgname}.git" +url="https://github.com/garrettfoster13/${pkgname}.git" arch=(any) license=(MIT) depends=(python) diff --git a/sccmsecrets/PKGBUILD b/sccmsecrets/PKGBUILD new file mode 100644 index 00000000..94b8c06c --- /dev/null +++ b/sccmsecrets/PKGBUILD @@ -0,0 +1,30 @@ +pkgname=sccmsecrets +pkgver=latest +pkgrel=1 +url="https://github.com/synacktiv/${pkgname}.git" +arch=(any) +license=(unknown) +depends=(python) +source=("git+${url}") +sha256sums=(SKIP) + +package() { + cd "${srcdir}/${pkgname}" + mkdir -p "${pkgdir}"/opt/archpkgs/bin "${pkgdir}/opt/archpkgs/${pkgname}" + python -m venv "${pkgdir}/opt/archpkgs/${pkgname}" + cp -r ./*.py ./utils/ "${pkgdir}/opt/archpkgs/${pkgname}/" + declare -x VIRTUAL_ENV="${pkgdir}/opt/archpkgs/${pkgname}" PYTHONPATH="${pkgdir}/opt/archpkgs/${pkgname}" PATH="${pkgdir}/opt/archpkgs/${pkgname}/bin:$PATH" + pip install -r ./requirements.txt + cat << EOF > "${pkgdir}/opt/archpkgs/bin/${pkgname}" +#!/bin/sh +set -eu +export VIRTUAL_ENV=/opt/archpkgs/${pkgname} PYTHONPATH=/opt/archpkgs/${pkgname} PATH="/opt/archpkgs/${pkgname}/bin:\$PATH" +exec python /opt/archpkgs/${pkgname}/SCCMSecrets.py "\$@" +EOF + chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}" +} + +pkgver() { + cd "${srcdir}/${pkgname}" + echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} diff --git a/smbclient-ng/PKGBUILD b/smbclient-ng/PKGBUILD new file mode 100644 index 00000000..8df5579d --- /dev/null +++ b/smbclient-ng/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=smbclient-ng +pkgver=latest +pkgrel=1 +url="https://github.com/p0dalirius/${pkgname}.git" +arch=(any) +license=(GPL3) +depends=(python) +source=("git+${url}") +sha256sums=(SKIP) + +package() { + cd "${srcdir}/${pkgname}" + mkdir -p "${pkgdir}"/opt/archpkgs/bin "${pkgdir}/opt/archpkgs/${pkgname}" + python -m venv "${pkgdir}/opt/archpkgs/${pkgname}" + declare -x VIRTUAL_ENV="${pkgdir}/opt/archpkgs/${pkgname}" PYTHONPATH="${pkgdir}/opt/archpkgs/${pkgname}" PATH="${pkgdir}/opt/archpkgs/${pkgname}/bin:$PATH" + pip install . + cat << EOF > "${pkgdir}/opt/archpkgs/bin/${pkgname}" +#!/bin/sh +set -eu +export VIRTUAL_ENV=/opt/archpkgs/${pkgname} PYTHONPATH=/opt/archpkgs/${pkgname} PATH="/opt/archpkgs/${pkgname}/bin:\$PATH" +exec python /opt/archpkgs/${pkgname}/bin/smbclientng "\$@" +EOF + chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}" +} + +pkgver() { + cd "${srcdir}/${pkgname}" + echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +}