-
-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
82 additions
and
7 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,60 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
|
||
pkgname=mssqlrelay | ||
pkgver=10.97efa52 | ||
pkgrel=1 | ||
pkgdesc="Microsoft SQL Relay is an offensive tool for auditing and abusing Microsoft SQL (MSSQL) services." | ||
arch=('any') | ||
groups=('blackarch' 'blackarch-windows') | ||
url='https://github.com/CompassSecurity/mssqlrelay' | ||
license=('MIT') | ||
depends=('python' | ||
'impacket-ba' | ||
'python-asn1crypto' | ||
'python-cryptography' | ||
'python-ldap3' | ||
'python-pyasn1' | ||
'python-dnspython' | ||
'python-dsinternals' | ||
'python-pyopenssl' | ||
'python-requests' | ||
'python-requests-ntlm' | ||
) | ||
makedepends=('git' 'python-setuptools') | ||
source=("git+$url.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)" | ||
) | ||
} | ||
|
||
prepare() { | ||
cd $pkgname | ||
|
||
sed -i 's/pyasn1==0.4.8/pyasn1/' setup.py | ||
} | ||
|
||
build() { | ||
cd $pkgname | ||
|
||
python setup.py build | ||
} | ||
|
||
package() { | ||
cd $pkgname | ||
|
||
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE | ||
|
||
python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build | ||
|
||
find "$pkgdir" -type f -iname '*.pyc' -exec rm {} \; | ||
} | ||
|
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