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

Function tecl

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

Source from the content-addressed store, hash-verified

100}
101
102func tecl(path string, headers string) string {
103 httpMethod := "POST"
104 if Config.Website.Cache.CBisHTTPMethod {
105 httpMethod = Config.Website.Cache.CBName
106 }
107 payload := fmt.Sprintf(""+
108 "%s %s HTTP/1.1\r\n"+ // POST /about HTTP/1.1
109 "Host: %s\r\n"+ // Host: example.com
110 "%s"+ // *Additional Headers generated*
111 "Transfer-Encoding: chunked\r\n"+ // Transfer-Encoding: chunked
112 "Content-Length: 6\r\n"+ // Content-Length: 6
113 "\r\n"+ //
114 "0\r\n"+ // 0
115 "\r\n"+ //
116 "X"+ // X
117 "", httpMethod, path, Config.Website.Url.Host, headers)
118 return payload
119}
120
121func clcl(path string, headers string) string {
122 httpMethod := "POST"

Callers 1

ScanHTTPRequestSmugglingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected