Skip to content

Commit 3417c3f

Browse files
committed
Land rapid7#5181, Revert unwanted URI encoding
2 parents 2a327b7 + 4f903a6 commit 3417c3f

21 files changed

+25
-1
lines changed

modules/auxiliary/scanner/sap/sap_soap_bapi_user_create1.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def run_host(ip)
8181
'headers' => {
8282
'SOAPAction' => 'urn:sap-com:document:sap:rfc:functions',
8383
},
84+
'encode_params' => false,
8485
'vars_get' => {
8586
'sap-client' => datastore['CLIENT'],
8687
'sap-language' => 'EN'

modules/auxiliary/scanner/sap/sap_soap_rfc_brute_login.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def bruteforce(username,password,client)
123123
'cookie' => "sap-usercontext=sap-language=EN&sap-client=#{client}",
124124
'ctype' => 'text/xml; charset=UTF-8',
125125
'authorization' => basic_auth(username, password),
126+
'encode_params' => false,
126127
'headers' =>
127128
{
128129
'SOAPAction' => 'urn:sap-com:document:sap:rfc:functions',

modules/auxiliary/scanner/sap/sap_soap_rfc_dbmcli_sxpg_call_system_command_exec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def exec_command(ip,data)
102102
'headers' => {
103103
'SOAPAction' => 'urn:sap-com:document:sap:rfc:functions',
104104
},
105+
'encode_params' => false,
105106
'vars_get' => {
106107
'sap-client' => datastore['CLIENT'],
107108
'sap-language' => 'EN'

modules/auxiliary/scanner/sap/sap_soap_rfc_dbmcli_sxpg_command_exec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def exec_command(ip,data)
103103
'headers' => {
104104
'SOAPAction' => 'urn:sap-com:document:sap:rfc:functions',
105105
},
106+
'encode_params' => false,
106107
'vars_get' => {
107108
'sap-client' => datastore['CLIENT'],
108109
'sap-language' => 'EN'

modules/auxiliary/scanner/sap/sap_soap_rfc_ping.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def run_host(ip)
7171
'headers' => {
7272
'SOAPAction' => 'urn:sap-com:document:sap:rfc:functions'
7373
},
74+
'encode_params' => false,
7475
'vars_get' => {
7576
'sap-client' => client,
7677
'sap-language' => 'EN'

modules/auxiliary/scanner/sap/sap_soap_rfc_read_table.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def exec(ip,fields)
8989
'cookie' => "sap-usercontext=sap-language=EN&sap-client=#{datastore['CLIENT']}",
9090
'authorization' => basic_auth(datastore['USERNAME'], datastore['PASSWORD']),
9191
'ctype' => 'text/xml; charset=UTF-8',
92+
'encode_params' => false,
9293
'headers' => {
9394
'SOAPAction' => 'urn:sap-com:document:sap:rfc:functions',
9495
},

modules/auxiliary/scanner/sap/sap_soap_rfc_susr_rfc_user_interface.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def run_host(ip)
7575
'data' => data,
7676
'cookie' => "sap-usercontext=sap-language=EN&sap-client=#{datastore['CLIENT']}",
7777
'ctype' => 'text/xml; charset=UTF-8',
78+
'encode_params' => false,
7879
'authorization' => basic_auth(datastore['USERNAME'], datastore['PASSWORD']),
7980
'headers' => {
8081
'SOAPAction' => 'urn:sap-com:document:sap:rfc:functions'

modules/auxiliary/scanner/sap/sap_soap_rfc_sxpg_call_system_exec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def run_host(ip)
7878
'data' => data,
7979
'cookie' => "sap-usercontext=sap-language=EN&sap-client=#{datastore['CLIENT']}",
8080
'ctype' => 'text/xml; charset=UTF-8',
81+
'encode_params' => false,
8182
'authorization' => basic_auth(datastore['USERNAME'], datastore['PASSWORD']),
8283
'headers' => {
8384
'SOAPAction' => 'urn:sap-com:document:sap:rfc:functions',

modules/auxiliary/scanner/sap/sap_soap_rfc_sxpg_command_exec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def run_host(ip)
7878
'data' => data,
7979
'cookie' => "sap-usercontext=sap-language=EN&sap-client=#{datastore['CLIENT']}",
8080
'ctype' => 'text/xml; charset=UTF-8',
81+
'encode_params' => false,
8182
'authorization' => basic_auth(datastore['USERNAME'], datastore['PASSWORD']),
8283
'headers' =>{
8384
'SOAPAction' => 'urn:sap-com:document:sap:rfc:functions',

modules/auxiliary/scanner/sap/sap_soap_rfc_system_info.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def run_host(ip)
9494
'data' => data,
9595
'cookie' => "sap-usercontext=sap-language=EN&sap-client=#{datastore['CLIENT']}",
9696
'ctype' => 'text/xml; charset=UTF-8',
97+
'encode_params' => false,
9798
'authorization' => basic_auth(datastore['USERNAME'], datastore['PASSWORD']),
9899
'headers' =>{
99100
'SOAPAction' => 'urn:sap-com:document:sap:rfc:functions',

0 commit comments

Comments
 (0)