Cannot execute sample code.
I tried to execute the sample code of parse() on python 2.7 and 3.0. But It occured JSONDecodeError because the "pattern" value of this sample JSON are described as multi-line. To ensure that the sample code works, this value shuld be single-line.stix2.0
parent
858a9752df
commit
2928824ec5
|
@ -60,8 +60,7 @@ To parse a STIX JSON string into a Python STIX object, use
|
||||||
"malicious-activity"
|
"malicious-activity"
|
||||||
],
|
],
|
||||||
"name": "File hash for malware variant",
|
"name": "File hash for malware variant",
|
||||||
"pattern": "[file:hashes.md5 =
|
"pattern": "[file:hashes.md5 ='d41d8cd98f00b204e9800998ecf8427e']",
|
||||||
'd41d8cd98f00b204e9800998ecf8427e']",
|
|
||||||
"valid_from": "2017-09-26T23:33:39.829952Z"
|
"valid_from": "2017-09-26T23:33:39.829952Z"
|
||||||
}""")
|
}""")
|
||||||
print(indicator)
|
print(indicator)
|
||||||
|
|
Loading…
Reference in New Issue