mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-01 14:23:44 +03:00
Fixes #4102
This commit is contained in:
parent
a0b279848d
commit
f19f38d1d5
|
@ -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.2.22"
|
VERSION = "1.4.2.23"
|
||||||
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)
|
||||||
|
|
|
@ -584,15 +584,14 @@ class Connect(object):
|
||||||
refresh = extractRegexResult(JAVASCRIPT_HREF_REGEX, page)
|
refresh = extractRegexResult(JAVASCRIPT_HREF_REGEX, page)
|
||||||
|
|
||||||
if refresh:
|
if refresh:
|
||||||
debugMsg = "got Javascript redirect request"
|
debugMsg = "got Javascript redirect logic"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
if refresh:
|
if refresh:
|
||||||
if kb.alwaysRefresh is None:
|
if kb.alwaysRefresh is None:
|
||||||
msg = "got a refresh request "
|
msg = "got a refresh intent "
|
||||||
msg += "(redirect like response common to login pages) to '%s'. " % refresh
|
msg += "(redirect like response common to login pages) to '%s'. " % refresh
|
||||||
msg += "Do you want to apply the refresh "
|
msg += "Do you want to apply it from now on? [Y/n]"
|
||||||
msg += "from now on (or stay on the original page)? [Y/n]"
|
|
||||||
|
|
||||||
kb.alwaysRefresh = readInput(msg, default='Y', boolean=True)
|
kb.alwaysRefresh = readInput(msg, default='Y', boolean=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user