show partial bruteforce

This commit is contained in:
Syping 2020-10-25 17:30:29 +01:00
parent e3b7cf162b
commit 74f4478c32
2 changed files with 3 additions and 2 deletions

View file

@ -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();

View file

@ -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()) {