Coder Social home page Coder Social logo

gushmazuko / metasploit_in_termux Goto Github PK

View Code? Open in Web Editor NEW
1.5K 145.0 253.0 16.28 MB

Install Metasploit Framework 6 in Termux

License: MIT License

Shell 100.00%
android termux metasploit-framework termux-msf termux-metasploit metasploit msf metasploit6 msf6

metasploit_in_termux's Introduction

Metasploit Framework 6 in Termux

GitLab Testing status GitHub Repo stars

Metasploit 6 running

How to Install

Before

In order to have updated Termux:

  • Purge all data of Termux in Android Settings
  • Uninstall and reinstall latest Termux version from F-Droid (Version on Play Store is outdated)
  • Then launch Termux to initialization, close it (force stop, not swap)
  • Reopen and follow the instructions below

Auto

source <(curl -fsSL https://kutt.it/msf)

Manual

pkg install wget

wget https://github.com/gushmazuko/metasploit_in_termux/raw/master/metasploit.sh


chmod +x metasploit.sh

./metasploit.sh

Launch metasploit

After installation start Metasploit using the command:

msfconsole

metasploit_in_termux's People

Contributors

dedshit avatar gushmazuko avatar krisdowis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

metasploit_in_termux's Issues

This problem showing me how to fix please help[BUG]

Important
Do not duplicate, search your issue before creating one!

Describe the bug
A clear and concise description of what the bug is.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g Redmi 6a]
  • OS: [e.g. Android 9]
    Screenshot_2022-01-18-12-13-42-584_com termux

error log

pcaprub-0.13.0 requires ruby version ~> 2.0, which is
incompatible with the current version, ruby 3.0.1p64
open("/data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/pg-0.20.0/lib/pg_ext.so"): No such file or directory

Metasploit is not properly installed

While installing metasploit on the process of Resolving dependencies : there's a error occurred
"Bundler could not find compatible versions for gem "concurrent-ruby":
In snapshot (Gemfile.lock):
concurrent-ruby (>= 1.0.5)"

And after this
I use command postgresql_ctl.sh start
The it say "$ ./postgresql_ctl.sh start
pg_ctl: another server might be running; trying to start server anyway
waiting for server to start....2021-08-17 21:36:11.378 IST [3145] FATAL: lock file "postmaster.pid" already exists
2021-08-17 21:36:11.378 IST [3145] HINT: Is another postmaster (PID 31787) running in data directory "/data/data/com.termux/files/usr/var/lib/postgresql"?
stopped waiting
pg_ctl: could not start server
Examine the log output."

And when when i want to start msfconsole then again a error occur said "run bundle install to install missing gems.
Screenshot_2021-08-17-21-38-24-104_com termux
Screenshot_2021-08-17-21-38-11-361_com termux
Screenshot_2021-08-17-21-38-17-730_com termux

[BUG]

