mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2025-03-01 20:41:32 +08:00

in latest Iceman repo Fix a error in keyPattern Test all R/W functions in Iceman client and Official client
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#include "mf_uid_parameterdialog.h"
|
|
#include "ui_mf_uid_parameterdialog.h"
|
|
|
|
MF_UID_parameterDialog::MF_UID_parameterDialog(const QString& uid, const QString& atqa, const QString& sak, QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::MF_UID_parameterDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
ui->UIDLineEdit->setText(uid);
|
|
ui->ATQALineEdit->setText(atqa);
|
|
ui->SAKLineEdit->setText(sak);
|
|
}
|
|
|
|
MF_UID_parameterDialog::~MF_UID_parameterDialog()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void MF_UID_parameterDialog::on_buttonBox_accepted()
|
|
{
|
|
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL)
|
|
emit sendCMD("hf mf csetuid "
|
|
+ ui->UIDLineEdit->text()
|
|
+ " "
|
|
+ ui->ATQALineEdit->text()
|
|
+ " "
|
|
+ ui->SAKLineEdit->text());
|
|
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN) // same format in v4.9237
|
|
emit sendCMD("hf mf csetuid "
|
|
+ ui->UIDLineEdit->text()
|
|
+ " "
|
|
+ ui->ATQALineEdit->text()
|
|
+ " "
|
|
+ ui->SAKLineEdit->text());
|
|
}
|