diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7ea2201f..9145fafc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -59,6 +59,7 @@ jobs: - package-peas - package-pkinittools - package-pretender + - package-prox-ez - package-pypykatz - package-pywhisker - package-responder @@ -718,6 +719,24 @@ jobs: path: ./pretender/*.pkg.tar.zst retention-days: 1 if-no-files-found: error + package-prox-ez: + runs-on: ubuntu-20.04 + needs: + - build-container + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Build package + run: ./build-package.sh prox-ez + - name: Upload package + uses: actions/upload-artifact@v3 + with: + name: package-prox-ez + path: ./prox-ez/*.pkg.tar.zst + retention-days: 1 + if-no-files-found: error package-pypykatz: runs-on: ubuntu-20.04 needs: diff --git a/prox-ez/PKGBUILD b/prox-ez/PKGBUILD new file mode 100644 index 00000000..6bbc373f --- /dev/null +++ b/prox-ez/PKGBUILD @@ -0,0 +1,30 @@ +pkgname=prox-ez +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}" + 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 + cp ./proxy.py "${pkgdir}/opt/archpkgs/${pkgname}/bin" + 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/proxy.py "\$@" +EOF + chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}" +} + +pkgver() { + cd "${srcdir}/${pkgname}" + echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +}