-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add wmiexec-pro, atexec-pro and ldap-shell
- Loading branch information
Showing
4 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" | ||
} |