mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2025-02-16 22:21:30 +08:00
Try to process the origin output(in hf mf nested)
This commit is contained in:
parent
5d793eb764
commit
4aa5654ffd
@ -158,3 +158,22 @@ void MainWindow::on_MFChkButton_clicked()
|
||||
}
|
||||
qDebug()<<"***********\n"<<keys<<"***********\n";
|
||||
}
|
||||
|
||||
void MainWindow::on_MFNestedButton_clicked()
|
||||
{
|
||||
pm3->setRequiringOutput(true);
|
||||
ui->commandEdit->setText("hf mf nested 1 *");
|
||||
on_sendButton_clicked();
|
||||
while(pm3->waitForReadyRead(5000))
|
||||
;
|
||||
QString result=pm3->getRequiredOutput();
|
||||
pm3->setRequiringOutput(false);
|
||||
result=result.mid(result.indexOf("|---|----------------|---|----------------|---|"));
|
||||
QStringList keys=result.split("\r\n");
|
||||
for(int i=0;i<16;i++)
|
||||
{
|
||||
ui->MFKeyWidget->setItem(i,1,new QTableWidgetItem(keys[i+3].mid(7,12).trimmed().toUpper()));
|
||||
ui->MFKeyWidget->setItem(i,2,new QTableWidgetItem(keys[i+3].mid(28,12).trimmed().toUpper()));
|
||||
}
|
||||
qDebug()<<"***********\n"<<keys<<"***********\n";
|
||||
}
|
||||
|
@ -43,6 +43,8 @@ private slots:
|
||||
|
||||
void on_MFChkButton_clicked();
|
||||
|
||||
void on_MFNestedButton_clicked();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
PM3Process* pm3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user