INNER CODE UNIT · Python

to_md

infosecB/LOOBins · src/pyloobins/models.py:119

    def to_md(self) -> str:
        """Convert a LOOBin object to a Markdown string"""
        env = Environment(
            loader=PackageLoader("pyloobins", "templates"),
            autoescape=select_autoescape(),
        )

        template = env.get_template("loobin.md.j2").render(
            loobin=self,
            tactics=self.combine_tactics(),
            tags=self.combine_tags(),
        )
        return template

    def to_stix(self) -> Tool:
        """Convert a LOOBin to a STIX2 Tool object
        https://docs.oasis-open.org/cti/stix/v2.1/os/stix-v2.1-os.html#_z4voa9ndw8v

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…