Skip to content

Commit 37f7122

Browse files
committed
NameError undefined local variable or method output - fixed
1 parent 36bcc1f commit 37f7122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/sap/sap_soap_rfc_dbmcli_sxpg_command_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def exec_command(ip,data)
115115
return
116116
elsif res.body =~ /faultstring/
117117
error = res.body.scan(%r{<faultstring>(.*?)</faultstring>}).flatten
118-
0.upto(output.length-1) do |i|
118+
0.upto(error.length-1) do |i|
119119
print_error("[SAP] #{ip}:#{rport} - error #{error[i]}")
120120
end
121121
return

0 commit comments

Comments
 (0)