Skip to content

Commit

Permalink
netspionage: add package
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r authored Oct 9, 2024
1 parent faa62d0 commit a6b2024
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions packages/netspionage/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=netspionage
pkgver=95.0e822d5
pkgrel=1
pkgdesc='Network Forensics CLI utility that performs Network Scanning, OSINT, and Attack Detection.'
arch=('any')
groups=('blackarch' 'blackarch-forensic' 'blackarch-recon' 'blackarch-scanner')
url='https://github.com/ANG13T/netspionage'
license=('custom:unknown')
depends=('python' 'python-scapy' 'python-pandas' 'python-pick' 'python-requests' 'python-termcolor')
makedepends=('git')
source=("git+https://github.com/ANG13T/$pkgname.git")
sha512sums=('SKIP')

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 *.md .gitignore

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

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

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

0 comments on commit a6b2024

Please sign in to comment.