mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-10 09:49:06 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user