mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-26 14:28:54 +00:00
Conforming the test files
This commit is contained in:
parent
6fcd40f6b6
commit
b697874f56
|
@ -1,6 +1,12 @@
|
||||||
|
# Mobile Verification Toolkit (MVT)
|
||||||
|
# Copyright (c) 2021 The MVT Project Authors.
|
||||||
|
# Use of this software is governed by the MVT License 1.1 that can be found at
|
||||||
|
# https://license.mvt.re/1.1/
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from stix2.v21 import (Indicator, Malware, Relationship, Bundle)
|
from stix2.v21 import Bundle, Indicator, Malware, Relationship
|
||||||
|
|
||||||
|
|
||||||
def generate_test_stix_file(file_path):
|
def generate_test_stix_file(file_path):
|
||||||
if os.path.isfile(file_path):
|
if os.path.isfile(file_path):
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
# Mobile Verification Toolkit (MVT)
|
||||||
|
# Copyright (c) 2021 The MVT Project Authors.
|
||||||
|
# Use of this software is governed by the MVT License 1.1 that can be found at
|
||||||
|
# https://license.mvt.re/1.1/
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from mvt.common.indicators import Indicators
|
from mvt.common.indicators import Indicators
|
||||||
|
|
||||||
|
|
||||||
class TestIndicators:
|
class TestIndicators:
|
||||||
def test_parse_stix2(self, indicator_file):
|
def test_parse_stix2(self, indicator_file):
|
||||||
ind = Indicators(log=logging)
|
ind = Indicators(log=logging)
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
# Mobile Verification Toolkit (MVT)
|
||||||
|
# Copyright (c) 2021 The MVT Project Authors.
|
||||||
|
# Use of this software is governed by the MVT License 1.1 that can be found at
|
||||||
|
# https://license.mvt.re/1.1/
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
|
# Mobile Verification Toolkit (MVT)
|
||||||
|
# Copyright (c) 2021 The MVT Project Authors.
|
||||||
|
# Use of this software is governed by the MVT License 1.1 that can be found at
|
||||||
|
# https://license.mvt.re/1.1/
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from mvt.ios.modules.backup.backup_info import BackupInfo
|
|
||||||
from mvt.common.module import run_module
|
from mvt.common.module import run_module
|
||||||
|
from mvt.ios.modules.backup.backup_info import BackupInfo
|
||||||
|
|
||||||
from ..utils import get_backup_folder
|
from ..utils import get_backup_folder
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,17 @@
|
||||||
|
# Mobile Verification Toolkit (MVT)
|
||||||
|
# Copyright (c) 2021 The MVT Project Authors.
|
||||||
|
# Use of this software is governed by the MVT License 1.1 that can be found at
|
||||||
|
# https://license.mvt.re/1.1/
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from mvt.common.indicators import Indicators
|
from mvt.common.indicators import Indicators
|
||||||
from mvt.ios.modules.mixed.net_datausage import Datausage
|
|
||||||
from mvt.common.module import run_module
|
from mvt.common.module import run_module
|
||||||
|
from mvt.ios.modules.mixed.net_datausage import Datausage
|
||||||
|
|
||||||
from ..utils import get_backup_folder
|
from ..utils import get_backup_folder
|
||||||
|
|
||||||
|
|
||||||
class TestDatausageModule:
|
class TestDatausageModule:
|
||||||
def test_datausage(self):
|
def test_datausage(self):
|
||||||
m = Datausage(base_folder=get_backup_folder(), log=logging, results=[])
|
m = Datausage(base_folder=get_backup_folder(), log=logging, results=[])
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
|
# Mobile Verification Toolkit (MVT)
|
||||||
|
# Copyright (c) 2021 The MVT Project Authors.
|
||||||
|
# Use of this software is governed by the MVT License 1.1 that can be found at
|
||||||
|
# https://license.mvt.re/1.1/
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from mvt.common.indicators import Indicators
|
from mvt.common.indicators import Indicators
|
||||||
from mvt.ios.modules.backup.manifest import Manifest
|
|
||||||
from mvt.common.module import run_module
|
from mvt.common.module import run_module
|
||||||
|
from mvt.ios.modules.backup.manifest import Manifest
|
||||||
|
|
||||||
from ..utils import get_backup_folder
|
from ..utils import get_backup_folder
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
# Mobile Verification Toolkit (MVT)
|
||||||
|
# Copyright (c) 2021 The MVT Project Authors.
|
||||||
|
# Use of this software is governed by the MVT License 1.1 that can be found at
|
||||||
|
# https://license.mvt.re/1.1/
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from mvt.ios.modules.mixed.tcc import TCC
|
|
||||||
from mvt.common.module import run_module
|
from mvt.common.module import run_module
|
||||||
|
from mvt.ios.modules.mixed.tcc import TCC
|
||||||
|
|
||||||
from ..utils import get_backup_folder
|
from ..utils import get_backup_folder
|
||||||
|
|
||||||
|
|
||||||
class TestManifestModule:
|
class TestManifestModule:
|
||||||
def test_manifest(self):
|
def test_manifest(self):
|
||||||
m = TCC(base_folder=get_backup_folder(), log=logging, results=[])
|
m = TCC(base_folder=get_backup_folder(), log=logging, results=[])
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
# Mobile Verification Toolkit (MVT)
|
||||||
|
# Copyright (c) 2021 The MVT Project Authors.
|
||||||
|
# Use of this software is governed by the MVT License 1.1 that can be found at
|
||||||
|
# https://license.mvt.re/1.1/
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user