mirror of https://github.com/mvt-project/mvt.git
29 lines
785 B
Python
29 lines
785 B
Python
# Mobile Verification Toolkit (MVT)
|
|
# Copyright (c) 2021-2023 The MVT Authors.
|
|
# Use of this software is governed by the MVT License 1.1 that can be found at
|
|
# https://license.mvt.re/1.1/
|
|
|
|
|
|
class Artifact:
|
|
"""
|
|
Main artifact class
|
|
"""
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
self.results = []
|
|
self.detected = []
|
|
self.indicators = None
|
|
super().__init__(*args, **kwargs)
|
|
|
|
def parse(self, entry: str):
|
|
"""
|
|
Parse the artifact, adds the parsed information to self.results
|
|
"""
|
|
raise NotImplementedError
|
|
|
|
def check_indicators(self) -> None:
|
|
"""Check the results of this module against a provided list of
|
|
indicators coming from self.indicators
|
|
"""
|
|
raise NotImplementedError
|