Class BruteCrackerOffice

java.lang.Object
me.mthw.forge.cracker.BruteCracker
me.mthw.forge.cracker.BruteCrackerOffice
All Implemented Interfaces:
Runnable

public class BruteCrackerOffice extends BruteCracker
The BruteCrackerOffice class extends the BruteCracker class and provides functionality for brute-forcing passwords for encrypted Office files. It utilizes a Decryptor to verify passwords and manage decryption operations. This class is specifically designed to handle Office file decryption and integrates with the Apache POI library for processing encrypted Office documents. This class requires the Apache POI library for handling Office file encryption.
See Also:
  • Constructor Details

  • Method Details

    • verifyPassword

      protected boolean verifyPassword(String password) throws GeneralSecurityException
      Verifies the provided password by delegating to the decryptor's verifyPassword method.
      Specified by:
      verifyPassword in class BruteCracker
      Parameters:
      password - the password to be verified
      Returns:
      true if the password is verified successfully, false otherwise
      Throws:
      GeneralSecurityException - if an error occurs during the verification process
    • decryptFile

      public void decryptFile(String password) throws GeneralSecurityException, IOException, org.sleuthkit.datamodel.TskCoreException, org.sleuthkit.autopsy.casemodule.NoCurrentCaseException
      Decrypts a file using the provided password and saves the decrypted content to a specified path.
      Specified by:
      decryptFile in class BruteCracker
      Parameters:
      password - The password used to decrypt the file.
      Throws:
      GeneralSecurityException - If a security-related error occurs during decryption.
      IOException - If an I/O error occurs while reading or writing the file.
      org.sleuthkit.datamodel.TskCoreException - If an error occurs related to the forensic framework.
      org.sleuthkit.autopsy.casemodule.NoCurrentCaseException
    • getName

      public String getName()
      Retrieves the name of the cracker.
      Specified by:
      getName in class BruteCracker
      Returns:
      A string representing the name of the cracker.