mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
Minor patch
This commit is contained in:
parent
ac9c2f1210
commit
6d07d52ccd
|
@ -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.3.11.62"
|
VERSION = "1.3.11.63"
|
||||||
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)
|
||||||
|
|
|
@ -5,6 +5,7 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
|
||||||
See the file 'LICENSE' for copying permission
|
See the file 'LICENSE' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import re
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from lib.core.agent import agent
|
from lib.core.agent import agent
|
||||||
|
@ -43,8 +44,14 @@ def direct(query, content=True):
|
||||||
select = False
|
select = False
|
||||||
break
|
break
|
||||||
|
|
||||||
if select and not query.upper().startswith("SELECT "):
|
if select:
|
||||||
query = "SELECT %s" % query
|
if not query.upper().startswith("SELECT "):
|
||||||
|
query = "SELECT %s" % query
|
||||||
|
if conf.binaryFields:
|
||||||
|
for field in conf.binaryFields.split(','):
|
||||||
|
field = field.strip()
|
||||||
|
if re.search(r"\b%s\b" % re.escape(field), query):
|
||||||
|
query = re.sub(r"\b%s\b" % re.escape(field), agent.hexConvertField(field), query)
|
||||||
|
|
||||||
logger.log(CUSTOM_LOGGING.PAYLOAD, query)
|
logger.log(CUSTOM_LOGGING.PAYLOAD, query)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user