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

Class Package

source code

object --+
         |
        Package

Base abstract analysis package.

Instance Methods [hide private]
 
__init__(self, options={})
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_pids(self, pids)
Update list of monitored PIDs in the package context.
source code
 
start(self)
Run analysis package.
source code
 
check(self)
Check.
source code
 
_enum_paths(self)
Enumerate available paths.
source code
 
get_path(self, application)
Search for an application in all available paths.
source code
 
execute(self, path, args)
Starts an executable for analysis.
source code
 
package_files(self)
A list of files to upload to host.
source code
 
finish(self)
Finish run.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  PATHS = []
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, options={})
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • options - options dict.
Overrides: object.__init__

set_pids(self, pids)

source code 

Update list of monitored PIDs in the package context.

Parameters:
  • pids - list of pids.

start(self)

source code 

Run analysis package.

Raises:
  • NotImplementedError - this method is abstract.

get_path(self, application)

source code 

Search for an application in all available paths.

Parameters:
  • applicaiton - application executable name
Returns:
executable path

execute(self, path, args)

source code 

Starts an executable for analysis.

Parameters:
  • path - executable path
  • args - executable arguments
Returns:
process pid

package_files(self)

source code 

A list of files to upload to host. The list should be a list of tuples (<path on guest>, <name of file in package_files folder>). (package_files is a folder that will be created in analysis folder).

finish(self)

source code 

Finish run. If specified to do so, this method dumps the memory of all running processes.