mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Minor cosmetics
This commit is contained in:
parent
9af2e68b7e
commit
779b352f6b
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.5.1.10"
|
||||
VERSION = "1.5.1.11"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
|
|
@ -193,11 +193,18 @@ class Connect(object):
|
|||
warnMsg += "(e.g. 'https://help.ubuntu.com/community/Tor')"
|
||||
else:
|
||||
warnMsg = "if the problem persists please check that the provided "
|
||||
warnMsg += "target URL is reachable. In case that it is, "
|
||||
warnMsg += "you can try to rerun with "
|
||||
warnMsg += "target URL is reachable"
|
||||
|
||||
items = []
|
||||
if not conf.randomAgent:
|
||||
warnMsg += "switch '--random-agent' and/or "
|
||||
warnMsg += "proxy switches ('--ignore-proxy', '--proxy',...)"
|
||||
items.append("switch '--random-agent'")
|
||||
if not any((conf.proxy, conf.proxyFile, conf.tor)):
|
||||
items.append("proxy switches ('--proxy', '--proxy-file'...)")
|
||||
if items:
|
||||
warnMsg += ". In case that it is, "
|
||||
warnMsg += "you can try to rerun with "
|
||||
warnMsg += " and/or ".join(items)
|
||||
|
||||
singleTimeWarnMessage(warnMsg)
|
||||
|
||||
elif conf.threads > 1:
|
||||
|
|
Loading…
Reference in New Issue
Block a user