Minor commit regarding #739

This commit is contained in:
Miroslav Stampar
2018-06-19 16:23:17 +02:00
parent 099110bc1f
commit ccda26a567
6 changed files with 20 additions and 10 deletions

View File

@@ -110,6 +110,7 @@ optDict = {
"uFrom": "string",
"dnsDomain": "string",
"secondUrl": "string",
"secondReq": "string",
},
"Fingerprint": {

View File

@@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
from lib.core.enums import OS
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.2.6.24"
VERSION = "1.2.6.25"
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)

View File

@@ -336,6 +336,9 @@ def cmdLineParser(argv=None):
techniques.add_option("--second-url", dest="secondUrl",
help="Resulting page URL searched for second-order response")
techniques.add_option("--second-req", dest="secondReq",
help="Load second-order HTTP request from file")
# Fingerprint options
fingerprint = OptionGroup(parser, "Fingerprint")

View File

@@ -1237,6 +1237,8 @@ class Connect(object):
if conf.secondUrl:
page, headers, code = Connect.getPage(url=conf.secondUrl, cookie=cookie, ua=ua, silent=silent, auxHeaders=auxHeaders, response=response, raise404=False, ignoreTimeout=timeBasedCompare, refreshing=True)
elif conf.secondReq:
pass
threadData.lastQueryDuration = calculateDeltaSeconds(start)
threadData.lastPage = page