INNER CODE UNIT · Python

_parse

HaxL0p4/L0p4Map · ui/app.py:307

    def _parse(self, xml_path: str) -> dict:
        import xml.etree.ElementTree as ET
        from collections import defaultdict

        result = {
            "target": self.target,
            "os": "Unknown",
            "ports": [],
            "cves": [],
        }

        try:
            tree = ET.parse(xml_path)
            root = tree.getroot()
        except (ET.ParseError, FileNotFoundError):
            return result

        host = root.find("host")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…