mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor modification
This commit is contained in:
parent
35fa710eed
commit
6f54be987f
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.4.1.47"
|
VERSION = "1.4.1.48"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
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)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -340,9 +340,9 @@ def errorUse(expression, dump=False):
|
||||||
else:
|
else:
|
||||||
stopLimit = int(count)
|
stopLimit = int(count)
|
||||||
|
|
||||||
infoMsg = "used SQL query returns "
|
debugMsg = "used SQL query returns "
|
||||||
infoMsg += "%d %s" % (stopLimit, "entries" if stopLimit > 1 else "entry")
|
debugMsg += "%d %s" % (stopLimit, "entries" if stopLimit > 1 else "entry")
|
||||||
logger.info(infoMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
elif count and not count.isdigit():
|
elif count and not count.isdigit():
|
||||||
warnMsg = "it was not possible to count the number "
|
warnMsg = "it was not possible to count the number "
|
||||||
|
|
|
@ -261,9 +261,9 @@ def unionUse(expression, unpack=True, dump=False):
|
||||||
else:
|
else:
|
||||||
stopLimit = int(count)
|
stopLimit = int(count)
|
||||||
|
|
||||||
infoMsg = "used SQL query returns "
|
debugMsg = "used SQL query returns "
|
||||||
infoMsg += "%d %s" % (stopLimit, "entries" if stopLimit > 1 else "entry")
|
debugMsg += "%d %s" % (stopLimit, "entries" if stopLimit > 1 else "entry")
|
||||||
logger.info(infoMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
elif count and (not isinstance(count, six.string_types) or not count.isdigit()):
|
elif count and (not isinstance(count, six.string_types) or not count.isdigit()):
|
||||||
warnMsg = "it was not possible to count the number "
|
warnMsg = "it was not possible to count the number "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user