mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-23 01:56:36 +03:00
Patch for an Issue #56 (full target url is now being written to a output .CSV file in multi target mode)
This commit is contained in:
parent
cb91729913
commit
3d01890147
|
@ -29,6 +29,7 @@ from lib.core.common import intersect
|
||||||
from lib.core.common import parseTargetUrl
|
from lib.core.common import parseTargetUrl
|
||||||
from lib.core.common import randomStr
|
from lib.core.common import randomStr
|
||||||
from lib.core.common import readInput
|
from lib.core.common import readInput
|
||||||
|
from lib.core.common import safeCSValue
|
||||||
from lib.core.common import showHttpErrorCodes
|
from lib.core.common import showHttpErrorCodes
|
||||||
from lib.core.common import urlencode
|
from lib.core.common import urlencode
|
||||||
from lib.core.common import urldecode
|
from lib.core.common import urldecode
|
||||||
|
@ -220,7 +221,7 @@ def _saveToResultsFile():
|
||||||
|
|
||||||
for key, value in results.items():
|
for key, value in results.items():
|
||||||
place, parameter = key
|
place, parameter = key
|
||||||
line = "%s,%s,%s,%s%s" % (conf.url, place, parameter, "".join(map(lambda x: techniques[x][0].upper(), sorted(value))), os.linesep)
|
line = "%s,%s,%s,%s%s" % (safeCSValue(kb.originalUrls.get(conf.url) or conf.url), place, parameter, "".join(map(lambda x: techniques[x][0].upper(), sorted(value))), os.linesep)
|
||||||
conf.resultsFP.writelines(line)
|
conf.resultsFP.writelines(line)
|
||||||
|
|
||||||
if not results:
|
if not results:
|
||||||
|
|
|
@ -1108,8 +1108,7 @@ def parseTargetUrl():
|
||||||
conf.httpHeaders = filter(lambda (key, value): key != HTTPHEADER.HOST, conf.httpHeaders)
|
conf.httpHeaders = filter(lambda (key, value): key != HTTPHEADER.HOST, conf.httpHeaders)
|
||||||
conf.httpHeaders.append((HTTPHEADER.HOST, getHostHeader(conf.url)))
|
conf.httpHeaders.append((HTTPHEADER.HOST, getHostHeader(conf.url)))
|
||||||
|
|
||||||
if originalUrl != conf.url:
|
kb.originalUrls[conf.url] = originalUrl
|
||||||
kb.originalUrls[conf.url] = originalUrl
|
|
||||||
|
|
||||||
def expandAsteriskForColumns(expression):
|
def expandAsteriskForColumns(expression):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user