Package Details: metasploit-git 1:6.3.31.71421.28ba19a12f-1

Git Clone URL: https://aur.archlinux.org/metasploit-git.git (read-only, click to copy)
Package Base: metasploit-git
Description: Advanced open-source platform for developing, testing, and using exploit code
Upstream URL: https://www.metasploit.com/
Licenses: BSD
Conflicts: metasploit
Provides: metasploit
Submitter: axper
Maintainer: anthraxx
Last Packager: anthraxx
Votes: 17
Popularity: 0.000000
First Submitted: 2014-10-19 15:27 (UTC)
Last Updated: 2023-08-29 23:46 (UTC)

Required by (8)

Sources (1)

Latest Comments

1 2 3 4 5 6 Next › Last »

mantacid commented on 2024-06-19 05:02 (UTC)

Not sure what this means, I'm a bit new to the AUR.

==> Starting prepare()...
/usr/lib/ruby/3.0.0/rubygems.rb:265:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
        from /usr/lib/ruby/3.0.0/rubygems.rb:284:in `activate_bin_path'
        from /usr/bin/bundle:25:in `<main>'
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'metasploit-git-1:6.3.31.71421.28ba19a12f-1': 
error: packages failed to build: metasploit-git-1:6.3.31.71421.28ba19a12f-1

anthraxx commented on 2023-08-29 23:47 (UTC)

All bundler deprecation warnings fixed and usage for latest ruby 3.0 included

Rad10 commented on 2023-08-18 19:15 (UTC) (edited on 2023-08-18 19:16 (UTC) by Rad10)

The latest version of metasploit just got updated to using ruby 3.0. I made a quick patch to fix this, whenever you get the chance

diff --git a/PKGBUILD b/PKGBUILD
index 6cd999e..12a4e48 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,14 +7,14 @@
 # Contributor: al.janitor <al.janitor [at] sdf [dot] org>

 pkgname=metasploit-git
-pkgver=6.1.2.61779.50ace3f7bc
+pkgver=6.3.30.71361.8e89a6a3dc
 pkgrel=1
 epoch=1
 pkgdesc='Advanced open-source platform for developing, testing, and using exploit code'
 url='https://www.metasploit.com/'
 arch=('x86_64')
 license=('BSD')
-depends=('ruby2.7' 'libpcap' 'postgresql-libs' 'sqlite' 'libxslt' 'libxml2' 'inetutils' 'git')
+depends=('ruby' 'libpcap' 'postgresql-libs' 'sqlite' 'libxslt' 'libxml2' 'inetutils' 'git')
 optdepends=('ruby-pg: database support')
 provides=('metasploit')
 conflicts=('metasploit')
@@ -36,14 +36,14 @@ prepare() {
   # https://github.com/bundler/bundler/issues/6882
   sed -e '/BUNDLED WITH/,+1d' -i Gemfile.lock

-  bundle-2.7 config build.nokogiri --use-system-libraries
+  bundle config build.nokogiri --use-system-libraries
   sed 's|git ls-files|find -type f|' -i metasploit-framework.gemspec
 }

 build() {
   cd ${pkgname}
   CFLAGS+=" -I/usr/include/libxml2"
-  bundle-2.7 install -j"$(nproc)" --no-cache --deployment
+  bundle install -j"$(nproc)" --no-cache --deployment
   find vendor/bundle/ruby -exec chmod o+r '{}' \;
   find vendor/bundle/ruby \( -name gem_make.out -or -name mkmf.log \) -delete
 }
