File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,16 @@ def is_app_epmp1000?
102
102
103
103
if good_response
104
104
get_epmp_ver = res . body . match ( /"sw_version">([^<]*)/ )
105
- epmp_ver = get_epmp_ver [ 1 ]
106
- print_good ( "#{ rhost } :#{ rport } - Running Cambium ePMP 1000 version #{ epmp_ver } ..." )
107
- return true
105
+ if !get_epmp_ver . nil?
106
+ epmp_ver = get_epmp_ver [ 1 ]
107
+ if !epmp_ver . nil?
108
+ print_good ( "#{ rhost } :#{ rport } - Running Cambium ePMP 1000 version #{ epmp_ver } ..." )
109
+ return true
110
+ else
111
+ print_good ( "#{ rhost } :#{ rport } - Running Cambium ePMP 1000..." )
112
+ return true
113
+ end
114
+ end
108
115
else
109
116
print_error ( "#{ rhost } :#{ rport } - Application does not appear to be Cambium ePMP 1000. Module will not continue." )
110
117
return false
You can’t perform that action at this time.
0 commit comments