MCPcopy Create free account
hub / github.com/STIXProject/python-stix / __init__

Method __init__

stix/exploit_target/__init__.py:52–66  ·  view source on GitHub ↗
(self, id_=None, idref=None, timestamp=None, title=None,
                 description=None, short_description=None)

Source from the content-addressed store, hash-verified

50 information_source = fields.TypedField("Information_Source", InformationSource)
51
52 def __init__(self, id_=None, idref=None, timestamp=None, title=None,
53 description=None, short_description=None):
54
55 super(ExploitTarget, self).__init__(
56 id_=id_,
57 idref=idref,
58 timestamp=timestamp,
59 title=title,
60 description=description,
61 short_description=short_description
62 )
63
64 self.potential_coas = PotentialCOAs()
65 self.related_exploit_targets = RelatedExploitTargets()
66 self.related_packages = RelatedPackageRefs()
67
68 def add_vulnerability(self, value):
69 """Adds a vulnerability to the :attr:`vulnerabilities` list property.

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 3

RelatedPackageRefsClass · 0.90
PotentialCOAsClass · 0.85

Tested by

no test coverage detected