Skip to content

Commit

Permalink
Merge pull request #95 from math07/smallFixes
Browse files Browse the repository at this point in the history
For native *2john compiled by JtR, set .exe extension on Windows.
  • Loading branch information
mathsoft-dev committed Aug 24, 2015
2 parents ff16ba2 + 4d894fe commit 0b10e33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ void MainWindow::verifyJohnVersion()
} else {
bool isJumbo = output.contains("jumbo", Qt::CaseInsensitive);
QRegExp exp("John the Ripper .+ version (\\S+)[\n| ]", Qt::CaseInsensitive);
int pos = exp.indexIn(lines[0]);
int pos = exp.indexIn(output);
if (pos > -1) {
m_ui->labelJohnPathValidator->setText(tr("Detected John the Ripper ") + exp.cap(1) + (isJumbo ? "" : " (core)"));
} else if (lines.size() > 0){
Expand Down
4 changes: 4 additions & 0 deletions src/openotherformatfiledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ void OpenOtherFormatFileDialog::convertFile()
parameters << runDir + "/" + scriptFullName;
} else {
program = runDir + "/" + scriptFullName;
#ifdef Q_OS_WIN
if (currentScript.extension.isEmpty())
program += ".exe";
#endif
}
// Add the arguments
for (int i = 0; i < currentScript.parameters.size(); i++) {
Expand Down

0 comments on commit 0b10e33

Please sign in to comment.