MCPcopy Create free account
hub / github.com/Hackmanit/Web-Cache-Vulnerability-Scanner / clcl2

Function clcl2

pkg/request_smuggling.go:142–161  ·  view source on GitHub ↗
(path string, headers string)

Source from the content-addressed store, hash-verified

140}
141
142func clcl2(path string, headers string) string {
143 httpMethod := "POST"
144 if Config.Website.Cache.CBisHTTPMethod {
145 httpMethod = Config.Website.Cache.CBName
146 }
147 payload := fmt.Sprintf(""+
148 "%s %s HTTP/1.1\r\n"+ // POST /about HTTP/1.1
149 "Host: %s\r\n"+ // Host: example.com
150 "%s"+ // *Additional Headers generated*
151 "Content-Length: 6\r\n"+ // Content-Length: 11
152 "Content-Length: 4\r\n"+ // Content-Length: 10
153 "\r\n"+ //
154 "M\r\n"+ // M
155 "1\r\n"+ // 1
156 "0\r\n"+ // 0
157 "X"+ // X
158 "", httpMethod, path, Config.Website.Url.Host, headers)
159
160 return payload
161}
162
163func httpRequestSmuggling(req string, result *reportResult, proxyUrl *url.URL) {
164 /*

Callers 1

ScanHTTPRequestSmugglingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected