File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.5.1.10 "
21+ VERSION = "1.5.1.11 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -193,11 +193,18 @@ def _retryProxy(**kwargs):
193193 warnMsg += "(e.g. 'https://help.ubuntu.com/community/Tor')"
194194 else :
195195 warnMsg = "if the problem persists please check that the provided "
196- warnMsg += "target URL is reachable. In case that it is, "
197- warnMsg += "you can try to rerun with "
196+ warnMsg += "target URL is reachable"
197+
198+ items = []
198199 if not conf .randomAgent :
199- warnMsg += "switch '--random-agent' and/or "
200- warnMsg += "proxy switches ('--ignore-proxy', '--proxy',...)"
200+ items .append ("switch '--random-agent'" )
201+ if not any ((conf .proxy , conf .proxyFile , conf .tor )):
202+ items .append ("proxy switches ('--proxy', '--proxy-file'...)" )
203+ if items :
204+ warnMsg += ". In case that it is, "
205+ warnMsg += "you can try to rerun with "
206+ warnMsg += " and/or " .join (items )
207+
201208 singleTimeWarnMessage (warnMsg )
202209
203210 elif conf .threads > 1 :
You can’t perform that action at this time.
0 commit comments