edu.ntnu.item.jt.system
Class Executor

java.lang.Object
  extended by edu.ntnu.item.jt.system.Executor

public class Executor
extends Object

This class contains all tools that is installed on a given Guest OS

Author:
Thomas Langerud

Constructor Summary
Executor(ArrayList<DynamicAnalysisToolBean> daToolBeans, GuestOS guestOS)
          Constructs a new Executor representing a GuestOS
 
Method Summary
 ArrayList<DynamicAnalysisResult> executeTools(File localSamplePath, boolean takeSnapshotBeforeExecute)
          Executes the tools installed on the given Guest OS.
 void revertToSnapshot()
          Revert the current guest OS to the stored snapshot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Executor

public Executor(ArrayList<DynamicAnalysisToolBean> daToolBeans,
                GuestOS guestOS)
Constructs a new Executor representing a GuestOS

Parameters:
daToolBeans - An ArrayList containing the tools installed on one given Guest OS
guestOS - A reference to the Guest OS on which the tools are installed
Method Detail

executeTools

public ArrayList<DynamicAnalysisResult> executeTools(File localSamplePath,
                                                     boolean takeSnapshotBeforeExecute)
                                              throws InvalidFileException,
                                                     CreateSnapshotException,
                                                     FileCopyException,
                                                     FileExecutionException
Executes the tools installed on the given Guest OS. If more than one, the tools are started in sequence. No callback mechanism is used.

Parameters:
localSamplePath - path to the malware sample to be analyzed.
takeSnapshotBeforeExecute - boolean value to indicate whether a snapshot should be taken before the tools are executed.
Returns:
list of analysis tool results.
Throws:
InvalidFileException
CreateSnapshotException
FileCopyException
FileExecutionException

revertToSnapshot

public void revertToSnapshot()
Revert the current guest OS to the stored snapshot