INNER CODE UNIT · Python

_nist_component

alexandreborges/malwoverview · malwoverview/interactive.py:504

                def _nist_component():
                    n.component_cve(val, None, None, NIST_PAGE_SIZE)
                self._safe_run(_nist_component, _prompt_type='cve')
        else:
            print("Unknown subcommand. Use: cve, keyword, component")

    _HYBRID_USAGE = ("Usage: hybrid hash <hash> [env 1-5] | quick|download <hash> | "
                     "file <path> [env 1-5] | batch <file> | dir <directory>")

    def _split_env(self, arg):
        parts = arg.rsplit(None, 1)
        if len(parts) == 2 and parts[1].isdigit() and 1 <= int(parts[1]) <= 5:
            return parts[0], int(parts[1]) - 1
        return arg, 0

    def do_hybrid(self, line):
        """Hybrid Analysis: hybrid hash <hash> [env 1-5] | hybrid quick <hash> | hybrid download <hash> | hybrid file <path> [env 1-5] | hybrid batch <file> | hybrid dir <directory>"""
        parts = line.split(None, 1)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…