From c45d12eb8d9520c7a9ff935577467cba09b10c86 Mon Sep 17 00:00:00 2001 From: dadevel Date: Mon, 27 Nov 2023 16:12:37 +0100 Subject: [PATCH] replace crackmapexec with netexec --- .github/workflows/ci.yaml | 38 +++++++++++++++--------------- {crackmapexec => netexec}/PKGBUILD | 6 ++--- 2 files changed, 22 insertions(+), 22 deletions(-) rename {crackmapexec => netexec}/PKGBUILD (88%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1247f7c8..a7f09f13 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,7 +34,6 @@ jobs: - package-certipy - package-certipy-bloodhound - package-coercer - - package-crackmapexec - package-dnsx - package-donpapi - package-evil-winrm @@ -57,6 +56,7 @@ jobs: - package-mitm6 - package-msldap - package-name-that-hash + - package-netexec - package-nuclei - package-peas - package-pkinittools @@ -272,24 +272,6 @@ jobs: path: ./coercer/*.pkg.tar.zst retention-days: 1 if-no-files-found: error - package-crackmapexec: - 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 crackmapexec - - name: Upload package - uses: actions/upload-artifact@v3 - with: - name: package-crackmapexec - path: ./crackmapexec/*.pkg.tar.zst - retention-days: 1 - if-no-files-found: error package-dnsx: runs-on: ubuntu-20.04 needs: @@ -686,6 +668,24 @@ jobs: path: ./name-that-hash/*.pkg.tar.zst retention-days: 1 if-no-files-found: error + package-netexec: + 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 netexec + - name: Upload package + uses: actions/upload-artifact@v3 + with: + name: package-netexec + path: ./netexec/*.pkg.tar.zst + retention-days: 1 + if-no-files-found: error package-nuclei: runs-on: ubuntu-20.04 needs: diff --git a/crackmapexec/PKGBUILD b/netexec/PKGBUILD similarity index 88% rename from crackmapexec/PKGBUILD rename to netexec/PKGBUILD index 67047dbf..4dd818ec 100644 --- a/crackmapexec/PKGBUILD +++ b/netexec/PKGBUILD @@ -1,7 +1,7 @@ -pkgname=crackmapexec +pkgname=netexec pkgver=latest pkgrel=1 -url="https://github.com/porchetta-industries/${pkgname}.git" +url="https://github.com/pennyw0rth/${pkgname}.git" arch=(any) license=(BSD2) depends=(python) @@ -15,7 +15,7 @@ package() { 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 . - for binname in "${pkgname}" cmedb; do + for binname in "${pkgname}" nxcdb; do cat << EOF > "${pkgdir}/opt/archpkgs/bin/${binname}" #!/bin/sh set -eu