Package lib :: Package common :: Module abstracts
[hide private]
[frames] | no frames]

Source Code for Module lib.common.abstracts

 1  # Copyright (C) 2010-2014 Cuckoo Foundation. 
 2  # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org 
 3  # See the file 'docs/LICENSE' for copying permission. 
 4   
5 -class Package(object):
6 """Base abstact analysis package.""" 7
8 - def __init__(self, options={}):
9 """@param options: options dict.""" 10 self.options = options 11 self.pids = []
12
13 - def set_pids(self, pids):
14 """Update list of monitored PIDs in the package context. 15 @param pids: list of pids. 16 """ 17 self.pids = pids
18
19 - def start(self):
20 """Run analysis packege. 21 @param path: sample path. 22 @raise NotImplementedError: this method is abstract. 23 """ 24 raise NotImplementedError
25
26 - def check(self):
27 """Check. 28 @raise NotImplementedError: this method is abstract. 29 """ 30 raise NotImplementedError
31
32 - def finish(self):
33 """Finish run. 34 @raise NotImplementedError: this method is abstract. 35 """ 36 raise NotImplementedError
37 38
39 -class Auxiliary(object):
40 pass
41