Skip to content

Commit 0dcfb51

Browse files
author
jvazquez-r7
committed
cleanup for sap_soap_rfc_system_info
1 parent 1a10c27 commit 0dcfb51

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

modules/auxiliary/scanner/sap/sap_soap_rfc_system_info.rb

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ def extract_field(data, elem)
6464
def report_note_sap(type, data, value)
6565
# create note
6666
report_note(
67-
:host => rhost,
68-
:port => rport,
69-
:proto => 'tcp',
70-
:sname => 'sap',
71-
:type => type,
72-
:data => data + value
73-
) if data
67+
:host => rhost,
68+
:port => rport,
69+
:proto => 'tcp',
70+
:sname => 'sap',
71+
:type => type,
72+
:data => data + value
73+
) if data
7474
# update saptbl for output
7575
@saptbl << [ data, value ]
7676
end
@@ -122,14 +122,12 @@ def run_host(ip)
122122
# create table for output
123123
@saptbl = Msf::Ui::Console::Table.new(
124124
Msf::Ui::Console::Table::Style::Default,
125-
'Header' => "[SAP] SOAP RFC_SYSTEM_INFO",
126-
'Prefix' => "\n",
127-
'Postfix' => "\n",
128-
'Indent' => 1,
129-
'Columns' =>[
130-
"Key",
131-
"Value"
132-
])
125+
'Header' => "[SAP] SOAP RFC_SYSTEM_INFO",
126+
'Prefix' => "\n",
127+
'Postfix' => "\n",
128+
'Indent' => 1,
129+
'Columns' =>[ "Key", "Value" ]
130+
)
133131

134132
response = res.body
135133

0 commit comments

Comments
 (0)