Created
August 7, 2014 08:30
-
-
Save glaslos/3f6a1374ed09aa9e0dba to your computer and use it in GitHub Desktop.
maec in stix example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lxml import etree | |
from maec.package.package import Package | |
from stix.extensions.malware.maec_4_1_malware import MAECInstance | |
malware_package = Package() | |
maec_malware_instance = MAECInstance() | |
maec_malware_instance.maec = etree.fromstring( | |
malware_package.to_xml(), parser=etree.ETCompatXMLParser() | |
) | |
print maec_malware_instance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment