mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-24 05:18:55 +00:00
29 lines
787 B
Python
29 lines
787 B
Python
|
# Mobile Verification Toolkit (MVT)
|
||
|
# Copyright (c) 2021-2023 Claudio Guarnieri.
|
||
|
# 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
|