mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2025-02-16 22:21:30 +08:00
little tiny fix
This commit is contained in:
parent
767a651735
commit
6765a84a80
@ -50,5 +50,3 @@ VERSION = 0.0.1
|
||||
QMAKE_TARGET_PRODUCT = "Proxmark3GUI"
|
||||
QMAKE_TARGET_DESCRIPTION = "Proxmark3GUI"
|
||||
QMAKE_TARGET_COMPANY = "wh201906"
|
||||
|
||||
LANGUAGES
|
||||
|
@ -68,8 +68,7 @@ void Mifare::nested()
|
||||
|
||||
void Mifare::hardnested()
|
||||
{
|
||||
int secs = cardType.sectors;
|
||||
MF_Attack_hardnestedDialog dialog(cardType.blks[secs - 1] + cardType.blk[secs - 1]);
|
||||
MF_Attack_hardnestedDialog dialog(cardType.blocks);
|
||||
connect(&dialog, &MF_Attack_hardnestedDialog::sendCMD, util, &Util::execCMD);
|
||||
if(dialog.exec() == QDialog::Accepted)
|
||||
ui->funcTab->setCurrentIndex(1);
|
||||
@ -421,8 +420,7 @@ void Mifare::data_syncWithDataWidget(bool syncAll, int block)
|
||||
QString tmp = "";
|
||||
if(syncAll)
|
||||
{
|
||||
int secs = cardType.sectors;
|
||||
for(int i = 0; i < cardType.blks[secs - 1] + cardType.blk[secs - 1]; i++)
|
||||
for(int i = 0; i < cardType.blocks; i++)
|
||||
{
|
||||
tmp += dataList->at(i).mid(0, 2);
|
||||
for(int j = 1; j < 16; j++)
|
||||
@ -466,9 +464,8 @@ void Mifare::data_syncWithKeyWidget(bool syncAll, int sector, bool isKeyA)
|
||||
|
||||
void Mifare::data_clearData()
|
||||
{
|
||||
int secs = cardType.sectors;
|
||||
dataList->clear();
|
||||
for(int i = 0; i < cardType.blks[secs - 1] + cardType.blk[secs - 1]; i++)
|
||||
for(int i = 0; i < cardType.blocks; i++)
|
||||
dataList->append("");
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,7 @@ public:
|
||||
{
|
||||
int type;
|
||||
int sectors;
|
||||
int blocks;
|
||||
int blk[40];
|
||||
int blks[40];
|
||||
};
|
||||
@ -47,6 +48,7 @@ public:
|
||||
{
|
||||
0,
|
||||
5,
|
||||
20,
|
||||
{4, 4, 4, 4, 4},
|
||||
{0, 4, 8, 12, 16}
|
||||
};
|
||||
@ -54,6 +56,7 @@ public:
|
||||
{
|
||||
1,
|
||||
16,
|
||||
64,
|
||||
{4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
|
||||
{0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60}
|
||||
};
|
||||
@ -61,6 +64,7 @@ public:
|
||||
{
|
||||
2,
|
||||
32,
|
||||
128,
|
||||
{4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
|
||||
{0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124}
|
||||
};
|
||||
@ -68,6 +72,7 @@ public:
|
||||
{
|
||||
4,
|
||||
40,
|
||||
256,
|
||||
{4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 16, 16, 16, 16, 16, 16, 16, 16},
|
||||
{0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 144, 160, 176, 192, 208, 224, 240}
|
||||
};
|
||||
|
@ -266,7 +266,7 @@ void MainWindow::on_MF_Sniff_listButton_clicked()
|
||||
void MainWindow::MF_widgetReset()
|
||||
{
|
||||
int secs = mifare->cardType.sectors;
|
||||
int blks = mifare->cardType.blks[secs - 1] + mifare->cardType.blk[secs - 1];
|
||||
int blks = mifare->cardType.blocks;
|
||||
ui->MF_RW_blockBox->clear();
|
||||
ui->MF_keyWidget->setRowCount(secs);
|
||||
ui->MF_dataWidget->setRowCount(blks);
|
||||
|
Loading…
x
Reference in New Issue
Block a user