minor fix: add also back-end DBMS and web app fingerprint output to log file

This commit is contained in:
Bernardo Damele 2012-12-17 13:02:09 +00:00
parent bbd2adb5fb
commit ac44cf3ec0
3 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ def action():
raise SqlmapUnsupportedDBMSException, errMsg raise SqlmapUnsupportedDBMSException, errMsg
dataToStdout("%s\n" % conf.dbmsHandler.getFingerprint()) conf.dumper.singleString(conf.dbmsHandler.getFingerprint())
# Enumeration options # Enumeration options
if conf.getBanner: if conf.getBanner:

View File

@ -149,7 +149,7 @@ def _showInjections():
data = "".join(set(map(lambda x: _formatInjection(x), kb.injections))).rstrip("\n") data = "".join(set(map(lambda x: _formatInjection(x), kb.injections))).rstrip("\n")
conf.dumper.technic(header, data) conf.dumper.string(header, data)
if conf.tamper: if conf.tamper:
warnMsg = "changes made by tampering scripts are not " warnMsg = "changes made by tampering scripts are not "

View File

@ -73,6 +73,9 @@ class Dump(object):
def getOutputFile(self): def getOutputFile(self):
return self._outputFile return self._outputFile
def singleString(self, data):
self._write(data)
def string(self, header, data, sort=True): def string(self, header, data, sort=True):
kb.stickyLevel = None kb.stickyLevel = None
@ -112,9 +115,6 @@ class Dump(object):
if elements: if elements:
self._write("") self._write("")
def technic(self, header, data):
self.string(header, data)
def banner(self,data): def banner(self,data):
self.string("banner", data) self.string("banner", data)