Package adams.tools
Class ZipPassword.BruteForceJob
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.flow.core.RunnableWithLogging
-
- adams.tools.ZipPassword.BruteForceJob
-
- All Implemented Interfaces:
LoggingLevelHandler
,LoggingSupporter
,SizeOfHandler
,Stoppable
,StoppableWithFeedback
,Serializable
,Runnable
- Enclosing class:
- ZipPassword
public static class ZipPassword.BruteForceJob extends RunnableWithLogging
Job for performing brute force attack in paralle.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BruteForcePasswordGenerator
m_Generator
the password generator to use.protected int
m_ID
the ID.protected ZipPassword
m_Owner
the owner.protected int
m_Skip
the number of passwords to skip.protected File
m_Zip
the zip file.-
Fields inherited from class adams.flow.core.RunnableWithLogging
m_Running, m_Stopped
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description BruteForceJob(ZipPassword owner, int id, BruteForcePasswordGenerator generator, int skip, File zip)
Initializes the brute force job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureLogger()
Initializes the logger.protected void
doRun()
Performs the actual execution.-
Methods inherited from class adams.flow.core.RunnableWithLogging
isRunning, isStopped, postRun, preRun, run, setLoggingLevel, stopExecution
-
Methods inherited from class adams.core.logging.LoggingObject
getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Owner
protected ZipPassword m_Owner
the owner.
-
m_ID
protected int m_ID
the ID.
-
m_Generator
protected BruteForcePasswordGenerator m_Generator
the password generator to use.
-
m_Skip
protected int m_Skip
the number of passwords to skip.
-
m_Zip
protected File m_Zip
the zip file.
-
-
Constructor Detail
-
BruteForceJob
public BruteForceJob(ZipPassword owner, int id, BruteForcePasswordGenerator generator, int skip, File zip)
Initializes the brute force job.- Parameters:
owner
- the ownerid
- the ID of the jobgenerator
- the configured password geenrator to useskip
- the number of passwords to skip when testingzip
- the file to test
-
-
Method Detail
-
configureLogger
protected void configureLogger()
Initializes the logger.- Overrides:
configureLogger
in classLoggingObject
-
doRun
protected void doRun()
Performs the actual execution.- Specified by:
doRun
in classRunnableWithLogging
-
-