Optim module and add doc

bug/bundler_fix
Erik Lenoir 2017-08-18 19:30:41 +02:00
parent b529c3551c
commit cde319a5ec
2 changed files with 7 additions and 9 deletions

View File

@ -5,8 +5,8 @@ This module seeks all settings.xml (Maven configuration file) on the target file
This module was successfully tested against:
- Ubuntu 14.04 and Maven 3.0.5
- Debian 9 and Maven 3.0.5
- Ubuntu 14.04 and Maven 3.0.5 with shell and meterpreter as session type
- Debian 9 and Maven 3.0.5 with shell and meterpreter as session type
## Verification Steps

View File

@ -55,15 +55,13 @@ class MetasploitModule < Msf::Post
def run
print_status("Finding user directories")
files = ""
if sysinfo
if sysinfo['OS'].include? "Windows"
case session.platform
when 'windows'
files = gatherwin
else
when 'unix', 'linux', 'bsd', 'osx'
files = gathernix
end
else
printerror("Incompatible session type, sysinfo is not available.")
return
else
print_error("Incompatible platform.")
end
if files.nil? || files.empty?
print_error("No settings.xml file found")