Skip to content

Commit

Permalink
add wmiexec-pro, atexec-pro and ldap-shell
Browse files Browse the repository at this point in the history
  • Loading branch information
glynx authored and dadevel committed Nov 21, 2024
1 parent e28b5fd commit e0be161
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- package-adidnsdump
- package-aquatone
- package-asnmap
- package-atexec-pro
- package-azurehound
- package-bloodhound
- package-bloodhound-python
Expand Down Expand Up @@ -57,6 +58,7 @@ jobs:
- package-impacket-unstable
- package-krbrelayx
- package-lapsdumper
- package-ldap-shell
- package-ldapnomnom
- package-manspider
- package-mapcidr
Expand Down Expand Up @@ -92,6 +94,7 @@ jobs:
- package-trevorspray
- package-typo3scan
- package-wg-netns
- package-wmiexec-pro
if: ${{ always() }}
concurrency: ci-${{ github.ref }}
steps:
Expand Down Expand Up @@ -178,6 +181,22 @@ jobs:
path: ./asnmap/*.pkg.tar.zst
retention-days: 1
if-no-files-found: error
package-atexec-pro:
runs-on: ubuntu-24.04
needs:
- build-container
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build package
run: ./build-package.sh atexec-pro
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: package-atexec-pro
path: ./atexec-pro/*.pkg.tar.zst
retention-days: 1
if-no-files-found: error
package-azurehound:
runs-on: ubuntu-24.04
needs:
Expand Down Expand Up @@ -674,6 +693,22 @@ jobs:
path: ./lapsdumper/*.pkg.tar.zst
retention-days: 1
if-no-files-found: error
package-ldap-shell:
runs-on: ubuntu-24.04
needs:
- build-container
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build package
run: ./build-package.sh ldap-shell
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: package-ldap-shell
path: ./ldap-shell/*.pkg.tar.zst
retention-days: 1
if-no-files-found: error
package-ldapnomnom:
runs-on: ubuntu-24.04
needs:
Expand Down Expand Up @@ -1234,3 +1269,19 @@ jobs:
path: ./wg-netns/*.pkg.tar.zst
retention-days: 1
if-no-files-found: error
package-wmiexec-pro:
runs-on: ubuntu-24.04
needs:
- build-container
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build package
run: ./build-package.sh wmiexec-pro
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: package-wmiexec-pro
path: ./wmiexec-pro/*.pkg.tar.zst
retention-days: 1
if-no-files-found: error
30 changes: 30 additions & 0 deletions atexec-pro/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
pkgname=atexec-pro
pkgver=latest
pkgrel=1
url=https://github.com/ridter/atexec-pro.git
arch=(any)
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 ./atexec-pro.py "${pkgdir}/opt/archpkgs/${pkgname}/${pkgname}.py"
cp -r ./libs "${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}/${pkgname}.py "\$@"
EOF
chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}"
}

pkgver() {
cd "${srcdir}/${pkgname}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
30 changes: 30 additions & 0 deletions ldap-shell/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
pkgname=ldap-shell
pkgver=latest
pkgrel=1
url=https://github.com/pshlyundin/ldap_shell.git
arch=(any)
license=(Apache)
depends=(python)
source=("git+${url}")
sha256sums=(SKIP)

package() {
cd "${srcdir}/ldap_shell"
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 setuptools # for pkg_resources
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/ldap_shell "\$@"
EOF
chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}"
}

pkgver() {
cd "${srcdir}/ldap_shell"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
31 changes: 31 additions & 0 deletions wmiexec-pro/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
pkgname=wmiexec-pro
pkgver=latest
pkgrel=1
url=https://github.com/xiaolichan/wmiexec-pro.git
arch=(any)
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 ./wmiexec-pro.py "${pkgdir}/opt/archpkgs/${pkgname}/${pkgname}.py"
cp -r ./lib "${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 impacket
pip install numpy
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}/${pkgname}.py "\$@"
EOF
chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}"
}

pkgver() {
cd "${srcdir}/${pkgname}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

0 comments on commit e0be161

Please sign in to comment.