INNER CODE UNIT · Python

loadserv

diogo-fernan/malsub · malsub/core/main.py:94

    def loadserv():
        from malsub.service import serv as _serv

        global anserv

        out.debug("_serv", obj=_serv)
        if arg["--analysis"].lower() != "all":
            from re import findall

            anserv = [s for s in list(findall(r"[\w-]+", arg["--analysis"].lower()))]
            notanserv = [s[1:] for s in anserv if s.startswith("-")]
            if "all" in anserv:
                anserv = [s for s in _serv if s not in notanserv]
            else:
                anserv = [s for s in anserv if s[1:] not in notanserv]

            inv = [s for s in anserv if s not in _serv]
            if inv:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…