gushmazuko / metasploit_in_termux

Install Metasploit Framework 6 in Termux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi, Issue On Opening MsfConsole.

UPMMASTER opened this issue · comments

Hi, I recently installed Metasploit on Termux, but after the installation finished, while running the ./msfconsole command I Got An Error.
Screenshot_2024-01-26-19-01-33-312_com termux
Thank you for helping me.
Smart Phone:
Xiaomi 11T
Root:Unlocked
Enough Storage(79GB Remaining)
Miui 14

@UPMMASTER #260 (duplicate)

but how to use this command $PREFIX/opt/metasploit-framework
??
i used and it says : "Is a directory"
.
then i cant use this command
sed -i '0,/"/etc/resolv.conf"/s//"/data/data/com.termux/files/usr/etc/resolv.conf"/' $(find . -name 'resolver.rb')
because of error "no input files"
i should run $PREFIX/opt/metasploit-framework but i dont know how and where to run.
Can You Help Me?
Sorry to bother you.

[*] Starting the MetasPloit Framework consol/data/data/com.termux/files/usr/opt/metasploit-framework/lib/net/dns/resolver.rb:1087:in foreach': No such file or directory @ rb_sysopen - /etc/resolv.conf (Errno::ENOENT) from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/net/dns/resolver.rb:1087:in parse_config_file'
from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/resolver.rb:66:in initialize' from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/cached_resolver.rb:25:in initialize'
from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/msf/ui/console/driver.rb:83:in new' from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/msf/ui/console/driver.rb:83:in initialize'
from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/metasploit/framework/command/console.rb:66:in new' from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/metasploit/framework/command/console.rb:66:in driver'
from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/metasploit/framework/command/console.rb:54:in start' from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in start'
from
/data/data/com.termux/files/usr/bin/msfconsole:23:in `

'

How to solve this
Uploading Screenshot_20240127-065054.png…

#260
go with this

Uploading Screenshot_2024-01-27-06-09-01-287_com.termux.jpg…

@UPMMASTER #260 (duplicate)

Thank you so much it worked.
Screenshot_2024-01-27-06-08-38-504_com termux

@Rkcoder0425 Let me tell you how.
thank to dev, i got some knowledge, type these in termux.
cd /data/data/com.termux/files/usr/opt/metasploit-framework
and this
sed -i '0,/"/etc/resolv.conf"/s//"/data/data/com.termux/files/usr/etc/resolv.conf"/' $(find . -name 'resolver.rb')

Screenshot_20240127-095657
Not working brooo

Screenshot_20240127-095657 Not working brooo

you just paste that without escaping slashes, thats your mistake not our side