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
I believe this is a duplicate of https://github.com/rapid7/metasploit-framework/issues/11978
Confirmed as duplicate, closing for now as there's a workaround in the original issue.
Most helpful comment
I believe this is a duplicate of https://github.com/rapid7/metasploit-framework/issues/11978