Skip to content

Commit cf10a0c

Browse files
committed
Use print_line instead of print
These modules should be using print_line instead of print
1 parent a815d92 commit cf10a0c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
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) # This needs to be print_line
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,13 @@ def listfiles(rhost)
146146
"sap_listlogfiles.xml",
147147
"SAP #{datastore['FILETYPE'].downcase}"
148148
)
149+
# Report to the user where this is stored
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) # Needs to be print_line
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) # Should be print_line
177177
end
178178
end
179179
end

0 commit comments

Comments
 (0)