|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.item.jt.system.PowerScan
public class PowerScan
Central "control point" for the PowerScan application. Provides some simple functionality between the UI and the executing classes.
Constructor Summary | |
---|---|
PowerScan(String xmlConfigFile,
String properties)
Instantiates a new PowerScan object. |
Method Summary | |
---|---|
ArrayList<DynamicAnalysisResult> |
executeInAnalysisTool(String malwareSample)
Run the supplied malware sample in all the registered dynamic analysis tools |
ArrayList<ScanResult> |
executeMalwareSample(String malwareSample)
Execute the supplied malware sample on all registered scanners. |
static String |
getLastUpdate()
Get the date of the last call to PowerScan.update() from this client. |
static Logger |
getLogger(String filename,
String className)
Create a logger that logs to the given file for a class with the given name. |
static void |
main(String[] args)
|
ArrayList<ScanResult> |
scan(String malwareSample)
Perform a surface scan of the given malware sample file using the registered anti-virus engines. |
ArrayList<AVUpdateResult> |
update()
Attempt to update all scanner registered in the system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PowerScan(String xmlConfigFile, String properties) throws ParserException, InvalidFileException, XMLValidationException, FileNotFoundException
xmlConfigFile
- path to the XML config file with the setup parameters for the system.properties
- path to the properties file containing the system constants.
ParserException
- if parsing of the XML config file failed.
InvalidFileException
- if the XML config file could not be read.
XMLValidationException
FileNotFoundException
Method Detail |
---|
public ArrayList<ScanResult> scan(String malwareSample)
malwareSample
- path to the malware sample to be scanned.
NoScannersLoadedException
- no scanners were loaded during initialization of the system, thus no engines are available to perform scan.public ArrayList<AVUpdateResult> update()
public static String getLastUpdate() throws NoMatchFoundException
NoMatchFoundException
update()
public ArrayList<ScanResult> executeMalwareSample(String malwareSample)
malwareSample
- absolute or relative path to the sample to be executed.
public ArrayList<DynamicAnalysisResult> executeInAnalysisTool(String malwareSample)
malwareSample
- path to the malware sample to be analyzed
public static Logger getLogger(String filename, String className)
filename
- name of the file to log to. Can be both relative and absolute.className
- name of the class to create the Logger object for (should be full package path).
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |