gushmazuko / metasploit_in_termux

Install Metasploit Framework 6 in Termux
MIT License
1.55k stars 255 forks source link

[BUG] please help #226

Closed Imoneimone closed 10 months ago

Imoneimone commented 1 year ago

When i open 'msfconsole' after installing the proccess

This command out like this.

No command msfconsole found, did you mean: Command bconsole in package bacula-fd Command jconsole in package openjdk-17

Screenshot_20230115-005953967 # How to solve this? Thanks for yourtime :')

Imoneimone commented 1 year ago

And after install.. I got this.. Screenshot_20230115-032746047

dedshit commented 1 year ago

run termux-info

Imoneimone commented 1 year ago

Screenshot_20230115-122233452

Imoneimone commented 1 year ago

I've rooted device., is that take effect bcause i've rooted my device?

dedshit commented 1 year ago

remove ruby and metasploit completely in lib & opt respectively

dedshit commented 1 year ago

I've rooted device., is that take effect bcause i've rooted my device?

no its not

Imoneimone commented 1 year ago

remove ruby and metasploit completely in lib & opt respectively

What commands i use?

Imoneimone commented 1 year ago

Or from where i can delete that lib&opt?

dedshit commented 1 year ago

/data/data/com.termux/files/usr/lib/ruby /data/data/com.termux/files/usr/opt/metasploit-framework

Imoneimone commented 1 year ago

I have not opt in my location . What should i do? Screenshot_20230115-131124290

dedshit commented 1 year ago

did u cloned metasploit manually in home dir ?

Imoneimone commented 1 year ago

Screenshot_20230115-132404534

Like this?

Imoneimone commented 1 year ago

Here when i type ls Screenshot_20230115-132740976

Imoneimone commented 1 year ago

When i launch " sh metsploit.sh ' I got this Screenshot_20230115-132909622

dedshit commented 1 year ago

Screenshot_20230115-132404534

Like this?

remove that too

Imoneimone commented 1 year ago

Still cant Screenshot_20230115-134548393

dedshit commented 1 year ago

apt install -y binutils python autoconf bison clang coreutils curl findutils apr apr-util postgresql openssl readline libffi libgmp libpcap libsqlite libgrpc libtool libxml2 libxslt ncurses make ncurses-utils ncurses git wget unzip zip tar termux-tools termux-elf-cleaner pkg-config git ruby

git clone https://github.com/rapid7/metasploit-framework.git --depth=1

cd metasploit-framework

gem install bundler

declare NOKOGIRI_VERSION=$(cat Gemfile.lock | grep -i nokogiri | sed 's/nokogiri [\(\)]/(/g' | cut -d ' ' -f 5 | grep -oP "(.).[[:digit:]][\w+]?[.].")

gem install nokogiri -v $NOKOGIRI_VERSION -- --use-system-libraries

bundle config build.nokogiri "--use-system-libraries --with-xml2-include=$PREFIX/include/libxml2"; bundle install

gem install actionpack

bundle update activesupport

bundle install -j$(nproc --all)

rm $PREFIX/bin/msfconsole; rm $PREFIX/bin/msfvenom

ln -s metasploit-framework/msfconsole $PREFIX/bin/

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

Imoneimone commented 1 year ago

Report issues at https://termux.dev/issues ~ $ apt install -y binutils python autoconf bison clang coreutils curl findutils apr apr-util postgresql openssl readline libffi libgmp libpcap libsqlite libgrpc libtool libxml2 libxslt ncurses make ncurses-utils ncurses git wget unzip zip tar termux-tools termux-elf-cleaner pkg-config git ruby Reading package lists... Done Building dependency tree... Done Reading state information... Done binutils is already the newest version (2.39-4). python is already the newest version (3.11.1). autoconf is already the newest version (2.71-2). bison is already the newest version (3.8.2-3). clang is already the newest version (15.0.7). coreutils is already the newest version (9.1-2). curl is already the newest version (7.87.0). findutils is already the newest version (4.9.0-2). apr is already the newest version (1.7.0-8). apr-util is already the newest version (1.6.1-6). postgresql is already the newest version (15.1-1). openssl is already the newest version (1:3.0.7). readline is already the newest version (8.2.1). libffi is already the newest version (3.4.4). libgmp is already the newest version (6.2.1-2). libpcap is already the newest version (1.10.3). libsqlite is already the newest version (3.40.1). libgrpc is already the newest version (1.51.1). libtool is already the newest version (2.4.7). libxml2 is already the newest version (2.10.3). libxslt is already the newest version (1.1.37). ncurses is already the newest version (6.4-1). make is already the newest version (4.4). ncurses-utils is already the newest version (6.4-1). git is already the newest version (2.39.0). wget is already the newest version (1.21.3-5). unzip is already the newest version (6.0-9). zip is already the newest version (3.0-5). tar is already the newest version (1.34-1). termux-tools is already the newest version (1.36.0). termux-elf-cleaner is already the newest version (2.1.1-2). pkg-config is already the newest version (0.29.2-2). ruby is already the newest version (3.2.0). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ~ $ git clone https://github.com/rapid7/metasploit-framework.git --depth=1 Cloning into 'metasploit-framework'... remote: Enumerating objects: 14232, done. remote: Counting objects: 100% (14232/14232), done. remote: Compressing objects: 100% (12268/12268), done. remote: Total 14232 (delta 1772), reused 6667 (delta 1167), pack-reused 0 Receiving objects: 100% (14232/14232), 59.68 MiB | 179.00 KiB/s, done. Resolving deltas: 100% (1772/1772), done. Updating files: 100% (12239/12239), done. ~ $ cd metasploit-framework ~/metasploit-framework $ gem install bundler RubyGems' were not loaded. error_highlight' was not loaded. did_you_mean' was not loaded. syntax_suggest' was not loaded. /data/data/com.termux/files/usr/bin/gem:8:in require': cannot load such file -- rubygems/gem_runner (LoadError) from /data/data/com.termux/files/usr/bin/gem:8:in

