Skip to content

Commit

Permalink
navgix: initial commit. (#4390)
Browse files Browse the repository at this point in the history
* navgix: initial commit.

Added navgix tool.

* navgix: fix package desc.

* navgix: fix PKGBUILD.
  • Loading branch information
s7x authored Nov 29, 2024
1 parent 0f86862 commit 488d66e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions packages/navgix/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=navgix
pkgver=3.6f25c98
pkgrel=1
pkgdesc='Multi-threaded golang tool that will check for nginx alias traversal vulnerabilities.'
arch=('x86_64' 'aarch64')
groups=('blackarch' 'blackarch-scanner')
url='https://github.com/hakaioffsec/navgix'
license=('NONE')
makedepends=('git' 'go')
source=("git+https://github.com/hakaioffsec/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
cd $pkgname

echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
cd $pkgname

GOPATH="$srcdir" go mod tidy
GOPATH="$srcdir" go mod download
GOPATH="$srcdir" go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-s -w" \
-o $pkgname .
}

package() {
cd $pkgname

install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

0 comments on commit 488d66e

Please sign in to comment.