Files
2024-07-21 22:49:06 -07:00

41 lines
1.1 KiB
Python

# Copyright (C) 2014-2016 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
# Originally contributed by Check Point Software Technologies, Ltd.
class Package(object):
"""Base abstact analysis package."""
def __init__(self, options={}):
"""@param options: options dict."""
self.options = options
self.pids = []
def set_pids(self, pids):
"""Update list of monitored PIDs in the package context.
@param pids: list of pids.
"""
self.pids = pids
def start(self):
"""Run analysis package.
@param path: sample path.
@raise NotImplementedError: this method is abstract.
"""
raise NotImplementedError
def check(self):
"""Check.
@raise NotImplementedError: this method is abstract.
"""
raise NotImplementedError
def finish(self):
"""Finish run.
@raise NotImplementedError: this method is abstract.
"""
raise NotImplementedError
class Auxiliary(object):
pass