// Container for certificate data, so that the disk only needs to be read once
byte certificateData = null;
+ // Iteration counter for logging only every certain number of iterations
+ long logIterationCount = 0;
// X509 Certificate object used while trying to decrypt the keystore / certificate
bool password_found = false;
// loop to find the password
+ // Increment counter for minimal logging
certificate = new X509Certificate2(certificateData, CertificatePassword);
// Only log successful crack to a file if the logging is NOT set to 0!
// Case 0 is handled in the "success" section. We just don't log anything when told not to!
// Every 10,000 + Succcess
((PasswordNumber % 10000) == 0 || PasswordNumber == 0)
Log("Password Failed: " + CertificatePassword, LogFileLocation, PasswordNumber);
+ this.logIterationCount = 0;