Skip to content

Commit b2a5754

Browse files
committed
Proxies dislike non-browser user-agents
1 parent 365e08b commit b2a5754

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/core/option.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2542,6 +2542,11 @@ def _basicOptionValidation():
25422542
errMsg = "value for option '--first' (firstChar) must be smaller than or equal to value for --last (lastChar) option"
25432543
raise SqlmapSyntaxException(errMsg)
25442544

2545+
if conf.proxyFile and not any((conf.randomAgent, conf.mobile, conf.agent)):
2546+
warnMsg = "usage of switch '--random-agent' is strongly recommended when "
2547+
warnMsg += "using option '--proxy-file'"
2548+
logger.warn(warnMsg)
2549+
25452550
if conf.textOnly and conf.nullConnection:
25462551
errMsg = "switch '--text-only' is incompatible with switch '--null-connection'"
25472552
raise SqlmapSyntaxException(errMsg)

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.5.2.9"
21+
VERSION = "1.5.2.10"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)