Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+ sstimap initial commit #4365

Merged
merged 4 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sstimap
50 changes: 50 additions & 0 deletions packages/sstimap/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sstimap
_pkgname=SSTImap
pkgver=v1.2.r3.g0d45b44
pkgrel=1
pkgdesc='Automatic SSTI detection tool with interactive interface.'
arch=('any')
groups=('blackarch' 'blackarch-exploitation' 'blackarch-webapp')
url='https://github.com/vladko312/SSTImap'
license=('GPL-3.0')
dualfade marked this conversation as resolved.
Show resolved Hide resolved
depends=('python')
makedepends=('git' 'python-setuptools' 'python-pip')
dualfade marked this conversation as resolved.
Show resolved Hide resolved
source=("git+https://github.com/vladko312/$_pkgname.git")
sha512sums=('SKIP')
install="$pkgname.install"

pkgver() {
cd $_pkgname

( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null |
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
)

}

package() {
cd $_pkgname

install -dm 755 "$pkgdir/usr/bin"
install -Dm 644 requirements.txt "$pkgdir/usr/share/$pkgname/requirements.txt"
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md

rm -rf LICENSE *.md .gitignore

cp -a * "$pkgdir/usr/share/$pkgname/"

cat > "$pkgdir/usr/bin/$pkgname" << EOF
#!/bin/sh
source /usr/share/$pkgname/venv/bin/activate
exec python /usr/share/$pkgname/$pkgname.py "\$@"
EOF

chmod a+x "$pkgdir/usr/bin/$pkgname"
}

13 changes: 13 additions & 0 deletions packages/sstimap/sstimap.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
post_install() {
set -e
cd /usr/share/sstimap
python -m venv venv
source venv/bin/activate &&
pip install --isolated --root="/usr/share/sstimap" --prefix='venv' \
-r requirements.txt
}

post_upgrade() {
post_install "$@"
}

Loading