mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +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:
parent
d120dc18d1
commit
794700eb37
2 changed files with 32 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue