Skip to content

Commit

Permalink
techniques has to go too to the API (issue #297)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdamele committed Jan 29, 2013
1 parent bfce721 commit a56f4ec
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/controller/controller.py
Expand Up @@ -36,6 +36,7 @@
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
from lib.core.enums import API_CONTENT_TYPE
from lib.core.enums import HASHDB_KEYS
from lib.core.enums import HEURISTIC_TEST
from lib.core.enums import HTTPMETHOD
Expand Down Expand Up @@ -151,9 +152,11 @@ def _showInjections():
header = "sqlmap identified the following injection points with "
header += "a total of %d HTTP(s) requests" % kb.testQueryCount

data = "".join(set(map(lambda x: _formatInjection(x), kb.injections))).rstrip("\n")

conf.dumper.string(header, data)
if hasattr(conf, "api"):
conf.dumper.string("", kb.injections, content_type=API_CONTENT_TYPE.TECHNIQUES)
else:
data = "".join(set(map(lambda x: _formatInjection(x), kb.injections))).rstrip("\n")
conf.dumper.string(header, data)

if conf.tamper:
warnMsg = "changes made by tampering scripts are not "
Expand Down

0 comments on commit a56f4ec

Please sign in to comment.