I am using android 6.0.1 and when i tried to run msfconsole it showed:
Traceback (most recent call last): 61: from /data/data/com.termux/files/usr/bin/msfconsole:18:in <main>' 60: from /data/data/com.termux/files/usr/bin/msfconsole:18:in require' 59: from /data/data/com.termux/files/home/metasploit-framework/lib/msfenv.rb:17:in <top (required)>' 58: from /data/data/com.termux/files/home/metasploit-framework/lib/msfenv.rb:17:in require'
57: from /data/data/com.termux/files/home/metasploit-framework/config/environment.rb:2:in <top (required)>' 56: from /data/data/com.termux/files/home/metasploit-framework/config/environment.rb:2:in require'
55: from /data/data/com.termux/files/home/metasploit-framework/config/application.rb:1:in <top (required)>' 54: from /data/data/com.termux/files/home/metasploit-framework/config/application.rb:1:in require'
53: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails.rb:17:in <top (required)>' 52: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require'
51: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency' 50: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require'
49: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' 48: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/railtie.rb:4:in <top (required)>'
47: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' 46: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency'
45: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require' 44: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require'
43: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/i18n_railtie.rb:8:in <top (required)>' 42: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/i18n_railtie.rb:9:in module:I18n'
41: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/i18n_railtie.rb:10:in <class:Railtie>' 40: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails/railtie.rb:146:in config'
39: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails/railtie.rb:241:in config' 38: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require'
37: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency' 36: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require'
35: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' 34: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails/railtie/configuration.rb:3:in <top (required)>'
33: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' 32: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency'
31: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require' 30: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require'
29: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/railties-6.1.4.1/lib/rails/configuration.rb:4:in <top (required)>' 28: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require'
27: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency' 26: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require'
25: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' 24: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/core_ext/object.rb:10:in <top (required)>'
23: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' 22: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency'
21: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require' 20: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require'
19: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/core_ext/object/conversions.rb:5:in <top (required)>' 18: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require'
17: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency' 16: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require'
15: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' 14: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/core_ext/array/conversions.rb:3:in <top (required)>'
13: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' 12: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency'
11: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require' 10: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require'
9: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/xml_mini.rb:6:in <top (required)>' 8: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require'
7: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency' 6: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require'
5: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' 4: from /data/data/com.termux/files/usr/lib/ruby/2.6.0/bigdecimal/util.rb:9:in <top (required)>'
3: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require' 2: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency'
1: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in block in require' /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in require': dlopen failed: invalid ELF file "/data/data/com.termux/files/usr/lib/ruby/2.6.0/arm-linux-androideabi/bigdecimal/util.so" load segment[8]: p_offset (0x2000) + p_filesz (0x2ec) ( = 0x22ec) past end of file (0x22ec) - /data/data/com.termux/files/usr/lib/ruby/2.6.0/arm-linux-androideabi/bigdecimal/util.so (LoadError)

  • Device: [samsung galaxy j2 prime]
  • OS: [android 6.0.1]
  • please help.
  • sorry for bad english and i am a noob

Msfconsole

There was a problem during installation. I left the installer finish and it did it successfully. When I type msfconsole I received a message alerting there wasn't a file where it should be. I've tried to uninstall and reinstall. I've tried even to redownload the package. If realized I need Ruby installed so I type
pkg install ruby
And there was no error during installation. I typed msfconsole... Another anoying error about the Ruby version, that I don't know how to fix (maybe installing the 1.7 version, but that's not an actual solution).
What can I do? I don't know how to patch it.

The terminal the terminal error output, and hardware and system info:

$ 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 '<name>', [<version requirements>]
 >  gemspec name: 'metasploit-framework'
 #
 #  -------------------------------------------

I'm using a SM-J710FN with the last Android version available for this model: 8.1, and security patch 1 nov 2019

