preparing to handle logging calls by a separate file descriptor when sqlmap is executed by the REST API - issue #297

This commit is contained in:
Bernardo Damele
2013-01-09 22:08:50 +00:00
parent d120dc18d1
commit 794700eb37
2 changed files with 32 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ except:
import md5
import sha
import json
import pickle
import sys
import struct
@@ -126,3 +127,6 @@ def stdoutencode(data):
retVal = data.encode(UNICODE_ENCODING)
return retVal
def jsonize(data):
return json.dumps(data, sort_keys=False, indent=4)