added support for displaying HTTP error codes (particularly interesting ones are 403 and 406 which screw up data retrieval and DBMS fingerprinting badly)

This commit is contained in:
Miroslav Stampar
2011-01-02 07:37:47 +00:00
parent ec4440108b
commit da138c46c1
5 changed files with 27 additions and 10 deletions

View File

@@ -23,6 +23,7 @@ from lib.core.common import getUnicode
from lib.core.common import paramToDict
from lib.core.common import parseTargetUrl
from lib.core.common import readInput
from lib.core.common import showHttpErrorCodes
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
@@ -432,6 +433,9 @@ def start():
logger.critical(e)
return False
finally:
showHttpErrorCodes()
if conf.loggedToOut:
logger.info("Fetched data logged to text files under '%s'" % conf.outputPath)