Skip to content

Commit 546c523

Browse files
author
jvazquez-r7
committed
Land rapid7#2252, @wchen-r7's patch for print_line vs print
2 parents 8adc4f0 + a8ca32a commit 546c523

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

modules/auxiliary/scanner/sap/sap_mgmt_con_getprocesslist.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def getprocesslist(rhost)
139139
saptbl << [ output[0], output[1], output[3], output[4], output[5] ]
140140
end
141141

142-
print(saptbl.to_s)
142+
print_line(saptbl.to_s)
143143
return
144144
elsif fault
145145
print_error("#{rhost}:#{rport} [SAP] Error code: #{faultcode}")

modules/auxiliary/scanner/sap/sap_mgmt_con_listlogfiles.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,21 @@ def listfiles(rhost)
138138
"Timestamp"
139139
])
140140

141-
store_loot(
141+
f = store_loot(
142142
"sap.#{datastore['FILETYPE'].downcase}file",
143143
"text/xml",
144144
rhost,
145145
saptbl.to_s,
146146
"sap_listlogfiles.xml",
147147
"SAP #{datastore['FILETYPE'].downcase}"
148148
)
149+
vprint_status("sap_listlogfiles.xml stored in: #{f}")
149150

150151
env.each do |output|
151152
saptbl << [ output[0], output[1], output[2] ]
152153
end
153154

154-
print(saptbl.to_s)
155+
print_line(saptbl.to_s)
155156
return
156157

157158
elsif fault

modules/auxiliary/scanner/sap/sap_router_info_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def run_host(ip)
173173
end
174174
disconnect
175175
# TODO: This data should be saved somewhere. A note on the host would be nice.
176-
print(saptbl.to_s)
176+
print_line(saptbl.to_s)
177177
end
178178
end
179179
end

0 commit comments

Comments
 (0)