Skip to content

Commit

Permalink
netspionage: add package (#4274)
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r authored Nov 30, 2024
1 parent d838007 commit b27d75c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
netspionage
48 changes: 48 additions & 0 deletions packages/netspionage/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=netspionage
pkgver=99.c24f995
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 b27d75c

Please sign in to comment.