Metasploit-framework: NoMethodError undefined method `get_service' for #Metasploit::Framework::DataService::RemoteHTTPDataService

Created on 23 Jul 2020  路  2Comments  路  Source: rapid7/metasploit-framework

How'd you do it?

Open msfconsole
use exploit/multi/http/tomcat_mgr_deploy
set the following parameters:
set RHOSTS <ip-address of metasploitable2 VM>
set RPORT 8180
set HttpPassword tomcat
set HttpUsername tomcat
set target 3 (Linux x86)
check (or run)

This section should also tell us any relevant information about the
environment; for example, if an exploit that used to work is failing,
tell us the victim operating system and service versions.
Were you following a specific guide/tutorial or reading documentation?

No

If yes link the guide/tutorial or documentation you were following here, otherwise you may omit this section.
Expected behavior

What should happen?

"check" should yield "taget is vulnerable"

Current behavior

What happens instead?

message:
Exploit failed (multi/http/tomcat_mgr_deploy): NoMethodError undefined method `get_service' for #Metasploit::Framework::DataService::RemoteHTTPDataService:0x0000000003fd4910
Did you mean? get_msf_version
Check failed: The state could not be determined.

You might also want to check the last ~1k lines of
/opt/metasploit/apps/pro/engine/config/logs/framework.log or
~/.msf4/logs/framework.log for relevant stack traces

the log shows the same message.

System stuff
Metasploit version

Framework: 5.0.100-dev-
Console : 5.0.100-dev-

I installed Metasploit with:

Kali package via apt

OS

Ubuntu 20.04
Linux ubie 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

bug confirmed database

Most helpful comment

All 2 comments

Confirmed as duplicate, closing for now as there's a workaround in the original issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fluit105 picture fluit105  路  3Comments

Sonya2010 picture Sonya2010  路  3Comments

jecoliho picture jecoliho  路  3Comments

felipee07 picture felipee07  路  3Comments

bugshere picture bugshere  路  3Comments