Esempio n. 1
0
def test_metadata():
    sandbox = GenericVTSandbox(
        "tests/datasource/virustotal/test_files/example_tencent_habo_very_nested.json",
        "tests/datasource/virustotal/test_files/example_vt3_api_results.json",
    )

    metadata = sandbox.metadata()

    assert metadata["name"] == "codexgigas_235f100673f34412b21f9f708be89384ae102db4"
    assert metadata["malicious"] == 57
Esempio n. 2
0
def tencent1() -> GenericVTSandbox:
    r = GenericVTSandbox("tests/datasource/virustotal/test_files/example_tencent_habo1.json")
    next(r.events())
    return r
Esempio n. 3
0
def drweb_net() -> GenericVTSandbox:
    r = GenericVTSandbox("tests/datasource/virustotal/test_files/example_drweb_api_with_net.json")
    next(r.events())
    return r
Esempio n. 4
0
def drweb_nested() -> GenericVTSandbox:
    r = GenericVTSandbox(
        "tests/datasource/virustotal/test_files/example_drweb_nested_children.json"
    )
    next(r.events())
    return r