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

Method add_exploit_target

stix/core/stix_package.py:168–175  ·  view source on GitHub ↗

Adds an :class:`.ExploitTarget` object to the :attr:`exploit_targets` collection.

(self, exploit_target)

Source from the content-addressed store, hash-verified

166 self.courses_of_action.append(course_of_action)
167
168 def add_exploit_target(self, exploit_target):
169 """Adds an :class:`.ExploitTarget` object to the
170 :attr:`exploit_targets` collection.
171
172 """
173 if self.exploit_targets is None:
174 self.exploit_targets = ExploitTargets()
175 self.exploit_targets.append(exploit_target)
176
177 def add_ttp(self, ttp):
178 """Adds an :class:`.TTP` object to the :attr:`ttps` collection.

Callers

nothing calls this directly

Calls 1

ExploitTargetsClass · 0.70

Tested by

no test coverage detected