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)