summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeeweep2019-09-28 01:56:10 +0800
committerpeeweep2019-09-28 01:56:10 +0800
commit107b4d2b30fb43737b95d1e00c9a8b668a579c18 (patch)
tree439f0a2cc0630a38e25a75d9029d5a6860a54399
downloadaur-107b4d2b30fb43737b95d1e00c9a8b668a579c18.tar.gz
Init
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD70
-rw-r--r--beef-git.install12
-rw-r--r--beef-git.sh4
5 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..9c6bbf80e020
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = beef-git
+ pkgdesc = The Browser Exploitation Framework
+ pkgver = 20190926.d6972adf
+ pkgrel = 1
+ url = http://beefproject.com/
+ install = beef-git.install
+ arch = x86_64
+ license = GPLv2
+ makedepends = git
+ depends = ruby
+ depends = ruby-bundler
+ depends = sqlite
+ depends = nodejs
+ source = beef-git::git+https://github.com/beefproject/beef.git
+ source = https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
+ source = beef-git.install
+ source = beef-git.sh
+ sha256sums = SKIP
+ sha256sums = 417e0c0c5f0b7004373e9bd6a232e6befc5be50fc6f4f5c7b9bf19b15fe3ee68
+ sha256sums = 3c70f6d41cf6454ffedd58c9ab6c498578e72f0e46a35c032053cad88efe9b7c
+ sha256sums = cf7585979b47269576aaf915d923ae2b7e2fcf0d64fff1ec702763fad13a3d51
+
+pkgname = beef-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..461bc0ea1267
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*.log
+*.pkg.tar.xz
+*.tar.gz
+pkg/
+src/
+beef-xss-git/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..dfb2b3f862f1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,70 @@
+# Maintainer: peeweep <peeweep at 0x0 dot ee>
+
+pkgname=beef-git
+_pkgname=beef
+pkgver=20190926.d6972adf
+pkgrel=1
+pkgdesc="The Browser Exploitation Framework"
+arch=('x86_64')
+url="http://beefproject.com/"
+_url="https://github.com/beefproject/beef"
+license=('GPLv2')
+depends=('ruby' 'ruby-bundler' 'sqlite' 'nodejs')
+makedepends=('git')
+source=("${pkgname}::git+${_url}.git"
+ https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
+ "${pkgname}.install"
+ "${pkgname}.sh"
+)
+install=${pkgname}.install
+sha256sums=('SKIP'
+ '417e0c0c5f0b7004373e9bd6a232e6befc5be50fc6f4f5c7b9bf19b15fe3ee68'
+ '3c70f6d41cf6454ffedd58c9ab6c498578e72f0e46a35c032053cad88efe9b7c'
+ 'cf7585979b47269576aaf915d923ae2b7e2fcf0d64fff1ec702763fad13a3d51')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ git log -1 --format='%cd.%h' --date=short | tr -d -
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ # Print beef logo
+ if [ -f core/main/console/beef.ascii ]; then
+ cat core/main/console/beef.ascii
+ echo
+ fi
+
+ # Remove Gemfile.lock
+ if [ -f Gemfile.lock ]; then
+ rm Gemfile.lock
+ fi
+
+ bundle${RUBYSUFFIX} install --without test development --path vendor/bundle
+}
+
+package() {
+ # cp -r src/beef-git/* pkg/etc/beef
+ install -d "${pkgdir}/etc/${_pkgname}"
+ cp -r "${srcdir}/${pkgname}"/* "${pkgdir}/etc/${_pkgname}"
+
+ # update vendor path
+ install -d "${pkgdir}/etc/${_pkgname}/.bundle"
+ install -Dm644 "${srcdir}/${pkgname}/.bundle/config" "${pkgdir}/etc/${_pkgname}/.bundle/config"
+
+ install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/beef"
+
+ # install GeoIP database to /opt/GeoIP
+ install -d "${pkgdir}/opt/GeoIP"
+ install -Dm644 "${srcdir}"/GeoLite2-City*/* "${pkgdir}/opt/GeoIP/"
+
+ # update LICENSE
+ install -d "${pkgdir}/usr/share/licenses/GeoIP"
+ install -Dm644 "${pkgdir}/opt/GeoIP"/LICENSE.txt "${pkgdir}/usr/share/licenses/GeoIP/LICENSE"
+ install -Dm644 "${pkgdir}/opt/GeoIP"/COPYRIGHT.txt "${pkgdir}/usr/share/licenses/GeoIP/COPYRIGHT"
+ install -d "${pkgdir}/usr/share/licenses/${_pkgname}"
+ install -Dm644 "${srcdir}/${pkgname}/doc"/* "${pkgdir}/usr/share/licenses/${_pkgname}/"
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/beef-git.install b/beef-git.install
new file mode 100644
index 000000000000..c7108e90111d
--- /dev/null
+++ b/beef-git.install
@@ -0,0 +1,12 @@
+post_install() {
+ echo
+ echo "Default username and password in use! "
+ echo "Change the beef.credentials.passwd in /etc/beef-xss/config.yaml"
+ echo
+}
+
+# post_remove(){
+# rm -rf /etc/beef-xss
+# }
+
+# vim: ts=2 sw=2 et:
diff --git a/beef-git.sh b/beef-git.sh
new file mode 100644
index 000000000000..13a4b47f3ef8
--- /dev/null
+++ b/beef-git.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+BUNDLE_GEMFILE=/etc/beef-xss/Gemfile bundle exec /etc/beef-xss/beef
+
+# vim: ts=2 sw=2 et: