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

Function clcl

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

Source from the content-addressed store, hash-verified

119}
120
121func clcl(path string, headers string) string {
122 httpMethod := "POST"
123 if Config.Website.Cache.CBisHTTPMethod {
124 httpMethod = Config.Website.Cache.CBName
125 }
126 payload := fmt.Sprintf(""+
127 "%s %s HTTP/1.1\r\n"+ // POST /about HTTP/1.1
128 "Host: %s\r\n"+ // Host: example.com
129 "%s"+ // *Additional Headers generated*
130 "Content-Length: 10\r\n"+ // Content-Length: 10
131 "Content-Length: 11\r\n"+ // Content-Length: 11
132 "\r\n"+ //
133 "M\r\n"+ // M
134 "1\r\n"+ // 1
135 "0\r\n"+ // 0
136 "X"+ // X
137 "", httpMethod, path, Config.Website.Url.Host, headers)
138
139 return payload
140}
141
142func clcl2(path string, headers string) string {
143 httpMethod := "POST"

Callers 1

ScanHTTPRequestSmugglingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected