From ee88ccf0acd750b284a7edaa82c6d7cd522970e9 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 17 Apr 2011 08:33:46 +0000 Subject: [PATCH] well, this could be important :) --- lib/core/option.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index ebea28b2f..10366bb43 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1014,10 +1014,16 @@ def __setHTTPExtraHeaders(): if header and value: conf.httpHeaders.append((header, value)) + elif not conf.httpHeaders or len(conf.httpHeaders) == 1: conf.httpHeaders.append(("Accept-Language", "en-us,en;q=0.5")) conf.httpHeaders.append(("Accept-Charset", "ISO-8859-15,utf-8;q=0.7,*;q=0.7")) + # Invalidating any proxy mechanism + # Reference: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html + conf.httpHeaders.append(("Cache-Control", "no-cache,no-store")) + conf.httpHeaders.append(("Pragma", "no-cache")) + def __defaultHTTPUserAgent(): """ @return: default sqlmap HTTP User-Agent header