Please explain me how to fix it (in the improbable case in which I discover how to do it work I'll commit here).
Contact me to the email attached to this account ([email protected])

I can't load metasploit

msfconsole
/data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in require': cannot load such file -- nokogiri/nokogiri (LoadError) from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in block in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:299:in load_dependency' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.1-aarch64-linux/lib/nokogiri/extension.rb:30:in rescue in <top (required)>' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.1-aarch64-linux/lib/nokogiri/extension.rb:4:in <top (required)>'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.1-aarch64-linux/lib/nokogiri.rb:10:in require_relative' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.1-aarch64-linux/lib/nokogiri.rb:10:in <top (required)>'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in require' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in block in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:299:in load_dependency' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in require'
from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework.rb:13:in <top (required)>' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:73:in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:73:in rescue in block in require' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:51:in block in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:44:in each' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:44:in require' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler.rb:176:in require' from /data/data/com.termux/files/home/metasploit-framework/config/application.rb:10:in <top (required)>'
from /data/data/com.termux/files/home/metasploit-framework/config/environment.rb:2:in require' from /data/data/com.termux/files/home/metasploit-framework/config/environment.rb:2:in <top (required)>' from /data/data/com.termux/files/home/metasploit-framework/lib/msfenv.rb:17:in require' from /data/data/com.termux/files/home/metasploit-framework/lib/msfenv.rb:17:in <top (required)>' from /data/data/com.termux/files/usr/bin/msfconsole:18:in require' from /data/data/com.termux/files/usr/bin/msfconsole:18:in

' /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.1-aarch64-linux/lib/nokogiri/extension.rb:7:in require_relative': dlopen failed: library "libm.so.6" not found: needed by /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.1-aarch64-linux/lib/nokogiri/3.1/nokogiri.so in namespace (default) - /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.1-aarch64-linux/lib/nokogiri/3.1/nokogiri.so (LoadError) from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.1-aarch64-linux/lib/nokogiri/extension.rb:7:in <top (required)>' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.1-aarch64-linux/lib/nokogiri.rb:10:in require_relative' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/nokogiri-1.13.1-aarch64-linux/lib/nokogiri.rb:10:in <top (required)>'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in require' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in block in require' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:299:in load_dependency' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in require' from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework.rb:13:in <top (required)>' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:73:in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:73:in rescue in block in require' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:51:in block in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:44:in each' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:44:in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler.rb:176:in require' from /data/data/com.termux/files/home/metasploit-framework/config/application.rb:10:in <top (required)>'
from /data/data/com.termux/files/home/metasploit-framework/config/environment.rb:2:in require' from /data/data/com.termux/files/home/metasploit-framework/config/environment.rb:2:in <top (required)>' from /data/data/com.termux/files/home/metasploit-framework/lib/msfenv.rb:17:in require' from /data/data/com.termux/files/home/metasploit-framework/lib/msfenv.rb:17:in <top (required)>'
from /data/data/com.termux/files/usr/bin/msfconsole:18:in require' from /data/data/com.termux/files/usr/bin/msfconsole:18:in ' /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:60:in require': cannot load such file -- metasploit-framework (LoadError) from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:60:in block (2 levels) in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:55:in each' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:55:in block in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:44:in each' from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:44:in require'
from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/bundler-2.3.5/lib/bundler.rb:176:in require' from /data/data/com.termux/files/home/metasploit-framework/config/application.rb:10:in <top (required)>'
from /data/data/com.termux/files/home/metasploit-framework/config/environment.rb:2:in require' from /data/data/com.termux/files/home/metasploit-framework/config/environment.rb:2:in <top (required)>'
from /data/data/com.termux/files/home/metasploit-framework/lib/msfenv.rb:17:in require' from /data/data/com.termux/files/home/metasploit-framework/lib/msfenv.rb:17:in <top (required)>'
from /data/data/com.termux/files/usr/bin/msfconsole:18:in require' from /data/data/com.termux/files/usr/bin/msfconsole:18:in '
/data/data/com.termux/files/usr/bin/msfconsole: warning: Exception in finalizer #<Proc:0x0000007d330e8548 /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/ruby_thread_local_var.rb:85>
/data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/ruby_thread_local_var.rb:86:in new': can't alloc thread (ThreadError) from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/ruby_thread_local_var.rb:86:in block in threadlocal_finalizer'
/data/data/com.termux/files/usr/bin/msfconsole: warning: Exception in finalizer #<Proc:0x0000007d330e86d8 /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/ruby_thread_local_var.rb:85>
/data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/ruby_thread_local_var.rb:86:in new': can't alloc thread (ThreadError) from /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/ruby_thread_local_var.rb:86:in block in threadlocal_finalizer'

Gemsnotfound

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

NOT GETTING REVERSE TCP CONNECTION IN msfconsole

created backdoor using all the three framework i.e empire,fatrat, veil..and copied file to var/www/Html and downloaded it in my android phone(connected from the same network as in my kali) and then started msfconsole but at the end, it doesn't give reverse connection..also tried backdoor in my pc and android but the same error of not getting a reverse connection.
Started reverse TCP handler on xx:xx:xx:xx:8080

and then nothing happens....no reverse connection
also backdoored app isn't opening on phone or it is being closed...
NOTE:i am using hotspot to connect my windows machine and turned on NAT network also i used bridged network and created backdoor but the same error
if anyone can help me

[BUG]msf console command not found

Important
Do not duplicate, search your issue before creating one!

Describe the bug
A clear and concise description of what the bug is.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. OnePlus 8]
  • OS: [e.g. Android 10]
    Realme narazo
    Android 12

Luděk

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Unable to install packages in termux due to metasploit install

When i install any package with pkg install or with apt install it just says

W: GPG error: https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master gushmazuko InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 46C9F2CB506F14B4

and then terminates saying

N: Updating from such a repository can't be done securely, and is therefore disabled by default.

It wasn't a problem before installing metasploit framework.

Thanks for the help in advance.

Unable to install metasploit on phone properly

Hi, I am installing metasploit in termux on android, but it showed installation complete, but when i type msfconcole, it showing many errors like "gem not found exception".
WhatsApp Image 2021-12-05 at 10 20 55 AM (1)
WhatsApp Image 2021-12-05 at 10 20 55 AM

Smartphone:

  • Oneplus 8 PRO
  • Android 11

[BUG]

Important
The following signatures couldn't be verified because the public key is not available
Describe the bug
pkg update not properly work
W: GPG error: https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master gushmazuko InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 46C9F2CB506F14B4
E: The repository 'https://github.com/gushmazuko/metasploit_in_termux/raw/master gushmazuko InRelease' is not signed.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).

A clear and concise description of what the bug is.

Screenshots
Screenshot_2021-10-06-12-40-26-831_com termux

Smartphone (please complete the following information):

  • Device: [e.g. resmi 9 power]
  • OS: [e.g. Android 10]

Msf not properly installed :(

I was trying to install metasploit from your script but metasploit didn't installed properly.I tried many times with full fresh termux but same result.I would be grateful to you if you kindly see my problem

Device info:-

  • Device: [Realme C3 (rmx2020)]
  • OS: [Android 10]
    Screenshot_2022-01-18-00-15-18-93
    Screenshot_2022-01-18-00-15-16-20

Data

How much data it's takes ???

Metasploit ruby 3 + + is supported

IMG_20211115_093448
i have try metasploit with ruby3 its working and no error output

First install package need to use for installation like git, postgresql dll

INSTALLING METASPLOIT-FRAMEWORK

cd $PREFIX/share
git clone https://github.com/rapid7/metasploit-framework.git --depth=1

# link msfconsole and msfvenom to usr/bin
cd metasploit-framework
ln -s $PREFIX/share/metasploit-framework/msfconsole $PREFIX/bin

ln -s $PREFIX/share/metasploit-framework/msfvenom $PREFIX/bin

INSTALLATION AND COMPILING RUBY 3

pkg install ruby
cd $HOME/metasploit-framework
sed '/rbnacl/d' -i Gemfile.lock
sed '/rbnacl/d' -i metasploit-framework.gemspec
gem install bundler
sed 's|nokogiri (1.*)|nokogiri (1.8.0)|g' -i Gemfile.lock

# nokogiri version
gem install nokogiri -v 1.8.0 -- --use-system-libraries
gem install actionpack
bundle update activesupport
bundle update --bundler
bundle install -j$(nproc --all)

$PREFIX/bin/find -type f -executable -exec termux-fix-shebang \{\} \;


IMG_20211115_093448
IMG_20211115_093435
compiling done

[BUG] How I can connect db

Last Version has not ./postgresql_ctl.sh start
include.

Smartphone (please complete the following information):

  • Device: Sansung Galaxy Note 9
  • OS: Android 10

'bundle install' not work

$ msfconsole
Could not find rake-12.3.3 in any of the sources
Run bundle install to install missing gems.
$ bundle install
Could not locate Gemfile

After install the console errors out

####################################
$ msfconsole
metasploit-credential not in the bundle, so Metasploit::Credential creation will fail for Msf::DBManager
Traceback (most recent call last):
31: from /data/data/com.termux/files/usr/bin/msfconsole:48:in <main>' 30: from /data/data/com.termux/files/usr/bin/msfconsole:48:in require'
29: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload_generator.rb:2:in <top (required)>' 28: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload_generator.rb:2:in require'
27: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload/apk.rb:3:in <top (required)>' 26: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/payload/apk.rb:3:in require'
25: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core.rb:47:in <top (required)>' 24: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/backports-3.11.4/lib/backports/std_lib.rb:9:in require_with_backports'
23: from /data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/backports-3.11.4/lib/backports/std_lib.rb:9:in require' 22: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/db_manager.rb:24:in <top (required)>'
21: from /data/data/com.termux/files/home/metasploit-framework/lib/msf/core/db_manager.rb:65:in <class:DBManager>' 20: from /data/data/com.termux/files/home/metasploit-framework/lib/metasploit/framework/require.rb:115:in optionally_include_metasploit_credential_creation'
19: from /data/data/com.termux/files/hom

Getting this issue while running msfconsole

16: from ./msfconsole:17:in <main>' 15: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require'
14: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require' 13: from /data/data/com.termux/files/home/metasploit-framework/config/boot.rb:26:in <top (required)>'
12: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require' 11: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in require'
10: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/setup.rb:10:in <top (required)>' 9: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/ui/shell.rb:88:in silence'
8: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/ui/shell.rb:136:in with_level' 7: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/setup.rb:10:in block in <top (required)>'
6: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler.rb:149:in setup' 5: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/runtime.rb:22:in setup'
4: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/shared_helpers.rb:76:in set_bundle_environment' 3: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/shared_helpers.rb:297:in set_bundle_variables'
2: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/bundler/rubygems_integration.rb:223:in bin_path' 1: from /data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems.rb:254:in bin_path'
/data/data/com.termux/files/usr/lib/ruby/2.7.0/rubygems.rb:277:in find_spec_for_exe': Could not find 'bundler' (2.3.4) required by your /data/data/com.termux/files/home/metasploit-framework/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:2.3.4`

Msfconsole

Segmentation faultetasploit FRamework console.../
Please anyone help me..😖

Can't run metasploit

$ msfconsole
WARNING: linker: ruby: unused DT entry: type 0x1d arg 0x106
WARNING: linker: /data/data/com.termux/files/usr/lib/libruby.so.2.7.2: unused DT entry: type 0x1d arg 0x8201
CANNOT LINK EXECUTABLE: cannot locate symbol "__aeabi_memcpy" referenced by "/data/data/com.termux/files/usr/lib/libruby.so.2.7.2"...
page record for 0xb6f6602c was not found (block_size=16)

Why can't I run msfconsole?

Windows uac bypass error

Whichever uac bypass option I choose, this error is always present
Exploit completed, but no session was created.
for example
msf6 exploit (windows / local / bypassuac_fodhelper)> set session 4
session => 4
msf6 exploit (windows / local / bypassuac_fodhelper)> set lhost 0.0.0.0
lhost => 0.0.0.0
msf6 exploit (windows / local / bypassuac_fodhelper)> set lport 4444
lport => 4444
msf6 exploit (windows / local / bypassuac_fodhelper)> exploit

And I get this error no matter which exploit I choose

[] Started reverse TCP handler on 0.0.0.0:4444
[
] UAC is Enabled, checking level...
[+] Part of Administrators group! Continuing...
[+] UAC is set to Default
[+] BypassUAC can bypass this setting, continuing...
[] Configuring payload and stager registry keys ...
[
] Executing payload: C:\WINDOWS\system32\cmd.exe /c C:\WINDOWS\System32\fodhelper.exe
[] Cleaining up registry keys ...
[
] Exploit completed, but no session was created.

.Yeah And I use Ngrok port forwarding I don't know it influences anything on it

When i run the msfconsole this is what i

WARNING: linker: ruby: unused DT entry: type 0x1d arg 0x106
WARNING: linker: /data/data/com.termux/files/usr/lib/libruby.so.2.7.2: unused DT entry: type 0x1d arg 0x8201
CANNOT LINK EXECUTABLE: cannot locate symbol "__aeabi_memcpy" referenced by "/data/data/com.termux/files/usr/lib/libruby.so.2.7.2"...
page record for 0xb6f0102c was not found (block_size=16)
$

$ msfconsole /data/data/com.termux/files/usr/bin/env: ‘ruby’: No such file or directory

====================== * =======================
Installation complete.
To start msf database use: ./postgresql_ctl.sh start
Launch metasploit by executing: msfconsole
====================== * =======================
~ $ ./postgresql_ctl.sh start
./postgresql_ctl.sh: line 3: pg_ctl: command not found
~ $ ./postgresql_ctl.sh start
./postgresql_ctl.sh: line 3: pg_ctl: command not found
~ $ msfconsole
/data/data/com.termux/files/usr/bin/env: ‘ruby’: No such file or directory

How do I resolve the problem?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.