diff --git a/modules/auxiliary/scanner/http/epmp1000_dump_config.rb b/modules/auxiliary/scanner/http/epmp1000_dump_config.rb index 5c1d9c1c25..caec128874 100644 --- a/modules/auxiliary/scanner/http/epmp1000_dump_config.rb +++ b/modules/auxiliary/scanner/http/epmp1000_dump_config.rb @@ -102,9 +102,16 @@ class MetasploitModule < Msf::Auxiliary if good_response get_epmp_ver = res.body.match(/"sw_version">([^<]*)/) - epmp_ver = get_epmp_ver[1] - print_good("#{rhost}:#{rport} - Running Cambium ePMP 1000 version #{epmp_ver}...") - return true + if !get_epmp_ver.nil? + epmp_ver = get_epmp_ver[1] + if !epmp_ver.nil? + print_good("#{rhost}:#{rport} - Running Cambium ePMP 1000 version #{epmp_ver}...") + return true + else + print_good("#{rhost}:#{rport} - Running Cambium ePMP 1000...") + return true + end + end else print_error("#{rhost}:#{rport} - Application does not appear to be Cambium ePMP 1000. Module will not continue.") return false