|
|
@ -77,6 +77,7 @@ void MainWindow::on_PM3_connectButton_clicked()
|
|
|
|
QMessageBox::information(NULL, tr("Info"), tr("Plz choose a port first"), QMessageBox::Ok);
|
|
|
|
QMessageBox::information(NULL, tr("Info"), tr("Plz choose a port first"), QMessageBox::Ok);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
saveClientPath(ui->PM3_pathEdit->text());
|
|
|
|
emit connectPM3(ui->PM3_pathEdit->text(), port);
|
|
|
|
emit connectPM3(ui->PM3_pathEdit->text(), port);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -237,6 +238,12 @@ void MainWindow::on_MF_fillKeysButton_clicked()
|
|
|
|
mifare->data_fillKeys();
|
|
|
|
mifare->data_fillKeys();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_MF_trailerDecoderButton_clicked()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
decDialog = new MF_trailerDecoderDialog(this);
|
|
|
|
|
|
|
|
decDialog->show();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_MF_fontButton_clicked()
|
|
|
|
void MainWindow::on_MF_fontButton_clicked()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool isOK = false;
|
|
|
|
bool isOK = false;
|
|
|
@ -773,6 +780,10 @@ void MainWindow::uiInit()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
settings->endGroup();
|
|
|
|
settings->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
settings->beginGroup("Client_Path");
|
|
|
|
|
|
|
|
ui->PM3_pathEdit->setText(settings->value("path", "proxmark3").toString());
|
|
|
|
|
|
|
|
settings->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
ui->MF_RW_keyTypeBox->addItem("A", Mifare::KEY_A);
|
|
|
|
ui->MF_RW_keyTypeBox->addItem("A", Mifare::KEY_A);
|
|
|
|
ui->MF_RW_keyTypeBox->addItem("B", Mifare::KEY_B);
|
|
|
|
ui->MF_RW_keyTypeBox->addItem("B", Mifare::KEY_B);
|
|
|
|
|
|
|
|
|
|
|
@ -896,6 +907,12 @@ void MainWindow::on_GroupBox_clicked(bool checked)
|
|
|
|
settings->endGroup();
|
|
|
|
settings->endGroup();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::saveClientPath(const QString& path)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
settings->beginGroup("Client_Path");
|
|
|
|
|
|
|
|
settings->setValue("path", path);
|
|
|
|
|
|
|
|
settings->endGroup();
|
|
|
|
|
|
|
|
}
|
|
|
|
// ***********************************************
|
|
|
|
// ***********************************************
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -904,9 +921,3 @@ void MainWindow::on_testButton_clicked()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mifare->_readsec(0, Mifare::KEY_A, "FFFFFFFFFFFF");
|
|
|
|
mifare->_readsec(0, Mifare::KEY_A, "FFFFFFFFFFFF");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_MF_trailerDecoderButton_clicked()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
decDialog = new MF_trailerDecoderDialog(this);
|
|
|
|
|
|
|
|
decDialog->show();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|