Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=1
pkgname=evil-winrm
pkgver=3.4
pkgrel=1
groups=('archstrike' 'archstrike-networking')
arch=('any')
pkgdesc="The ultimate WinRM shell for hacking/pentesting"
url="https://github.com/Hackplayers/evil-winrm"
license=('LGPL3')
depends=('ruby' 'ruby-bundler' 'git')
makedepends=('ruby-bundler')
source=("$url/archive/v$pkgver.tar.gz")
sha512sums=('c0a8d6cafdf4848a84de66b7393491b3ea196a4e52bc50af17d795a0f3747e8ea22c6e280a4b3db2d5caf6de632219f8783354dab92426da14c74f337c2926af')
package() {
cd $pkgname-$pkgver
# install files to proper places here
install -dm755 "$pkgdir/usr/bin"
install -dm755 "$pkgdir/usr/share/$pkgname"
install -dm644 "$pkgdir/usr/share/licenses/$pkgname"
cp -a --no-preserve=ownership ./* $pkgdir/usr/share/$pkgname/
cd $pkgdir/usr/share/$pkgname
bundle config set --local path 'vendor/bundle'
bundle install
find vendor/bundle/ruby -exec chmod o+r '{}' \;
find vendor/bundle/ruby \( -name gem_make.out -or -name mkmf.log \) -delete
cat > $pkgdir/usr/bin/$pkgname << EOF
#!/usr/bin/env bash
BUNDLE_GEMFILE=/usr/share/$pkgname/Gemfile
cd /usr/share/$pkgname
unset GEM_HOME
bundle exec evil-winrm.rb \$@
EOF
chmod 755 $pkgdir/usr/bin/$pkgname
}