mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Minor layout adjustments
This commit is contained in:
parent
03fac62592
commit
9526f0c4c2
|
@ -297,7 +297,7 @@ class Connect:
|
|||
if conf.verbose <= 5:
|
||||
responseMsg += getUnicode(logHeaders)
|
||||
elif conf.verbose > 5:
|
||||
responseMsg += "%s\n%s\n" % (logHeaders, page)
|
||||
responseMsg += "%s\n\n%s\n" % (logHeaders, page)
|
||||
|
||||
logger.log(7, responseMsg)
|
||||
|
||||
|
@ -365,12 +365,13 @@ class Connect:
|
|||
responseMsg += "[#%d] (%d %s):\n" % (threadData.lastRequestUID, code, status)
|
||||
if responseHeaders:
|
||||
logHeaders = "\n".join(["%s: %s" % (key.capitalize() if isinstance(key, basestring) else key, getUnicode(value)) for (key, value) in responseHeaders.items()])
|
||||
|
||||
logHTTPTraffic(requestMsg, "%s%s\n\n%s" % (responseMsg, logHeaders, page if isinstance(page, unicode) else getUnicode(page)))
|
||||
|
||||
if conf.verbose <= 5:
|
||||
responseMsg += getUnicode(logHeaders)
|
||||
elif conf.verbose > 5:
|
||||
responseMsg += "%s\n%s\n" % (logHeaders, page)
|
||||
responseMsg += "%s\n\n%s\n" % (logHeaders, page)
|
||||
|
||||
logger.log(7, responseMsg)
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ import urllib2
|
|||
from lib.core.data import conf
|
||||
from lib.core.data import logger
|
||||
from lib.core.common import getUnicode
|
||||
from lib.core.common import logHTTPTraffic
|
||||
from lib.core.exception import sqlmapConnectionException
|
||||
from lib.core.threads import getCurrentThreadData
|
||||
|
||||
|
@ -29,7 +28,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
|||
threadData = getCurrentThreadData()
|
||||
threadData.lastRedirectMsg = (threadData.lastRequestUID, content)
|
||||
|
||||
responseMsg = "HTTP response "
|
||||
responseMsg = "HTTP response "
|
||||
responseMsg += "[#%d] (%d %s):\n" % (threadData.lastRequestUID, code, getUnicode(msg))
|
||||
|
||||
if headers:
|
||||
|
@ -40,7 +39,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
|||
if conf.verbose <= 5:
|
||||
responseMsg += getUnicode(logHeaders)
|
||||
elif conf.verbose > 5:
|
||||
responseMsg += "%s\n%s\n" % (logHeaders, content)
|
||||
responseMsg += "%s\n\n%s\n" % (logHeaders, content)
|
||||
|
||||
logger.log(7, responseMsg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user