Lines 38-46
Link Here
|
38 |
from core.data.dc.cookie import cookie as cookie |
38 |
from core.data.dc.cookie import cookie as cookie |
39 |
from core.data.dc.dataContainer import dataContainer as dc |
39 |
from core.data.dc.dataContainer import dataContainer as dc |
40 |
try: |
40 |
try: |
41 |
from extlib.jsonpy import json as json |
41 |
import extlib.simplejson as json |
42 |
except: |
42 |
except: |
43 |
import json |
43 |
import simplejson as json |
44 |
from core.data.request.httpPostDataRequest import httpPostDataRequest |
44 |
from core.data.request.httpPostDataRequest import httpPostDataRequest |
45 |
from core.data.request.httpQsRequest import httpQsRequest |
45 |
from core.data.request.httpQsRequest import httpQsRequest |
46 |
|
46 |
|
Lines 210-216
Link Here
|
210 |
|
210 |
|
211 |
# Now, fuzz the parsed JSON data... |
211 |
# Now, fuzz the parsed JSON data... |
212 |
postdata = freq.getData() |
212 |
postdata = freq.getData() |
213 |
jsonPostData = json.read( postdata ) |
213 |
jsonPostData = json.loads( postdata ) |
214 |
return _makeMutants( freq, mutantClass, mutant_str_list, fuzzableParamList , append, jsonPostData ) |
214 |
return _makeMutants( freq, mutantClass, mutant_str_list, fuzzableParamList , append, jsonPostData ) |
215 |
|
215 |
|
216 |
def isJSON( freq ): |
216 |
def isJSON( freq ): |
Lines 222-228
Link Here
|
222 |
# We have something that's not URL encoded in the postdata, it could be something |
222 |
# We have something that's not URL encoded in the postdata, it could be something |
223 |
# like JSON, XML, or multipart encoding. Let's try with JSON |
223 |
# like JSON, XML, or multipart encoding. Let's try with JSON |
224 |
try: |
224 |
try: |
225 |
jsonPostData = json.read( postdata ) |
225 |
jsonPostData = json.loads( postdata ) |
226 |
except: |
226 |
except: |
227 |
# It's not json, maybe XML or multipart, I don't really care ( at least not in this section of the code ) |
227 |
# It's not json, maybe XML or multipart, I don't really care ( at least not in this section of the code ) |
228 |
return False |
228 |
return False |