From 5b9d7e47c3f1877bcffdf2aafac712451db43d61 Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 24 Sep 2022 17:09:11 +0200 Subject: ma pkgs.beef: rip --- makefu/5pkgs/beef/Gemfile | 93 --- makefu/5pkgs/beef/Gemfile.lock | 297 -------- makefu/5pkgs/beef/db-in-homedir.patch | 39 - makefu/5pkgs/beef/default.nix | 45 -- makefu/5pkgs/beef/gemset.nix | 1293 --------------------------------- makefu/5pkgs/beef/shell.nix | 16 - makefu/5pkgs/beef/update.sh | 28 - 7 files changed, 1811 deletions(-) delete mode 100644 makefu/5pkgs/beef/Gemfile delete mode 100644 makefu/5pkgs/beef/Gemfile.lock delete mode 100644 makefu/5pkgs/beef/db-in-homedir.patch delete mode 100644 makefu/5pkgs/beef/default.nix delete mode 100644 makefu/5pkgs/beef/gemset.nix delete mode 100644 makefu/5pkgs/beef/shell.nix delete mode 100755 makefu/5pkgs/beef/update.sh (limited to 'makefu') diff --git a/makefu/5pkgs/beef/Gemfile b/makefu/5pkgs/beef/Gemfile deleted file mode 100644 index 759ba2d23..000000000 --- a/makefu/5pkgs/beef/Gemfile +++ /dev/null @@ -1,93 +0,0 @@ -# BeEF's Gemfile - -# -# Copyright (c) 2006-2021 Wade Alcorn - wade@bindshell.net -# Browser Exploitation Framework (BeEF) - http://beefproject.com -# See the file 'doc/COPYING' for copying permission -# -#gem 'simplecov', require: false, group: :test -gem 'eventmachine' -gem 'thin' -gem 'sinatra', '>= 2.0.2' -gem 'rack', '>= 2.2.3' -gem 'rack-protection', '>= 2.0.0' -gem 'em-websocket' # WebSocket support -gem 'uglifier', '>= 2.7.2' -gem 'mime-types' -gem 'execjs' -gem 'ansi' -gem 'term-ansicolor', :require => 'term/ansicolor' -gem 'json' -gem 'rubyzip', '>= 1.2.2' -gem 'espeak-ruby', '>= 1.0.4' # Text-to-Voice -gem 'nokogiri', '>= 1.11.1' -gem 'rake', '>= 12.3.3' -gem 'otr-activerecord', '>= 1.4.2' -gem 'sqlite3' -gem 'rubocop', '~> 0.92.0', require: false - -# Geolocation support -group :geoip do - gem 'maxmind-db' -end - -gem 'parseconfig' -gem 'erubis' - -# Metasploit Integration extension -group :ext_msf do - gem 'msfrpc-client' - gem 'xmlrpc' -end - -# Notifications extension -group :ext_notifications do - # Pushover - gem 'rushover' - # Slack - gem 'slack-notifier' - # Twitter - gem 'twitter', '>= 5.0.0' -end - -# DNS extension -group :ext_dns do - gem 'async-dns' -end - -# QRcode extension -group :ext_qrcode do - gem 'qr4r' -end - -# For running unit tests -group :test do - gem 'test-unit' - gem 'test-unit-full' - gem 'rspec' - gem 'rdoc' - # curb gem requires curl libraries - # sudo apt-get install libcurl4-openssl-dev - gem 'curb' - # selenium-webdriver 3.x is incompatible with Firefox version 48 and prior - # gem 'selenium' # Requires old version of selenium which is no longer available - gem 'geckodriver-helper' - gem 'selenium-webdriver' - # nokogirl is needed by capybara which may require one of the below commands - # sudo apt-get install libxslt-dev libxml2-dev - # sudo port install libxml2 libxslt - gem 'capybara' - # RESTful API tests/generic command module tests - gem 'rest-client', '>= 2.0.1' - gem 'irb' - gem 'pry-byebug' - gem "websocket-client-simple", "~> 0.3.0" - gem "browserstack-local", "~> 1.3" -end - -source 'https://rubygems.org' - - - - - diff --git a/makefu/5pkgs/beef/Gemfile.lock b/makefu/5pkgs/beef/Gemfile.lock deleted file mode 100644 index fa6f32335..000000000 --- a/makefu/5pkgs/beef/Gemfile.lock +++ /dev/null @@ -1,297 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - activemodel (6.1.4) - activesupport (= 6.1.4) - activerecord (6.1.4) - activemodel (= 6.1.4) - activesupport (= 6.1.4) - activesupport (6.1.4) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 1.6, < 2) - minitest (>= 5.1) - tzinfo (~> 2.0) - zeitwerk (~> 2.3) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - ansi (1.5.0) - archive-zip (0.12.0) - io-like (~> 0.3.0) - ast (2.4.2) - async (1.30.1) - console (~> 1.10) - nio4r (~> 2.3) - timers (~> 4.1) - async-dns (1.2.6) - async-io (~> 1.15) - async-io (1.32.2) - async - browserstack-local (1.3.0) - buftok (0.2.0) - byebug (11.1.3) - capybara (3.35.3) - addressable - mini_mime (>= 0.1.3) - nokogiri (~> 1.8) - rack (>= 1.6.0) - rack-test (>= 0.6.3) - regexp_parser (>= 1.5, < 3.0) - xpath (~> 3.2) - childprocess (3.0.0) - coderay (1.1.3) - concurrent-ruby (1.1.9) - console (1.13.1) - fiber-local - curb (0.9.11) - daemons (1.4.0) - diff-lcs (1.4.4) - domain_name (0.5.20190701) - unf (>= 0.0.5, < 1.0.0) - em-websocket (0.5.2) - eventmachine (>= 0.12.9) - http_parser.rb (~> 0.6.0) - equalizer (0.0.11) - erubis (2.7.0) - espeak-ruby (1.0.4) - event_emitter (0.2.6) - eventmachine (1.2.7) - execjs (2.8.1) - ffi (1.15.3) - ffi-compiler (1.0.1) - ffi (>= 1.0.0) - rake - fiber-local (1.0.0) - geckodriver-helper (0.24.0) - archive-zip (~> 0.7) - hashie (4.1.0) - hashie-forbidden_attributes (0.1.1) - hashie (>= 3.0) - http (4.4.1) - addressable (~> 2.3) - http-cookie (~> 1.0) - http-form_data (~> 2.2) - http-parser (~> 1.2.0) - http-accept (1.7.0) - http-cookie (1.0.4) - domain_name (~> 0.5) - http-form_data (2.3.0) - http-parser (1.2.3) - ffi-compiler (>= 1.0, < 2.0) - http_parser.rb (0.6.0) - i18n (1.8.10) - concurrent-ruby (~> 1.0) - io-console (0.5.9) - io-like (0.3.1) - irb (1.3.6) - reline (>= 0.2.5) - json (2.5.1) - maxmind-db (1.1.1) - memoizable (0.4.2) - thread_safe (~> 0.3, >= 0.3.1) - method_source (1.0.0) - mime-types (3.3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2021.0704) - mini_mime (1.1.0) - mini_portile2 (2.6.1) - minitest (5.14.4) - mojo_magick (0.6.6) - msfrpc-client (1.1.2) - msgpack (~> 1) - msgpack (1.4.2) - multipart-post (2.1.1) - mustermann (1.1.1) - ruby2_keywords (~> 0.0.1) - naught (1.1.0) - netrc (0.11.0) - nio4r (2.5.8) - nokogiri (1.12.2) - mini_portile2 (~> 2.6.1) - racc (~> 1.4) - otr-activerecord (2.0.1) - activerecord (>= 4.0, < 6.3) - hashie-forbidden_attributes (~> 0.1) - parallel (1.20.1) - parseconfig (1.1.0) - parser (3.0.2.0) - ast (~> 2.4.1) - power_assert (2.0.0) - pry (0.13.1) - coderay (~> 1.1) - method_source (~> 1.0) - pry-byebug (3.9.0) - byebug (~> 11.0) - pry (~> 0.13.0) - public_suffix (4.0.6) - qr4r (0.6.1) - mojo_magick (~> 0.6.5) - rqrcode_core (~> 0.1) - racc (1.5.2) - rack (2.2.3) - rack-protection (2.1.0) - rack - rack-test (1.1.0) - rack (>= 1.0, < 3) - rainbow (3.0.0) - rake (13.0.6) - rdoc (6.3.2) - regexp_parser (2.1.1) - reline (0.2.6) - io-console (~> 0.5) - rest-client (2.1.0) - http-accept (>= 1.7.0, < 2.0) - http-cookie (>= 1.0.2, < 2.0) - mime-types (>= 1.16, < 4.0) - netrc (~> 0.8) - rexml (3.2.5) - rqrcode_core (0.2.0) - rr (3.0.5) - rspec (3.10.0) - rspec-core (~> 3.10.0) - rspec-expectations (~> 3.10.0) - rspec-mocks (~> 3.10.0) - rspec-core (3.10.1) - rspec-support (~> 3.10.0) - rspec-expectations (3.10.1) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-mocks (3.10.2) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-support (3.10.2) - rubocop (0.92.0) - parallel (~> 1.10) - parser (>= 2.7.1.5) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) - rexml - rubocop-ast (>= 0.5.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.8.0) - parser (>= 3.0.1.1) - ruby-progressbar (1.11.0) - ruby2_keywords (0.0.5) - rubyzip (2.3.2) - rushover (0.3.0) - json - rest-client - selenium-webdriver (3.142.7) - childprocess (>= 0.5, < 4.0) - rubyzip (>= 1.2.2) - simple_oauth (0.3.1) - sinatra (2.1.0) - mustermann (~> 1.0) - rack (~> 2.2) - rack-protection (= 2.1.0) - tilt (~> 2.0) - slack-notifier (2.4.0) - sqlite3 (1.4.2) - sync (0.5.0) - term-ansicolor (1.7.1) - tins (~> 1.0) - test-unit (3.4.4) - power_assert - test-unit-context (0.5.1) - test-unit (>= 2.4.0) - test-unit-full (0.0.5) - test-unit - test-unit-context - test-unit-notify - test-unit-rr - test-unit-runner-tap - test-unit-notify (1.0.4) - test-unit (>= 2.4.9) - test-unit-rr (1.0.5) - rr (>= 1.1.1) - test-unit (>= 2.5.2) - test-unit-runner-tap (1.1.2) - test-unit - thin (1.8.1) - daemons (~> 1.0, >= 1.0.9) - eventmachine (~> 1.0, >= 1.0.4) - rack (>= 1, < 3) - thread_safe (0.3.6) - tilt (2.0.10) - timers (4.3.3) - tins (1.29.1) - sync - twitter (7.0.0) - addressable (~> 2.3) - buftok (~> 0.2.0) - equalizer (~> 0.0.11) - http (~> 4.0) - http-form_data (~> 2.0) - http_parser.rb (~> 0.6.0) - memoizable (~> 0.4.0) - multipart-post (~> 2.0) - naught (~> 1.0) - simple_oauth (~> 0.3.0) - tzinfo (2.0.4) - concurrent-ruby (~> 1.0) - uglifier (4.2.0) - execjs (>= 0.3.0, < 3) - unf (0.1.4) - unf_ext - unf_ext (0.0.7.7) - unicode-display_width (1.7.0) - webrick (1.7.0) - websocket (1.2.9) - websocket-client-simple (0.3.0) - event_emitter - websocket - xmlrpc (0.3.2) - webrick - xpath (3.2.0) - nokogiri (~> 1.8) - zeitwerk (2.4.2) - -PLATFORMS - ruby - -DEPENDENCIES - ansi - async-dns - browserstack-local (~> 1.3) - capybara - curb - em-websocket - erubis - espeak-ruby (>= 1.0.4) - eventmachine - execjs - geckodriver-helper - irb - json - maxmind-db - mime-types - msfrpc-client - nokogiri (>= 1.11.1) - otr-activerecord (>= 1.4.2) - parseconfig - pry-byebug - qr4r - rack (>= 2.2.3) - rack-protection (>= 2.0.0) - rake (>= 12.3.3) - rdoc - rest-client (>= 2.0.1) - rspec - rubocop (~> 0.92.0) - rubyzip (>= 1.2.2) - rushover - selenium-webdriver - sinatra (>= 2.0.2) - slack-notifier - sqlite3 - term-ansicolor - test-unit - test-unit-full - thin - twitter (>= 5.0.0) - uglifier (>= 2.7.2) - websocket-client-simple (~> 0.3.0) - xmlrpc - -BUNDLED WITH - 2.1.4 diff --git a/makefu/5pkgs/beef/db-in-homedir.patch b/makefu/5pkgs/beef/db-in-homedir.patch deleted file mode 100644 index e8dd8e3db..000000000 --- a/makefu/5pkgs/beef/db-in-homedir.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- /beef 2018-08-16 19:03:55.199437566 +0200 -+++ /beef 2018-08-16 19:27:34.735985233 +0200 -@@ -110,9 +110,20 @@ - # - # @note Database setup - use DataMapper::Logger.new($stdout, :debug) for development debugging - # -+ -+# -+# @note Create ~/.beef/ -+# -+begin -+ FileUtils.mkdir_p($home_dir) unless File.directory?($home_dir) -+rescue => e -+ print_error "Could not create '#{$home_dir}': #{e.message}" -+end -+ - case config.get("beef.database.driver") - when "sqlite" -- DataMapper.setup(:default, "sqlite3://#{$root_dir}/#{config.get("beef.database.db_file")}") -+ print_info "Using Database #{$home_dir}/#{config.get("beef.database.db_file")}" -+ DataMapper.setup(:default, "sqlite3://#{$home_dir}/#{config.get("beef.database.db_file")}") - when "mysql", "postgres" - DataMapper.setup(:default, - :adapter => config.get("beef.database.driver"), -@@ -162,14 +173,6 @@ - BeEF::Core::Console::Banners.print_network_interfaces_count - BeEF::Core::Console::Banners.print_network_interfaces_routes - --# --# @note Create ~/.beef/ --# --begin -- FileUtils.mkdir_p($home_dir) unless File.directory?($home_dir) --rescue => e -- print_error "Could not create '#{$home_dir}': #{e.message}" --end - - # - # @note Check whether we load the Console Shell or not diff --git a/makefu/5pkgs/beef/default.nix b/makefu/5pkgs/beef/default.nix deleted file mode 100644 index c99577caf..000000000 --- a/makefu/5pkgs/beef/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ stdenv, lib, bundlerEnv, ruby, fetchFromGitHub, nodejs }: -# nix-shell --command "bundler install && bundix" in the clone, copy gemset.nix, Gemfile and Gemfile.lock -let - gems = bundlerEnv { - name = "beef-env"; - inherit ruby; - gemdir = ./.; - }; -in stdenv.mkDerivation { - name = "beef-2018-09-21"; - src = fetchFromGitHub { - owner = "beefproject"; - repo = "beef"; - rev = "d237c95"; - sha256 = "1mykbjwjcbd2a18wycaf35hi3b9rmvqz1jnk2v55sd4c39f0jpf2"; - }; - prePatch = '' - ls -alhtr - ''; - patches = [ ./db-in-homedir.patch ]; - buildInputs = [gems ruby]; - installPhase = '' - mkdir -p $out/{bin,share/beef} - - cp -r * $out/share/beef - # set the default db path, unfortunately setting to /tmp does not seem to work - # sed -i 's#db_file: .*#db_file: "/tmp/beef.db"#' $out/share/beef/config.yaml - - bin=$out/bin/beef - cat > $bin < {}; -stdenv.mkDerivation { - name = "env"; - buildInputs = [ - ruby.devEnv - git - sqlite - libpcap - postgresql - libxml2 - libxslt - pkgconfig - bundix - ]; -} diff --git a/makefu/5pkgs/beef/update.sh b/makefu/5pkgs/beef/update.sh deleted file mode 100755 index cce635f6d..000000000 --- a/makefu/5pkgs/beef/update.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash -p curl bundix git libiconv libpcap libxml2 libxslt pkg-config postgresql ruby.devEnv sqlite xmlstarlet nix-update wget - -set -eu -o pipefail -cd "$(dirname "$(readlink -f "$0")")" - - -# TODO find the correct tag -echo Fetching latest Gemfile -wget https://raw.githubusercontent.com/beefproject/beef/master/Gemfile -O Gemfile -rm -f Gemfile.lock -echo Running bundler install -bundler install -echo Running bundix -bundix -exit 0 - -latest=$(curl https://github.com/rapid7/metasploit-framework/releases.atom | xmlstarlet sel -N atom="http://www.w3.org/2005/Atom" -t -m /atom:feed/atom:entry -v atom:title -n | head -n1) -echo "Updating metasploit to $latest" - -sed -i "s#refs/tags/.*#refs/tags/$latest\"#" Gemfile - -bundler install -bundix -sed -i '/[ ]*dependencies =/d' gemset.nix - -cd "../../../../" -nix-update beef --version "$latest" -- cgit v1.2.3