@@ -56,14 +56,14 @@ package() {

   for f in "${pkgdir}"/opt/${pkgname}/msf*; do
     local _msffile="${pkgdir}/usr/bin/`basename "${f}"`"
-    echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle-2.7 exec ruby-2.7 /opt/${pkgname}/`basename "${f}"` \"\$@\"" > "${_msffile}"
+    echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/${pkgname}/`basename "${f}"` \"\$@\"" > "${_msffile}"
     chmod 755 "${_msffile}"
   done

   (cd "${pkgdir}/opt/${pkgname}"
     for f in tools/*/*.rb; do
       install -Dm 755 "${f}" ".${f}"
-      echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle-2.7 exec ruby-2.7 /opt/${pkgname}/."${f}" \"\$@\"" > "${f}"
+      echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/${pkgname}/."${f}" \"\$@\"" > "${f}"
       chmod 755 "${f}"
     done
   )

AkechiShiro commented on 2021-10-28 08:23 (UTC)

I was trying to update my current metasploit by building this one and I hit this error.

==> Starting build()...
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set deployment 'true'`, and stop using this flag
[DEPRECATED] The `--no-cache` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set no-cache 'true'`, and stop using this flag
There was an error while trying to write to `/home/zwei/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions`. It is likely that you need to
grant write permissions for that path.
==> ERROR: A failure occurred in build().
    Aborting...
aura >>= There was a makepkg failure.
aura >>= Would you like to continue anyway? [Y/n] 

p0ng commented on 2021-05-22 15:30 (UTC)

I was trying to install metasploit on a new Arch Linux installation and I came across the following error:

==> Starting build()...
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set deployment 'true'`, and stop using this flag
[DEPRECATED] The `--no-cache` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set no-cache 'true'`, and stop using this flag
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

You have deleted from the Gemfile:
* swagger-blocks
==> ERROR: A failure occurred in build().
    Aborting...

So I change this in build() function

build() {
  cd ${pkgname}
  CFLAGS+=" -I/usr/include/libxml2"
  bundle install -j"$(nproc)" --no-cache --deployment
  find vendor/bundle/ruby -exec chmod o+r '{}' \;
  find vendor/bundle/ruby \( -name gem_make.out -or -name mkmf.log \) -delete
}

To this

build() {
  cd ${pkgname}
  CFLAGS+=" -I/usr/include/libxml2"
  bundle config set deployment 'true'
  bundle config set no-cache 'true'
  bundle config unset deployment
  bundle install -j"$(nproc)"
  find vendor/bundle/ruby -exec chmod o+r '{}' \;
  find vendor/bundle/ruby \( -name gem_make.out -or -name mkmf.log \) -delete
}

And now works like a charm!

Arko commented on 2020-09-12 15:19 (UTC) (edited on 2020-09-12 15:20 (UTC) by Arko)

Add to dependencies inetutils. Without it msfconsole doesn't start and gives error:

/opt/metasploit-git/msfconsole: No such file or directory - hostname
Traceback (most recent call last):
7: from /opt/metasploit-git/msfconsole:23:in `<main>'
6: from /opt/metasploit-git/lib/metasploit/framework/command/base.rb:82:in `start'
5: from /opt/metasploit-git/lib/metasploit/framework/command/console.rb:48:in `start'
4: from /opt/metasploit-git/lib/metasploit/framework/command/console.rb:62:in `driver'
3: from /opt/metasploit-git/lib/metasploit/framework/command/console.rb:62:in `new'
2: from /opt/metasploit-git/lib/msf/ui/console/driver.rb:90:in `initialize'
1: from /opt/metasploit-git/lib/rex/ui/text/dispatcher_shell.rb:343:in `initialize'
/opt/metasploit-git/lib/rex/ui/text/shell.rb:60:in `initialize': undefined method `split' for nil:NilClass (NoMethodError)

FoxFromDarkness commented on 2020-02-03 15:40 (UTC)

@algebro just run gem install bundler:1.17.3

dani commented on 2019-08-18 15:10 (UTC)

documentation/ direction is necessary for web ui. please do not mv it.

algebro commented on 2019-05-29 19:35 (UTC)

I'm getting the following error related to Bundler when trying to install this package. Any ideas?

==> Starting prepare()...
Traceback (most recent call last):
        2: from /usr/bin/bundle:23:in `<main>'
        1: from /usr/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
/usr/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /home/algebro/.cache/yay/metasploit-git/src/metasploit-git/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.3`
==> ERROR: A failure occurred in prepare().
    Aborting...
Error making: metasploit-git