From ac44cf3ec09295a4f1bdd3b2d41e7ed9477f13d6 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 17 Dec 2012 13:02:09 +0000 Subject: [PATCH] minor fix: add also back-end DBMS and web app fingerprint output to log file --- lib/controller/action.py | 2 +- lib/controller/controller.py | 2 +- lib/core/dump.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/controller/action.py b/lib/controller/action.py index 7af620a4d..57bf2cd2c 100644 --- a/lib/controller/action.py +++ b/lib/controller/action.py @@ -54,7 +54,7 @@ def action(): raise SqlmapUnsupportedDBMSException, errMsg - dataToStdout("%s\n" % conf.dbmsHandler.getFingerprint()) + conf.dumper.singleString(conf.dbmsHandler.getFingerprint()) # Enumeration options if conf.getBanner: diff --git a/lib/controller/controller.py b/lib/controller/controller.py index 70221bae5..4a5072df0 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -149,7 +149,7 @@ def _showInjections(): 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: warnMsg = "changes made by tampering scripts are not " diff --git a/lib/core/dump.py b/lib/core/dump.py index 8d03fb6df..0b88730b2 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -73,6 +73,9 @@ class Dump(object): def getOutputFile(self): return self._outputFile + def singleString(self, data): + self._write(data) + def string(self, header, data, sort=True): kb.stickyLevel = None @@ -112,9 +115,6 @@ class Dump(object): if elements: self._write("") - def technic(self, header, data): - self.string(header, data) - def banner(self,data): self.string("banner", data)