gushmazuko / metasploit_in_termux

Install Metasploit Framework 6 in Termux
MIT License
1.59k stars 262 forks source link

[BUG] #270

Closed 1bharath-yadav closed 9 months ago

1bharath-yadav commented 9 months ago

Metasploit tip: Use the analyze command to suggest runnable modules for hosts /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/resolver.rb:14:in <module:DNS>': uninitialized constant Net::DNS (NameError) from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/resolver.rb:8:in' from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/resolver.rb:7:in <module:Rex>' from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/resolver.rb:6:in<top (required)>' from <internal:/data/data/com.termux/files/usr/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in require' from <internal:/data/data/com.termux/files/usr/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:inrequire' from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require' from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:30:inrequire' from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/cached_resolver.rb:13:in <module:DNS>' from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/cached_resolver.rb:7:in' from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/cached_resolver.rb:6:in <module:Rex>' from /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/cached_resolver.rb:5:in<top (required)>' from <internal:/data/data/com.termux/files/usr/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in require' from <internal:/data/data/com.termux/files/usr/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:inrequire' from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require' from /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:30:inrequire' 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:innew' 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:instart' 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

'

dedshit commented 9 months ago

cat /data/data/com.termux/files/usr/opt/metasploit-framework/lib/rex/proto/dns/resolver.rb > r.rb; cp r.rb /sdcard

run it and send that r.rb file

1bharath-yadav commented 9 months ago

Wait I reinstalling

dedshit commented 9 months ago

Wait I reinstalling

for what ?

1bharath-yadav commented 9 months ago

Msf console new curl link

On Thu, 25 Jan, 2024, 10:15 pm dedshit, @.***> wrote:

Wait I reinstalling

for what ?

— Reply to this email directly, view it on GitHub https://github.com/gushmazuko/metasploit_in_termux/issues/270#issuecomment-1910591471, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBOPGZGVLIF6OTNZ52V6XJLYQKD35AVCNFSM6AAAAABCK2IBDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJQGU4TCNBXGE . You are receiving this because you authored the thread.Message ID: @.***>

1bharath-yadav commented 9 months ago

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

In metasploit folder = sed -i '0,/\"\/etc\/resolv.conf\"/s//\"\/data\/data\/com.termux\/files\/usr\/etc\/resolv.conf\"/' $(find . -name 'resolver.rb')

Solved

1bharath-yadav commented 9 months ago

Solved

dedshit commented 9 months ago

ok

dedshit commented 9 months ago

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

In metasploit folder = sed -i '0,/"/etc/resolv.conf"/s//"/data/data/com.termux/files/usr/etc/resolv.conf"/' $(find . -name 'resolver.rb')

Solved

without escaping slash it wont work

also is this answer for me or someone else ?

1bharath-yadav commented 9 months ago

Thanks anyway

On Thu, 25 Jan, 2024, 10:28 pm dedshit, @.***> wrote:

ok

— Reply to this email directly, view it on GitHub https://github.com/gushmazuko/metasploit_in_termux/issues/270#issuecomment-1910615622, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBOPGZGGTPEP2J7V5XE3CI3YQKFMZAVCNFSM6AAAAABCK2IBDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJQGYYTKNRSGI . You are receiving this because you modified the open/close state.Message ID: @.***>

dedshit commented 9 months ago

no prob :)