mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2026-07-01 15:54:29 +08:00
Support read/write data in emulator
This commit is contained in:
+24
-2
@@ -6,10 +6,11 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
, ui(new Ui::MainWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->MF_simGroupBox->setVisible(false); // developing...
|
||||
// ui->MF_simGroupBox->setVisible(false); // developing...
|
||||
ui->MF_sniffGroupBox->setVisible(false); // developing...
|
||||
myInfo = new QAction("wh201906", this);
|
||||
connect(myInfo, &QAction::triggered, [ = ]() {
|
||||
connect(myInfo, &QAction::triggered, [ = ]()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/wh201906"));
|
||||
});
|
||||
this->addAction(myInfo);
|
||||
@@ -473,6 +474,25 @@ void MainWindow::on_MF_UID_lockButton_clicked()
|
||||
mifare->lockC();
|
||||
}
|
||||
|
||||
void MainWindow::on_MF_Sim_loadDataButton_clicked()
|
||||
{
|
||||
setState(false);
|
||||
mifare->writeAllE();
|
||||
setState(true);
|
||||
}
|
||||
|
||||
void MainWindow::on_MF_Sim_writeAllButton_clicked()
|
||||
{
|
||||
setState(false);
|
||||
mifare->readAllE();
|
||||
setState(true);
|
||||
}
|
||||
|
||||
void MainWindow::on_MF_Sim_clearButton_clicked()
|
||||
{
|
||||
mifare->wipeE();
|
||||
}
|
||||
|
||||
void MainWindow::on_MF_Sniff_sniffButton_clicked()
|
||||
{
|
||||
setState(false);
|
||||
@@ -651,3 +671,5 @@ void MainWindow::setState(bool st)
|
||||
}
|
||||
|
||||
// ***********************************************
|
||||
|
||||
|
||||
|
||||
+8
-1
@@ -22,7 +22,8 @@
|
||||
#include "common/util.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
namespace Ui
|
||||
{
|
||||
class MainWindow;
|
||||
}
|
||||
QT_END_NAMESPACE
|
||||
@@ -119,6 +120,12 @@ private slots:
|
||||
|
||||
void on_MF_UID_lockButton_clicked();
|
||||
|
||||
void on_MF_Sim_loadDataButton_clicked();
|
||||
|
||||
void on_MF_Sim_writeAllButton_clicked();
|
||||
|
||||
void on_MF_Sim_clearButton_clicked();
|
||||
|
||||
private:
|
||||
Ui::MainWindow* ui;
|
||||
QButtonGroup* typeBtnGroup;
|
||||
|
||||
@@ -105,9 +105,6 @@
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="mifareTab">
|
||||
<attribute name="title">
|
||||
<string>Mifare</string>
|
||||
|
||||
Reference in New Issue
Block a user