From 74f4478c326a71cd36b542b8d8fd0aa3bf5e0bdb Mon Sep 17 00:00:00 2001 From: Syping Date: Sun, 25 Oct 2020 17:30:29 +0100 Subject: [PATCH] show partial bruteforce --- src/main.cpp | 2 +- src/mainthread.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 00088aa..6b82ae4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,7 +36,7 @@ int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); a.setApplicationName("checkbrute"); - a.setApplicationVersion("0.3.1"); + a.setApplicationVersion("0.3.2"); QCommandLineParser commandLineParser; commandLineParser.addHelpOption(); diff --git a/src/mainthread.cpp b/src/mainthread.cpp index 5209d38..5364261 100644 --- a/src/mainthread.cpp +++ b/src/mainthread.cpp @@ -142,9 +142,10 @@ mainthread::mainthread(const QString &bruteforceFile, const QString &checksumsFi } // Clear unneeded bytes - if (begin != 0 && end != (quint64)fileContent.size()) { + if (begin != 0 || end != (quint64)fileContent.size()) { fileContent = fileContent.mid(begin, end - begin); fileContent.squeeze(); + QTextStream(stderr) << "INFO: Partial bruteforce start " << begin << " stop " << end << Qt::endl; } if (!lenghts_str.isEmpty()) {