File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
modules/auxiliary/scanner/sap Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -234,12 +234,14 @@ def enum_instance(rhost)
234
234
if webmethods
235
235
webmethods_output = [ ] # create empty webmethods array
236
236
webmethods_arr = webmethods . split ( "," )
237
- print_good ( "#{ rhost } :#{ rport } [SAP] Unprotected Webmethods :::" )
238
237
webmethods_arr . each do | webm |
239
238
# Only add webmethods not found in protectedweb_arr
240
- webmethods_output << webm if not protectedweb_arr . include? ( webm )
239
+ webmethods_output << webm unless protectedweb_arr && protectedweb_arr . include? ( webm )
240
+ end
241
+ if webmethods_output
242
+ print_good ( "#{ rhost } :#{ rport } [SAP] Unprotected Webmethods :::" )
243
+ print_status ( "#{ webmethods_output . join ( ',' ) } " )
241
244
end
242
- print_status ( "#{ webmethods_output . join ( ',' ) } " ) if webmethods_output
243
245
report_note ( :host => rhost ,
244
246
:proto => 'tcp' ,
245
247
:port => rport ,
You can’t perform that action at this time.
0 commit comments