' ~/metasploit-framework $ declare NOKOGIRI_VERSION=$(cat Gemfile.lock | grep -i nokogiri | sed 's/nokogiri [()]/(/g' | cut -d ' ' -f 5 | grep -oP "(.).[[:digit:]][\w+]?[.].") ~/metasploit-framework $ gem install nokogiri -v $NOKOGIRI_VERSION -- --use-system-libraries RubyGems' were not loaded. error_highlight' was not loaded. did_you_mean' was not loaded. syntax_suggest' was not loaded. /data/data/com.termux/files/usr/bin/gem:8:in require': cannot load such file -- rubygems/gem_runner (LoadError) from /data/data/com.termux/files/usr/bin/gem:8:in
' ~/metasploit-framework $ bundle config build.nokogiri "--use-system-libraries --with-xml2-include=$PREFIX/include/libxml2"; bundle install RubyGems' were not loaded.error_highlight' was not loaded. did_you_mean' was not loaded. syntax_suggest' was not loaded. /data/data/com.termux/files/usr/bin/bundle:9:in require': cannot load such file -- rubygems (LoadError) from /data/data/com.termux/files/usr/bin/bundle:9:in
' RubyGems' were not loaded. error_highlight' was not loaded. did_you_mean' was not loaded. syntax_suggest' was not loaded. /data/data/com.termux/files/usr/bin/bundle:9:in require': cannot load such file -- rubygems (LoadError) from /data/data/com.termux/files/usr/bin/bundle:9:in
' ~/metasploit-framework $ gem install actionpack RubyGems' were not loaded. error_highlight' was not loaded. did_you_mean' was not loaded. syntax_suggest' was not loaded. /data/data/com.termux/files/usr/bin/gem:8:in require': cannot load such file -- rubygems/gem_runner (LoadError) from /data/data/com.termux/files/usr/bin/gem:8:in
' ~/metasploit-framework $ bundle update activesupport RubyGems' were not loaded. error_highlight' was not loaded. did_you_mean' was not loaded. syntax_suggest' was not loaded. /data/data/com.termux/files/usr/bin/bundle:9:in require': cannot load such file -- rubygems (LoadError) from /data/data/com.termux/files/usr/bin/bundle:9:in
' ~/metasploit-framework $ rm $PREFIX/bin/msfconsole; rm $PREFIX/bin/msfvenom ~/metasploit-framework $ ln -s metasploit-framework/msfconsole $PREFIX/bin/ ~/metasploit-framework $ ln -s metasploit-framework/msfvenom $PREFIX/bin/

Imoneimone commented 1 year ago

I got this when type commands

Screenshot_20230115-144616746.jpg

dedshit commented 1 year ago

apt remove ruby

dedshit commented 1 year ago

apt remove ruby

i told you to remove ruby completely ; you just removed that ruby from lib & didnt remove from bin

dedshit commented 1 year ago

apt install ruby gem install bundler

declare NOKOGIRI_VERSION=$(cat Gemfile.lock | grep -i nokogiri | sed 's/nokogiri [\(\)]/(/g' | cut -d ' ' -f 5 | grep -oP "(.).[[:digit:]][\w+]?[.].")

gem install nokogiri -v $NOKOGIRI_VERSION -- --use-system-libraries

bundle config build.nokogiri "--use-system-libraries --with-xml2-include=$PREFIX/include/libxml2"; bundle install

gem install actionpack

bundle update activesupport

bundle install -j$(nproc --all)

run this part only

Imoneimone commented 1 year ago

Screenshot_20230115-153516404.jpg

I got this

dedshit commented 1 year ago

rm $PREFIX/bin/msfconsole; ln -s /data/data/com.termux/files/home/metasploit-framework/metasploit-framework/msfconsole $PREFIX/bin/

Imoneimone commented 1 year ago

Im sorry if bothering you,.. But i got this too... Screenshot_20230115-194505775

Imoneimone commented 1 year ago

SOLVED THANKS... Screenshot_20230115-200051621.jpg

SkyCreedPH commented 1 year ago

How to fix spell_checker?

dedshit commented 1 year ago

remove bundler version 2.1.4

SkyCreedPH commented 1 year ago

remove bundler version 2.1.4

Thank you

SkyCreedPH commented 1 year ago

remove bundler version 2.1.4

Bro can i get your discord?

dedshit commented 1 year ago

Bro can i get your discord?

only telegram & whatsapp

Saroj7377 commented 1 year ago

remove bundler version 2.1.4

Thanks brother its working

Hackno75 commented 1 year ago

Bro can i get your discord?

only telegram & whatsapp Bro it was showing like this an error occurred while installing nio4r (2.5.8), and bundler cannot continue help me out

Kaenzy commented 11 months ago

Idk but i type msfconsole its not working ._.