13 Commits

Author SHA1 Message Date
wh201906 f285f76a20 V0.2.2 2021-09-20 19:07:36 +08:00
wh201906 24adc08d84 LF config file 2021-09-20 15:32:00 +08:00
wh201906 d56c5f8dc7 Merge branch 'master' into dev 2021-09-20 00:01:57 +08:00
wh201906 222f271a31 Choose config file path 2021-09-19 23:59:55 +08:00
wh201906 0c339e91af Revert part of the commit 12a0837
I forgot I have designed "Keep the client active" for issue #22
isBusy() is deprecated for blocking the port, but it doesn't matter.
2021-09-19 21:33:53 +08:00
wh201906 85ea3fd744 Config file
_readsec(), hardnested(), _writeblk(), lockC(), setParameterC()
2021-09-19 21:00:23 +08:00
wh201906 d0bc6808d0 Config file for official client
Unfinished
Refactor darkside() _readblk(), loadSniff(), saveSniff()
Add extra waiting time when handling temp file of load/saveSniff()
2021-09-19 01:10:12 +08:00
wh201906 03d9c601fc Config fiie for official client
Unfinished
Refactor nested(), info(), chk()
2021-09-18 02:03:05 +08:00
wh201906 5a8ab42281 External command config file 2021-09-17 15:25:03 +08:00
wh201906 12a0837c50 Fix a bug
Trying to fix #22
Open client with QProcess::Text for proper newline character(s)
On Raspbian, the isBusy() function will always return false, even the serial port is actually connected.
2021-09-05 21:35:03 +08:00
wh201906 d6f02e7a69 Update building instructions 2021-08-14 17:05:13 +08:00
wh201906 02a8fe03e3 Fix a bug
#21
2021-08-07 11:21:19 +08:00
wh201906 3523c1eace Fix a bug
#20
I got a wrong tutorial saying that I should use xxx.ts on Linux
2021-08-05 11:57:35 +08:00
24 changed files with 1523 additions and 1085 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target !isEmpty(target.path): INSTALLS += target
VERSION = 0.2.1 VERSION = 0.2.2
QMAKE_TARGET_PRODUCT = "Proxmark3GUI" QMAKE_TARGET_PRODUCT = "Proxmark3GUI"
QMAKE_TARGET_DESCRIPTION = "Proxmark3GUI" QMAKE_TARGET_DESCRIPTION = "Proxmark3GUI"
QMAKE_TARGET_COMPANY = "wh201906" QMAKE_TARGET_COMPANY = "wh201906"
+14 -6
View File
@@ -34,8 +34,8 @@ A cross-platform GUI for [Proxmark3](https://github.com/Proxmark/proxmark3) clie
## About Iceman fork/repo ## About Iceman fork/repo
The [Iceman fork/repo](https://github.com/RfidResearchGroup/proxmark3) has more powerful functions like offline sniff. These guys even developed a new hardware called Proxmark3 RDV4 with smart card support. But the official repo and the Iceman repo is not fully compatible. The [Iceman fork/repo](https://github.com/RfidResearchGroup/proxmark3) has more powerful functions. These guys even developed a new hardware called Proxmark3 RDV4 with smart card support. But the official repo and the Iceman repo is not fully compatible.
This GUI is compatible with Iceman/RRG repo(tested on v4.9237) This GUI is compatible with Iceman/RRG repo(tested on v4.13441)
*** ***
@@ -51,7 +51,9 @@ Great thanks to him.
## Build on Linux ## Build on Linux
cd ~ cd ~
git clone https://github.com/wh201906/Proxmark3GUI.git sudo apt-get update
sudo apt-get install qt5-default libqt5serialport5 libqt5serialport5-dev
git clone https://github.com/wh201906/Proxmark3GUI.git --depth=1
cd Proxmark3GUI cd Proxmark3GUI
mkdir build mkdir build
cd build cd build
@@ -59,16 +61,22 @@ Great thanks to him.
make make
make clean make clean
cp -r ../lang ./ cp -r ../lang ./
cp -r ../config ./
./Proxmark3GUI ./Proxmark3GUI
*** ***
## Update Log: ## Update Log:
### V0.2.2
+ Load command format from external json file
+ Fix bug [#20](https://github.com/wh201906/Proxmark3GUI/issues/20), [#21](https://github.com/wh201906/Proxmark3GUI/issues/21), [#22](https://github.com/wh201906/Proxmark3GUI/issues/22)
+ Support Iceman/RRG repo v4.13441
### V0.2.1 ### V0.2.1
+ Optimize MIFARE Classic reading logic + Optimize MIFARE Classic reading logic
+ Fix bug #16 + Fix bug [#16](https://github.com/wh201906/Proxmark3GUI/issues/16)
+ Fix bug #15 partially (the path can contain spaces now) + Fix bug [#15](https://github.com/wh201906/Proxmark3GUI/issues/15) partially (the path can contain spaces now)
### V0.2 ### V0.2
+ Use Dock widget for more flexible layout + Use Dock widget for more flexible layout
+12 -4
View File
@@ -34,7 +34,7 @@
## 关于冰人版 ## 关于冰人版
[冰人版](https://github.com/RfidResearchGroup/proxmark3)(Iceman/RRG)的客户端和固件更新更为激进,相比官方版具有更多的功能 [冰人版](https://github.com/RfidResearchGroup/proxmark3)(Iceman/RRG)的客户端和固件更新更为激进,相比官方版具有更多的功能
此GUI所有功能均兼容冰人版(在v4.9237上测试通过) 此GUI所有功能均兼容冰人版(在v4.13441上测试通过)
*** ***
@@ -50,7 +50,9 @@ release页面中有含客户端的GUI。这个GUI也可以搭配你自己的客
## 在Linux系统下编译 ## 在Linux系统下编译
cd ~ cd ~
git clone https://github.com/wh201906/Proxmark3GUI.git sudo apt-get update
sudo apt-get install qt5-default libqt5serialport5 libqt5serialport5-dev
git clone https://github.com/wh201906/Proxmark3GUI.git --depth=1
cd Proxmark3GUI cd Proxmark3GUI
mkdir build mkdir build
cd build cd build
@@ -58,16 +60,22 @@ release页面中有含客户端的GUI。这个GUI也可以搭配你自己的客
make make
make clean make clean
cp -r ../lang ./ cp -r ../lang ./
cp -r ../config ./
./Proxmark3GUI ./Proxmark3GUI
*** ***
## 更新日志: ## 更新日志:
### V0.2.2
+ 从外部文件加载客户端命令格式
+ 修复 [#20](https://github.com/wh201906/Proxmark3GUI/issues/20), [#21](https://github.com/wh201906/Proxmark3GUI/issues/21), [#22](https://github.com/wh201906/Proxmark3GUI/issues/22)
+ 兼容冰人版客户端 v4.13441
### V0.2.1 ### V0.2.1
+ 优化MIFARE Classic读卡逻辑 + 优化MIFARE Classic读卡逻辑
+ 修复 #16 (配合新版RRG固件时无法读取扇区数据) + 修复 [#16](https://github.com/wh201906/Proxmark3GUI/issues/16) (配合新版RRG固件时无法读取扇区数据)
+ 修复 #15 (路径中支持空格) + 修复 [#15](https://github.com/wh201906/Proxmark3GUI/issues/15) (路径中支持空格)
### V0.2 ### V0.2
+ 使用浮动窗口,界面配置更加灵活 + 使用浮动窗口,界面配置更加灵活
+11 -5
View File
@@ -26,7 +26,7 @@ void PM3Process::connectPM3(const QString& path, const QStringList args)
currArgs = args; currArgs = args;
// using "-f" option to make the client output flushed after every print. // using "-f" option to make the client output flushed after every print.
start(path, args, QProcess::Unbuffered | QProcess::ReadWrite); start(path, args, QProcess::Unbuffered | QProcess::ReadWrite | QProcess::Text);
if(waitForStarted(10000)) if(waitForStarted(10000))
{ {
waitForReadyRead(10000); waitForReadyRead(10000);
@@ -36,11 +36,13 @@ void PM3Process::connectPM3(const QString& path, const QStringList args)
{ {
clientType = Util::CLIENTTYPE_ICEMAN; clientType = Util::CLIENTTYPE_ICEMAN;
setRequiringOutput(true); setRequiringOutput(true);
write("hw version\r\n"); write("hw version\n");
for(int i = 0; i < 10; i++) for(int i = 0; i < 50; i++)
{ {
waitForReadyRead(200); waitForReadyRead(200);
result += *requiredOutput; result += *requiredOutput;
if(result.indexOf("os: ") != -1)
break;
} }
setRequiringOutput(false); setRequiringOutput(false);
} }
@@ -52,8 +54,8 @@ void PM3Process::connectPM3(const QString& path, const QStringList args)
{ {
emit changeClientType(clientType); emit changeClientType(clientType);
result = result.mid(result.indexOf("os: ")); result = result.mid(result.indexOf("os: "));
result = result.left(result.indexOf("\r\n")); result = result.left(result.indexOf("\n"));
result = result.mid(3, result.lastIndexOf(" ") - 3); result = result.mid(4, result.indexOf(" ", 4) - 4);
emit PM3StatedChanged(true, result); emit PM3StatedChanged(true, result);
} }
else else
@@ -105,6 +107,10 @@ void PM3Process::setSerialListener(bool state)
void PM3Process::onTimeout() //when the proxmark3 client is unexpectedly terminated or the PM3 hardware is removed, the isBusy() will return false(only tested on Windows); void PM3Process::onTimeout() //when the proxmark3 client is unexpectedly terminated or the PM3 hardware is removed, the isBusy() will return false(only tested on Windows);
{ {
// isBusy() is a deprecated function because it will block the serial port when the port is not in use.
// However, the PM3 client is supposed to use the target serial port exclusively, so it should be fine
// isBusy() will always return false on Raspbian, in this case, check "Keep the client active" in the Settings panel.
//
// qDebug()<<portInfo->isBusy(); // qDebug()<<portInfo->isBusy();
if(!portInfo->isBusy()) if(!portInfo->isBusy())
{ {
+3 -3
View File
@@ -31,10 +31,10 @@ void Util::execCMD(const QString& cmd)
{ {
qDebug() << "executing: " << cmd; qDebug() << "executing: " << cmd;
if(isRunning) if(isRunning)
emit write(cmd + "\r\n"); emit write(cmd + "\n");
} }
QString Util::execCMDWithOutput(const QString& cmd, ReturnTrigger trigger) QString Util::execCMDWithOutput(const QString& cmd, ReturnTrigger trigger, bool rawOutput)
{ {
// if the trigger is empty, this function will wait trigger.waitTime then return all outputs during the wait time. // if the trigger is empty, this function will wait trigger.waitTime then return all outputs during the wait time.
// otherwise, this function will return empty string if no trigger is detected, or return outputs if any trigger is detected. // otherwise, this function will return empty string if no trigger is detected, or return outputs if any trigger is detected.
@@ -78,7 +78,7 @@ QString Util::execCMDWithOutput(const QString& cmd, ReturnTrigger trigger)
} }
} }
isRequiringOutput = false; isRequiringOutput = false;
return (isResultFound || trigger.expectedOutputs.isEmpty() ? *requiredOutput : ""); return (isResultFound || trigger.expectedOutputs.isEmpty() || rawOutput ? *requiredOutput : "");
} }
void Util::delay(unsigned int msec) void Util::delay(unsigned int msec)
+1 -1
View File
@@ -53,7 +53,7 @@ public:
explicit Util(QObject *parent = nullptr); explicit Util(QObject *parent = nullptr);
void execCMD(const QString& cmd); void execCMD(const QString& cmd);
QString execCMDWithOutput(const QString& cmd, ReturnTrigger trigger = 10000); QString execCMDWithOutput(const QString& cmd, ReturnTrigger trigger = 10000, bool rawOutput = false);
void delay(unsigned int msec); void delay(unsigned int msec);
static ClientType getClientType(); static ClientType getClientType();
static int rawTabIndex; static int rawTabIndex;
+195
View File
@@ -0,0 +1,195 @@
{
"//": "Based on Proxmark3 official repo v3.1.0, commit 6116334",
"//": "You can change this file if the command format of client changes",
"mifare classic": {
"nested": {
"cmd": "hf mf nested <card type> *",
"card type": {
"mini": "0",
"1k": "1",
"2k": "2",
"4k": "4"
},
"key pattern": "\\|\\s*\\d{3}\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|",
"key A index": 2,
"key B index": 4
},
"check": {
"cmd": "hf mf chk *<card type> ?",
"card type": {
"mini": "0",
"1k": "1",
"2k": "2",
"4k": "4"
},
"key pattern": "\\|\\s*\\d{3}\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|",
"key A index": 2,
"key B index": 3
},
"info": {
"cmd": "hf 14a info"
},
"sniff": {
"cmd": "hf mf sniff"
},
"sniff 14a": {
"cmd": "hf 14a snoop"
},
"list": {
"cmd": "hf list mf"
},
"dump": {
"cmd": "hf mf dump"
},
"restore": {
"cmd": "hf mf restore"
},
"emulator wipe": {
"cmd": "hf mf eclr"
},
"Magic Card wipe": {
"cmd": "hf mf cwipe <card type> f",
"card type": {
"mini": "0",
"1k": "1",
"2k": "2",
"4k": "4"
}
},
"emulator read block": {
"cmd": "hf mf eget <block>",
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
},
"Magic Card read block": {
"cmd": "hf mf cgetblk <block>",
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
},
"normal read block": {
"cmd": "hf mf rdbl <block> <key type> <key>",
"key type": {
"A": "A",
"B": "B"
},
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
},
"darkside": {
"cmd": "hf mf mifare"
},
"save sniff": {
"cmd": "hf list mf -s <filename>"
},
"load sniff": {
"cmd": "hf list mf -l <filename>"
},
"hardnested": {
"cmd": "hf mf hardnested <known key block> <known key type> <known key> <target key block> <target key type>",
"known key type": {
"A": "A",
"B": "B"
},
"target key type": {
"A": "A",
"B": "B"
}
},
"normal read sector": {
"cmd": "hf mf rdsc <sector> <key type> <key>",
"key type": {
"A": "A",
"B": "B"
},
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
},
"Magic Card read sector": {
"cmd": "hf mf cgetsc <sector>",
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
},
"//": "When writing a block, if the result is not empty and doesn't contain the failed flag, the function will return true",
"normal write block": {
"cmd": "hf mf wrbl <block> <key type> <key> <data>",
"key type": {
"A": "A",
"B": "B"
},
"failed flag": [
"isOk:00"
]
},
"Magic Card write block": {
"cmd": "hf mf csetblk <block> <data>",
"failed flag": [
"No chinese magic"
]
},
"emulator write block": {
"cmd": "hf mf eset <block> <data>"
},
"Magic Card lock": {
"cmd": "hf 14a raw ",
"sequence": [
"-pa -b7 40",
"-pa 43",
"-pa E0 00 39 F7",
"-pa E1 00 E1 EE",
"-pa 85 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 18 47",
"-a 52"
]
},
"Magic Card set parameter": {
"cmd": "hf mf csetuid <uid> <atqa> <sak>"
}
},
"lf": {
"read": {
"cmd": "lf read",
"show cmd": "data plot"
},
"sniff": {
"cmd": "lf snoop",
"show cmd": "data plot"
},
"search": {
"cmd": "lf search u"
},
"tune": {
"cmd": "hw tune l"
},
"get config": {
"cmd": "hw status",
"field start": "LF Sampling config:",
"field end": "USB Speed:",
"divisor": {
"flag": "divisor:",
"pattern": "\\d+"
},
"bits per sample": {
"flag": "bps:",
"pattern": "\\d+"
},
"decimation": {
"flag": "decimation:",
"pattern": "\\d+"
},
"averaging": {
"flag": "averaging:",
"pattern": "\\d+"
},
"trigger threshold": {
"flag": "trigger threshold:",
"pattern": "\\d+"
},
"samples to skip": {
"flag": "samples to skip:",
"pattern": "\\d+"
},
"//": "execute 'cmd' then find parameters between 'field stard' and 'field end'",
"//": "for each line, if the line doesn't have any flag, skip",
"//": "otherwise, delete characters before 'flag' and 'flag' itself, then use 'pattern' to get the parameter",
"//": "If 'replace' dict exists, replace all keys with respective values before getting parameters"
},
"set config": {
"cmd": "lf config q <divisor> b <bits per sample> d <decimation> a <averaging> t <trigger threshold> s <samples to skip>",
"divisor cmd": "hw setlfdivisor <divisor>"
}
}
}
+203
View File
@@ -0,0 +1,203 @@
{
"//": "Based on Proxmark3 rrg repo v4.13441, commit 35ddebc",
"//": "You can change this file if the command format of client changes",
"mifare classic": {
"nested": {
"cmd": "hf mf nested --<card type> --blk <block> -<key type> -k <key>",
"static cmd": "hf mf staticnested --<card type> --blk <block> -<key type> -k <key>",
"card type": {
"mini": "mini",
"1k": "1k",
"2k": "2k",
"4k": "4k"
},
"key type": {
"A": "a",
"B": "b"
},
"key pattern": "\\|\\s*\\d{3}\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|",
"key A index": 2,
"key B index": 4
},
"check": {
"cmd": "hf mf chk --<card type>",
"card type": {
"mini": "mini",
"1k": "1k",
"2k": "2k",
"4k": "4k"
},
"key pattern": "\\|\\s*\\d{3}\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|",
"key A index": 2,
"key B index": 4
},
"info": {
"cmd": "hf 14a info"
},
"sniff": {
"cmd": "hf sniff"
},
"sniff 14a": {
"cmd": "hf 14a sniff"
},
"list": {
"cmd": "trace list -t mf"
},
"dump": {
"cmd": "hf mf dump"
},
"restore": {
"cmd": "hf mf restore"
},
"emulator wipe": {
"cmd": "hf mf eclr"
},
"Magic Card wipe": {
"cmd": "hf mf cwipe"
},
"emulator read block": {
"cmd": "hf mf egetblk --blk <block>",
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
},
"Magic Card read block": {
"cmd": "hf mf cgetblk --blk <block>",
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
},
"normal read block": {
"cmd": "hf mf rdbl --blk <block> -<key type> -k <key>",
"key type": {
"A": "a",
"B": "b"
},
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
},
"darkside": {
"cmd": "hf mf darkside"
},
"save sniff": {
"cmd": "trace save -f <filename>"
},
"load sniff": {
"cmd": "trace load -f <filename>",
"show cmd": "trace list --buffer -t mf"
},
"hardnested": {
"cmd": "hf mf hardnested --blk <known key block> -<known key type> -k <known key> --tblk <target key block> --t<target key type>",
"known key type": {
"A": "a",
"B": "b"
},
"target key type": {
"A": "a",
"B": "b"
}
},
"normal read sector": {
"cmd": "hf mf rdsc --sec <sector> -<key type> -k <key>",
"key type": {
"A": "a",
"B": "b"
},
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
},
"Magic Card read sector": {
"cmd": "hf mf cgetsc --sec <sector>",
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
},
"//": "When writing a block, if the result is not empty and doesn't contain the failed flag, the function will return true",
"normal write block": {
"cmd": "hf mf wrbl --blk <block> -<key type> -k <key> -d <data>",
"key type": {
"A": "a",
"B": "b"
},
"failed flag": [
"fail",
"error"
]
},
"Magic Card write block": {
"cmd": "hf mf csetblk --blk <block> -d <data>",
"failed flag": [
"fail",
"error"
]
},
"emulator write block": {
"cmd": "hf mf esetblk --blk <block> -d <data>"
},
"Magic Card lock": {
"cmd": "hf 14a raw ",
"sequence": [
"-ak -b 7 40",
"-ak 43",
"-ak E0 00 39 F7",
"-ak E1 00 E1 EE",
"-ak 85 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 18 47",
"-a 52"
]
},
"Magic Card set parameter": {
"cmd": "hf mf csetuid --uid <uid> --atqa <atqa> --sak <sak>"
}
},
"lf": {
"read": {
"cmd": "lf read -v",
"show cmd": "data plot"
},
"sniff": {
"cmd": "lf sniff -v",
"show cmd": "data plot"
},
"search": {
"cmd": "lf search -u"
},
"tune": {
"cmd": "lf tune --divisor <divisor>"
},
"get config": {
"cmd": "hw status",
"field start": "LF Sampling config",
"field end": "LF Sampling Stack",
"divisor": {
"flag": "divisor",
"pattern": "\\d+"
},
"bits per sample": {
"flag": "bits per sample",
"pattern": "\\d+"
},
"decimation": {
"flag": "decimation",
"pattern": "\\d+"
},
"averaging": {
"flag": "averaging",
"pattern": "\\d+",
"replace": {
"yes": "1",
"no": "0",
"Yes": "1",
"No": "0"
}
},
"trigger threshold": {
"flag": "trigger threshold",
"pattern": "\\d+"
},
"samples to skip": {
"flag": "samples to skip",
"pattern": "\\d+"
},
"//": "execute 'cmd' then find parameters between 'field stard' and 'field end'",
"//": "for each line, if the line doesn't have any flag, skip",
"//": "otherwise, delete characters before 'flag' and 'flag' itself, then use 'pattern' to get the parameter",
"//": "If 'replace' dict exists, replace all keys with respective values before getting parameters"
},
"set config": {
"cmd": "lf config --divisor <divisor> --bps <bits per sample> --dec <decimation> --avg <averaging> --trig <trigger threshold> --skip <samples to skip>",
"divisor cmd": "hw setlfdivisor -d <divisor>"
}
}
}
+217 -204
View File
@@ -377,7 +377,6 @@ It could make the whole sector blocked irreversibly!</source>
<message> <message>
<location filename="../ui/mainwindow.ui" line="509"/> <location filename="../ui/mainwindow.ui" line="509"/>
<location filename="../ui/mainwindow.ui" line="1215"/> <location filename="../ui/mainwindow.ui" line="1215"/>
<location filename="../ui/mainwindow.ui" line="2702"/>
<source>Save</source> <source>Save</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -468,40 +467,28 @@ It could make the whole sector blocked irreversibly!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1396"/> <location filename="../ui/mainwindow.ui" line="1465"/>
<source>Note:
You might need a modified LF antenna if the freq is not 125k/134k.
When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="1428"/>
<source>Bit per sample:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="1466"/>
<source>Trigger threshold:</source> <source>Trigger threshold:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1480"/> <location filename="../ui/mainwindow.ui" line="1479"/>
<source>Samples to skip:</source> <source>Samples to skip:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1551"/> <location filename="../ui/mainwindow.ui" line="1550"/>
<source>Get Config</source> <source>Get Config</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1570"/> <location filename="../ui/mainwindow.ui" line="1569"/>
<source>Set Config</source> <source>Set Config</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="747"/> <location filename="../ui/mainwindow.ui" line="747"/>
<location filename="../ui/mainwindow.ui" line="2404"/> <location filename="../ui/mainwindow.ui" line="2403"/>
<source>Data:</source> <source>Data:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -532,7 +519,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</sou
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="914"/> <location filename="../ui/mainwindow.ui" line="914"/>
<location filename="../ui/mainwindow.cpp" line="812"/> <location filename="../ui/mainwindow.cpp" line="831"/>
<source>About UID Card</source> <source>About UID Card</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -632,7 +619,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</sou
<message> <message>
<location filename="../ui/mainwindow.ui" line="1129"/> <location filename="../ui/mainwindow.ui" line="1129"/>
<location filename="../ui/mainwindow.ui" line="1163"/> <location filename="../ui/mainwindow.ui" line="1163"/>
<location filename="../ui/mainwindow.ui" line="1801"/> <location filename="../ui/mainwindow.ui" line="1800"/>
<source>Sniff</source> <source>Sniff</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -662,612 +649,638 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</sou
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1435"/> <location filename="../ui/mainwindow.ui" line="1396"/>
<source>You might need a modified LF antenna if the freq is not 125k/134k.
When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="1427"/>
<source>Bits per sample:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="1434"/>
<source>Decimation:</source> <source>Decimation:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1452"/> <location filename="../ui/mainwindow.ui" line="1451"/>
<source>Averaging:</source> <source>Averaging:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1577"/> <location filename="../ui/mainwindow.ui" line="1576"/>
<source>Reset</source> <source>Reset</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1602"/> <location filename="../ui/mainwindow.ui" line="1601"/>
<source>LF Operation</source> <source>LF Operation</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1627"/> <location filename="../ui/mainwindow.ui" line="1626"/>
<source>Search</source> <source>Search</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1658"/> <location filename="../ui/mainwindow.ui" line="1657"/>
<source>Read and search for valid known tag.</source> <source>Read and search for valid known tag.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1684"/> <location filename="../ui/mainwindow.ui" line="1683"/>
<source>Read</source> <source>Read</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1715"/> <location filename="../ui/mainwindow.ui" line="1714"/>
<source>Sniff low frequency signal with LF field ON. <source>Sniff low frequency signal with LF field ON.
Use this to get raw data from a tag.</source> Use this to get raw data from a tag.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1742"/> <location filename="../ui/mainwindow.ui" line="1741"/>
<source>Tune</source> <source>Tune</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1773"/> <location filename="../ui/mainwindow.ui" line="1772"/>
<source>Measure LF antenna tuning. <source>Measure LF antenna tuning.
If the antenna voltage has a obvious drop after putting card on the antenna, it is likely that the tag is a LF tag. If the antenna voltage has a obvious drop after putting card on the antenna, it is likely that the tag is a LF tag.
On Iceman/RRG repo, press the button on PM3 to stop measuring</source> On Iceman/RRG repo, press the button on PM3 to stop measuring</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1832"/> <location filename="../ui/mainwindow.ui" line="1831"/>
<source>Sniff low frequency signal with LF field OFF. <source>Sniff low frequency signal with LF field OFF.
Use this to get raw data from a reader Use this to get raw data from a reader
or the communication between a tag and a reader.</source> or the communication between a tag and a reader.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1884"/> <location filename="../ui/mainwindow.ui" line="1883"/>
<source>T55xx</source> <source>T55xx</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1896"/> <location filename="../ui/mainwindow.ui" line="1895"/>
<source>Basic Configuration(Page 0 Block 0)</source> <source>Basic Configuration(Page 0 Block 0)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1910"/> <location filename="../ui/mainwindow.ui" line="1909"/>
<location filename="../ui/mainwindow.ui" line="2186"/> <location filename="../ui/mainwindow.ui" line="2185"/>
<source>Hex:</source> <source>Hex:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1917"/> <location filename="../ui/mainwindow.ui" line="1916"/>
<location filename="../ui/mainwindow.ui" line="2193"/> <location filename="../ui/mainwindow.ui" line="2192"/>
<source>Bin:</source> <source>Bin:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1961"/> <location filename="../ui/mainwindow.ui" line="1960"/>
<location filename="../ui/mainwindow.ui" line="2237"/> <location filename="../ui/mainwindow.ui" line="2236"/>
<source>Get from Data</source> <source>Get from Data</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1968"/> <location filename="../ui/mainwindow.ui" line="1967"/>
<location filename="../ui/mainwindow.ui" line="2244"/> <location filename="../ui/mainwindow.ui" line="2243"/>
<source>Set to Data</source> <source>Set to Data</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1998"/> <location filename="../ui/mainwindow.ui" line="1997"/>
<location filename="../ui/mainwindow.ui" line="2277"/> <location filename="../ui/mainwindow.ui" line="2276"/>
<source>Locked:</source> <source>Locked:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2008"/> <location filename="../ui/mainwindow.ui" line="2007"/>
<source>Master Key:</source> <source>Master Key:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2015"/> <location filename="../ui/mainwindow.ui" line="2014"/>
<source>Data Bit Rate:</source> <source>Data Bit Rate:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2025"/> <location filename="../ui/mainwindow.ui" line="2024"/>
<source>eXtended Mode:</source> <source>eXtended Mode:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2032"/> <location filename="../ui/mainwindow.ui" line="2031"/>
<location filename="../ui/mainwindow.ui" line="2431"/> <location filename="../ui/mainwindow.ui" line="2430"/>
<source>Modulation:</source> <source>Modulation:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2039"/> <location filename="../ui/mainwindow.ui" line="2038"/>
<source>PSK Clock Freq:</source> <source>PSK Clock Freq:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2046"/> <location filename="../ui/mainwindow.ui" line="2045"/>
<source>Answer on Request:</source> <source>Answer on Request:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2059"/> <location filename="../ui/mainwindow.ui" line="2058"/>
<source>One Time Pad:</source> <source>One Time Pad:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2066"/> <location filename="../ui/mainwindow.ui" line="2065"/>
<source>Max Block:</source> <source>Max Block:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2073"/> <location filename="../ui/mainwindow.ui" line="2072"/>
<source>Password:</source> <source>Password:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2080"/> <location filename="../ui/mainwindow.ui" line="2079"/>
<source>Seq. Terminator:</source> <source>Seq. Terminator:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2087"/> <location filename="../ui/mainwindow.ui" line="2086"/>
<source>Seq. Start Marker:</source> <source>Seq. Start Marker:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2094"/> <location filename="../ui/mainwindow.ui" line="2093"/>
<source>Fast Downlink:</source> <source>Fast Downlink:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2101"/> <location filename="../ui/mainwindow.ui" line="2100"/>
<source>Inverse Data:</source> <source>Inverse Data:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2108"/> <location filename="../ui/mainwindow.ui" line="2107"/>
<source>Init-Delay:</source> <source>Init-Delay:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2172"/> <location filename="../ui/mainwindow.ui" line="2171"/>
<source>Analog Front-End Option(Page 1 Block 3)</source> <source>Analog Front-End Option(Page 1 Block 3)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2287"/> <location filename="../ui/mainwindow.ui" line="2286"/>
<source>Option Key:</source> <source>Option Key:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2297"/> <location filename="../ui/mainwindow.ui" line="2296"/>
<source>Soft Modulation:</source> <source>Soft Modulation:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2307"/> <location filename="../ui/mainwindow.ui" line="2306"/>
<source>Clamp Voltage:</source> <source>Clamp Voltage:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2317"/> <location filename="../ui/mainwindow.ui" line="2316"/>
<source>Modulation Voltage:</source> <source>Modulation Voltage:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2327"/> <location filename="../ui/mainwindow.ui" line="2326"/>
<source>Clock Detection Threshold:</source> <source>Clock Detection Threshold:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2337"/> <location filename="../ui/mainwindow.ui" line="2336"/>
<source>Gap Detection Threshold:</source> <source>Gap Detection Threshold:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2347"/> <location filename="../ui/mainwindow.ui" line="2346"/>
<source>Write Dampling:</source> <source>Write Dampling:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2354"/> <location filename="../ui/mainwindow.ui" line="2353"/>
<source>Demod Delay:</source> <source>Demod Delay:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2361"/> <location filename="../ui/mainwindow.ui" line="2360"/>
<source>Downlink Protocol:</source> <source>Downlink Protocol:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2423"/> <location filename="../ui/mainwindow.ui" line="2422"/>
<source>T55xx Read Config</source> <source>T55xx Read Config</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2438"/> <location filename="../ui/mainwindow.ui" line="2437"/>
<source>Bit Rate:</source> <source>Bit Rate:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2445"/> <location filename="../ui/mainwindow.ui" line="2444"/>
<source>Seq. Term.</source> <source>Seq. Term.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2452"/> <location filename="../ui/mainwindow.ui" line="2451"/>
<source>Offset:</source> <source>Offset:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2459"/> <location filename="../ui/mainwindow.ui" line="2458"/>
<source>Inverted:</source> <source>Inverted:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2493"/> <location filename="../ui/mainwindow.ui" line="2492"/>
<source>T5577</source> <source>T5577</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2500"/> <location filename="../ui/mainwindow.ui" line="2499"/>
<source>T5555</source> <source>T5555</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2524"/> <location filename="../ui/mainwindow.ui" line="2523"/>
<source>RawCommand</source> <source>RawCommand</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2571"/> <location filename="../ui/mainwindow.ui" line="2570"/>
<location filename="../ui/mainwindow.cpp" line="244"/> <location filename="../ui/mainwindow.cpp" line="263"/>
<source>History:</source> <source>History:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2603"/> <location filename="../ui/mainwindow.ui" line="2602"/>
<source>ClearHistory</source> <source>ClearHistory</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2622"/> <location filename="../ui/mainwindow.ui" line="2621"/>
<source>Send</source> <source>Send</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2629"/> <location filename="../ui/mainwindow.ui" line="2628"/>
<source>ClearOutput</source> <source>ClearOutput</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2639"/> <location filename="../ui/mainwindow.ui" line="2638"/>
<source>Settings</source> <source>Settings</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2647"/> <location filename="../ui/mainwindow.ui" line="2646"/>
<source>Client</source> <source>Client</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2653"/> <location filename="../ui/mainwindow.ui" line="2652"/>
<source>Preload script path:</source> <source>Preload script path(Reconnect to apply):</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2667"/> <location filename="../ui/mainwindow.ui" line="2666"/>
<source>Note: <source>If the client requires some enviroment variables, you can make a script file(*.bat on Windows or *.sh on Linux) to configure them, then put the path of the script there.</source>
If the client requires some enviroment variables, you can make a script file(*.bat on Windows or *.sh on Linux) to configure them,
then put the path of the script there</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2686"/> <location filename="../ui/mainwindow.ui" line="2683"/>
<source>Client working directory:</source> <source>Client working directory(Reconnect to apply):</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2695"/> <location filename="../ui/mainwindow.ui" line="2697"/>
<source>On Windows, the client working directory should not be identical to the path of GUI, otherwise the client will use the wrong .dll file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2714"/>
<source>Start arguments(Reconnect to apply):</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2728"/>
<source>-f is necessary because the GUI need to handle the output in time. In some cases, the arguments should be set to &quot;-p /dev/&lt;port&gt; -f&quot; or &quot;-p &lt;port&gt; -f&quot;.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2745"/>
<source>Config file path(Reconnect to apply):</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2752"/>
<source>config.json</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2759"/>
<source>Different clients require different config files. You can change the content of config file if the command format changes.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2849"/>
<source>Keep the client active even the PM3 hardware is disconnected.(Experimental)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2690"/>
<source>../data</source> <source>../data</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2711"/> <location filename="../ui/mainwindow.ui" line="2721"/>
<source>Note:
On Windows, the client working directory should not be identical to the path of GUI, otherwise the client will use the wrong .dll file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2729"/>
<source>Start arguments</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2736"/>
<source>&lt;port&gt; -f</source> <source>&lt;port&gt; -f</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2743"/> <location filename="../ui/mainwindow.ui" line="2803"/>
<source>Note:
-f is necessary because the GUI need to handle the output in time
In some cases the arguments should be set to &quot;-p /dev/&lt;port&gt; -f&quot;
or &quot;-p &lt;port&gt; -f&quot;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2790"/>
<source>Keep buttons enabled even the client is running or disconnected</source> <source>Keep buttons enabled even the client is running or disconnected</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2836"/> <location filename="../ui/mainwindow.ui" line="2864"/>
<source>Keep te client active even the PM3 hardware is disconnected.(Experimental)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2851"/>
<source>GUI</source> <source>GUI</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2859"/> <location filename="../ui/mainwindow.ui" line="2872"/>
<source>Language: </source> <source>Language: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2866"/> <location filename="../ui/mainwindow.ui" line="2879"/>
<source>Choose Language</source> <source>Choose Language</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2873"/> <location filename="../ui/mainwindow.ui" line="2886"/>
<source>(Restart this app to use new language)</source> <source>(Restart this app to use new language)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="111"/> <location filename="../ui/mainwindow.cpp" line="80"/>
<location filename="../ui/mainwindow.cpp" line="347"/> <location filename="../ui/mainwindow.cpp" line="129"/>
<location filename="../ui/mainwindow.cpp" line="573"/> <location filename="../ui/mainwindow.cpp" line="366"/>
<location filename="../ui/mainwindow.cpp" line="593"/> <location filename="../ui/mainwindow.cpp" line="592"/>
<location filename="../ui/mainwindow.cpp" line="606"/> <location filename="../ui/mainwindow.cpp" line="612"/>
<location filename="../ui/mainwindow.cpp" line="625"/> <location filename="../ui/mainwindow.cpp" line="625"/>
<location filename="../ui/mainwindow.cpp" line="638"/> <location filename="../ui/mainwindow.cpp" line="644"/>
<location filename="../ui/mainwindow.cpp" line="665"/> <location filename="../ui/mainwindow.cpp" line="657"/>
<location filename="../ui/mainwindow.cpp" line="678"/> <location filename="../ui/mainwindow.cpp" line="684"/>
<location filename="../ui/mainwindow.cpp" line="869"/> <location filename="../ui/mainwindow.cpp" line="697"/>
<location filename="../ui/mainwindow.cpp" line="888"/> <location filename="../ui/mainwindow.cpp" line="889"/>
<location filename="../ui/mainwindow.cpp" line="914"/>
<source>Info</source> <source>Info</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="111"/> <location filename="../ui/mainwindow.cpp" line="129"/>
<source>Plz choose a port first</source> <source>Plz choose a port first</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="178"/> <location filename="../ui/mainwindow.cpp" line="197"/>
<source>Connected</source> <source>Connected</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="184"/> <location filename="../ui/mainwindow.cpp" line="203"/>
<location filename="../ui/mainwindow.cpp" line="973"/> <location filename="../ui/mainwindow.cpp" line="999"/>
<source>Not Connected</source> <source>Not Connected</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="619"/> <location filename="../ui/mainwindow.cpp" line="638"/>
<source>Binary Data Files(*.bin *.dump);;Text Data Files(*.txt *.eml);;All Files(*.*)</source> <source>Binary Data Files(*.bin *.dump);;Text Data Files(*.txt *.eml);;All Files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="625"/> <location filename="../ui/mainwindow.cpp" line="644"/>
<location filename="../ui/mainwindow.cpp" line="638"/> <location filename="../ui/mainwindow.cpp" line="657"/>
<location filename="../ui/mainwindow.cpp" line="869"/> <location filename="../ui/mainwindow.cpp" line="889"/>
<source>Failed to open</source> <source>Failed to open</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="347"/> <location filename="../ui/mainwindow.cpp" line="366"/>
<source>Continue?</source> <source>Continue?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="9"/> <location filename="../ui/mainwindow.cpp" line="11"/>
<source>Dock all windows</source> <source>Dock all windows</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="11"/> <location filename="../ui/mainwindow.cpp" line="13"/>
<source>Ver: </source> <source>Ver: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="12"/> <location filename="../ui/mainwindow.cpp" line="14"/>
<source>Check Update</source> <source>Check Update</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="347"/> <location filename="../ui/mainwindow.cpp" line="80"/>
<source>Failed to load config file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="366"/>
<source>Some of the data and key will be cleared.</source> <source>Some of the data and key will be cleared.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="460"/> <location filename="../ui/mainwindow.cpp" line="479"/>
<source>Plz select the font of data widget and key widget</source> <source>Plz select the font of data widget and key widget</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="573"/> <location filename="../ui/mainwindow.cpp" line="592"/>
<source>Data must consists of 32 Hex symbols(Whitespace is allowed)</source> <source>Data must consists of 32 Hex symbols(Whitespace is allowed)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="593"/> <location filename="../ui/mainwindow.cpp" line="612"/>
<location filename="../ui/mainwindow.cpp" line="606"/> <location filename="../ui/mainwindow.cpp" line="625"/>
<source>Key must consists of 12 Hex symbols(Whitespace is allowed)</source> <source>Key must consists of 12 Hex symbols(Whitespace is allowed)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="618"/> <location filename="../ui/mainwindow.cpp" line="637"/>
<source>Plz select the data file:</source> <source>Plz select the data file:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="631"/> <location filename="../ui/mainwindow.cpp" line="650"/>
<source>Plz select the key file:</source> <source>Plz select the key file:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="632"/> <location filename="../ui/mainwindow.cpp" line="651"/>
<source>Binary Key Files(*.bin *.dump);;Binary Data Files(*.bin *.dump);;All Files(*.*)</source> <source>Binary Key Files(*.bin *.dump);;Binary Data Files(*.bin *.dump);;All Files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="658"/> <location filename="../ui/mainwindow.cpp" line="677"/>
<source>Plz select the location to save data file:</source> <source>Plz select the location to save data file:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="659"/> <location filename="../ui/mainwindow.cpp" line="678"/>
<source>Binary Data Files(*.bin *.dump);;Text Data Files(*.txt *.eml)</source> <source>Binary Data Files(*.bin *.dump);;Text Data Files(*.txt *.eml)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="665"/> <location filename="../ui/mainwindow.cpp" line="684"/>
<location filename="../ui/mainwindow.cpp" line="678"/> <location filename="../ui/mainwindow.cpp" line="697"/>
<location filename="../ui/mainwindow.cpp" line="888"/> <location filename="../ui/mainwindow.cpp" line="914"/>
<source>Failed to save to</source> <source>Failed to save to</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="671"/> <location filename="../ui/mainwindow.cpp" line="690"/>
<source>Plz select the location to save key file:</source> <source>Plz select the location to save key file:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="672"/> <location filename="../ui/mainwindow.cpp" line="691"/>
<source>Binary Key Files(*.bin *.dump)</source> <source>Binary Key Files(*.bin *.dump)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="797"/> <location filename="../ui/mainwindow.cpp" line="816"/>
<source> Normally, the Block 0 of a typical Mifare card, which contains the UID, is locked during the manufacture. Users cannot write anything to Block 0 or set a new UID to a normal Mifare card.</source> <source> Normally, the Block 0 of a typical Mifare card, which contains the UID, is locked during the manufacture. Users cannot write anything to Block 0 or set a new UID to a normal Mifare card.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="798"/> <location filename="../ui/mainwindow.cpp" line="817"/>
<source> Chinese Magic Cards(aka UID Cards) are some special cards whose Block 0 are writeable. And you can change UID by writing to it.</source> <source> Chinese Magic Cards(aka UID Cards) are some special cards whose Block 0 are writeable. And you can change UID by writing to it.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="800"/> <location filename="../ui/mainwindow.cpp" line="819"/>
<source>There are two versions of Chinese Magic Cards, the Gen1 and the Gen2.</source> <source>There are two versions of Chinese Magic Cards, the Gen1 and the Gen2.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="801"/> <location filename="../ui/mainwindow.cpp" line="820"/>
<source> Gen1:</source> <source> Gen1:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="801"/> <location filename="../ui/mainwindow.cpp" line="820"/>
<source> also called UID card in China. It responses to some backdoor commands so you can access any blocks without password. The Proxmark3 has a bunch of related commands(csetblk, cgetblk, ...) to deal with this type of card, and my GUI also support these commands.</source> <source> also called UID card in China. It responses to some backdoor commands so you can access any blocks without password. The Proxmark3 has a bunch of related commands(csetblk, cgetblk, ...) to deal with this type of card, and my GUI also support these commands.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="802"/> <location filename="../ui/mainwindow.cpp" line="821"/>
<source> Gen2:</source> <source> Gen2:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="802"/> <location filename="../ui/mainwindow.cpp" line="821"/>
<source> doesn&apos;t response to the backdoor commands, which means that a reader cannot detect whether it is a Chinese Magic Card or not by sending backdoor commands.</source> <source> doesn&apos;t response to the backdoor commands, which means that a reader cannot detect whether it is a Chinese Magic Card or not by sending backdoor commands.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="804"/> <location filename="../ui/mainwindow.cpp" line="823"/>
<source>There are some types of Chinese Magic Card Gen2.</source> <source>There are some types of Chinese Magic Card Gen2.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="805"/> <location filename="../ui/mainwindow.cpp" line="824"/>
<source> CUID Card:</source> <source> CUID Card:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="805"/> <location filename="../ui/mainwindow.cpp" line="824"/>
<source> the Block 0 is writeable, you can write to this block repeatedly by normal wrbl command.</source> <source> the Block 0 is writeable, you can write to this block repeatedly by normal wrbl command.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="806"/> <location filename="../ui/mainwindow.cpp" line="825"/>
<source> (hf mf wrbl 0 A FFFFFFFFFFFF &lt;the data you want to write&gt;)</source> <source> (hf mf wrbl 0 A FFFFFFFFFFFF &lt;the data you want to write&gt;)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="807"/> <location filename="../ui/mainwindow.cpp" line="826"/>
<source> FUID Card:</source> <source> FUID Card:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="807"/> <location filename="../ui/mainwindow.cpp" line="826"/>
<source> you can only write to Block 0 once. After that, it seems like a typical Mifare card(Block 0 cannot be written to).</source> <source> you can only write to Block 0 once. After that, it seems like a typical Mifare card(Block 0 cannot be written to).</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="808"/> <location filename="../ui/mainwindow.cpp" line="827"/>
<source> (some readers might try changing the Block 0, which could detect the CUID Card. In that case, you should use FUID card.)</source> <source> (some readers might try changing the Block 0, which could detect the CUID Card. In that case, you should use FUID card.)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="809"/> <location filename="../ui/mainwindow.cpp" line="828"/>
<source> UFUID Card:</source> <source> UFUID Card:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="809"/> <location filename="../ui/mainwindow.cpp" line="828"/>
<source> It behaves like a CUID card(or UID card? I&apos;m not sure) before you send some special command to lock it. Once it is locked, you cannot change its Block 0(just like a typical Mifare card).</source> <source> It behaves like a CUID card(or UID card? I&apos;m not sure) before you send some special command to lock it. Once it is locked, you cannot change its Block 0(just like a typical Mifare card).</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="811"/> <location filename="../ui/mainwindow.cpp" line="830"/>
<source> Seemingly, these Chinese Magic Cards are more easily to be compromised by Nested Attack(it takes little time to get an unknown key).</source> <source> Seemingly, these Chinese Magic Cards are more easily to be compromised by Nested Attack(it takes little time to get an unknown key).</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="856"/> <location filename="../ui/mainwindow.cpp" line="875"/>
<source>Plz select the trace file:</source> <source>Plz select the trace file:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="857"/> <location filename="../ui/mainwindow.cpp" line="876"/>
<source>Trace Files(*.trc);;All Files(*.*)</source> <source>Trace Files(*.trc);;All Files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="879"/> <location filename="../ui/mainwindow.cpp" line="899"/>
<source>Plz select the location to save trace file:</source> <source>Plz select the location to save trace file:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="880"/> <location filename="../ui/mainwindow.cpp" line="900"/>
<source>Trace Files(*.trc)</source> <source>Trace Files(*.trc)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="974"/> <location filename="../ui/mainwindow.cpp" line="1000"/>
<location filename="../ui/mainwindow.cpp" line="1145"/> <location filename="../ui/mainwindow.cpp" line="1172"/>
<source>Idle</source> <source>Idle</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="976"/> <location filename="../ui/mainwindow.cpp" line="1002"/>
<source>Stop</source> <source>Stop</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -1293,27 +1306,27 @@ or &quot;-p &lt;port&gt; -f&quot;</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="1082"/> <location filename="../ui/mainwindow.cpp" line="1109"/>
<source>HW Version:</source> <source>HW Version:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="1084"/> <location filename="../ui/mainwindow.cpp" line="1111"/>
<source>PM3:</source> <source>PM3:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="1086"/> <location filename="../ui/mainwindow.cpp" line="1113"/>
<source>State:</source> <source>State:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="1141"/> <location filename="../ui/mainwindow.cpp" line="1168"/>
<source>Running</source> <source>Running</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="1260"/> <location filename="../ui/mainwindow.cpp" line="1295"/>
<source>Actural Freq: </source> <source>Actural Freq: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@@ -1321,56 +1334,56 @@ or &quot;-p &lt;port&gt; -f&quot;</source>
<context> <context>
<name>Mifare</name> <name>Mifare</name>
<message> <message>
<location filename="../module/mifare.cpp" line="659"/> <location filename="../module/mifare.cpp" line="643"/>
<source>Success!</source> <source>Success!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="226"/> <location filename="../module/mifare.cpp" line="209"/>
<location filename="../module/mifare.cpp" line="659"/> <location filename="../module/mifare.cpp" line="643"/>
<location filename="../module/mifare.cpp" line="663"/> <location filename="../module/mifare.cpp" line="647"/>
<location filename="../module/mifare.cpp" line="687"/> <location filename="../module/mifare.cpp" line="671"/>
<location filename="../module/mifare.cpp" line="726"/> <location filename="../module/mifare.cpp" line="710"/>
<location filename="../module/mifare.cpp" line="739"/> <location filename="../module/mifare.cpp" line="723"/>
<location filename="../module/mifare.cpp" line="794"/> <location filename="../module/mifare.cpp" line="774"/>
<source>Info</source> <source>Info</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="226"/> <location filename="../module/mifare.cpp" line="209"/>
<source>Plz provide at least one known key</source> <source>Plz provide at least one known key</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="496"/> <location filename="../module/mifare.cpp" line="468"/>
<location filename="../module/mifare.cpp" line="663"/> <location filename="../module/mifare.cpp" line="647"/>
<source>Failed!</source> <source>Failed!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="688"/> <location filename="../module/mifare.cpp" line="672"/>
<source>The Access Bits is invalid! <source>The Access Bits is invalid!
It could make the whole sector blocked irreversibly! It could make the whole sector blocked irreversibly!
Continue to write?</source> Continue to write?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="726"/> <location filename="../module/mifare.cpp" line="710"/>
<source>Successful!</source> <source>Successful!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="739"/> <location filename="../module/mifare.cpp" line="723"/>
<source>Failed to write to these blocks:</source> <source>Failed to write to these blocks:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="743"/> <location filename="../module/mifare.cpp" line="727"/>
<source>Select them?</source> <source>Select them?</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="794"/> <location filename="../module/mifare.cpp" line="774"/>
<source>Failed to read card.</source> <source>Failed to read card.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
BIN
View File
Binary file not shown.
+229 -222
View File
@@ -381,7 +381,6 @@ It could make the whole sector blocked irreversibly!</source>
<message> <message>
<location filename="../ui/mainwindow.ui" line="509"/> <location filename="../ui/mainwindow.ui" line="509"/>
<location filename="../ui/mainwindow.ui" line="1215"/> <location filename="../ui/mainwindow.ui" line="1215"/>
<location filename="../ui/mainwindow.ui" line="2702"/>
<source>Save</source> <source>Save</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -453,7 +452,7 @@ It could make the whole sector blocked irreversibly!</source>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="747"/> <location filename="../ui/mainwindow.ui" line="747"/>
<location filename="../ui/mainwindow.ui" line="2404"/> <location filename="../ui/mainwindow.ui" line="2403"/>
<source>Data:</source> <source>Data:</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -484,7 +483,7 @@ It could make the whole sector blocked irreversibly!</source>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="914"/> <location filename="../ui/mainwindow.ui" line="914"/>
<location filename="../ui/mainwindow.cpp" line="812"/> <location filename="../ui/mainwindow.cpp" line="831"/>
<source>About UID Card</source> <source>About UID Card</source>
<translation>UID卡</translation> <translation>UID卡</translation>
</message> </message>
@@ -584,7 +583,7 @@ It could make the whole sector blocked irreversibly!</source>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1129"/> <location filename="../ui/mainwindow.ui" line="1129"/>
<location filename="../ui/mainwindow.ui" line="1163"/> <location filename="../ui/mainwindow.ui" line="1163"/>
<location filename="../ui/mainwindow.ui" line="1801"/> <location filename="../ui/mainwindow.ui" line="1800"/>
<source>Sniff</source> <source>Sniff</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -614,54 +613,66 @@ It could make the whole sector blocked irreversibly!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1435"/> <location filename="../ui/mainwindow.ui" line="1396"/>
<source>You might need a modified LF antenna if the freq is not 125k/134k.
When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</source>
<translation>125k/134k线
GUI会使用&quot;hw setlfdivisor&quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="1427"/>
<source>Bits per sample:</source>
<translation>(Bits per sample)</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="1434"/>
<source>Decimation:</source> <source>Decimation:</source>
<translation>(Decimation)</translation> <translation>(Decimation)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1452"/> <location filename="../ui/mainwindow.ui" line="1451"/>
<source>Averaging:</source> <source>Averaging:</source>
<translation>(Averaging)</translation> <translation>(Averaging)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1577"/> <location filename="../ui/mainwindow.ui" line="1576"/>
<source>Reset</source> <source>Reset</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1602"/> <location filename="../ui/mainwindow.ui" line="1601"/>
<source>LF Operation</source> <source>LF Operation</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1627"/> <location filename="../ui/mainwindow.ui" line="1626"/>
<source>Search</source> <source>Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1658"/> <location filename="../ui/mainwindow.ui" line="1657"/>
<source>Read and search for valid known tag.</source> <source>Read and search for valid known tag.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1684"/> <location filename="../ui/mainwindow.ui" line="1683"/>
<source>Read</source> <source>Read</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1715"/> <location filename="../ui/mainwindow.ui" line="1714"/>
<source>Sniff low frequency signal with LF field ON. <source>Sniff low frequency signal with LF field ON.
Use this to get raw data from a tag.</source> Use this to get raw data from a tag.</source>
<translation> <translation>
</translation> </translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1742"/> <location filename="../ui/mainwindow.ui" line="1741"/>
<source>Tune</source> <source>Tune</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1773"/> <location filename="../ui/mainwindow.ui" line="1772"/>
<source>Measure LF antenna tuning. <source>Measure LF antenna tuning.
If the antenna voltage has a obvious drop after putting card on the antenna, it is likely that the tag is a LF tag. If the antenna voltage has a obvious drop after putting card on the antenna, it is likely that the tag is a LF tag.
On Iceman/RRG repo, press the button on PM3 to stop measuring</source> On Iceman/RRG repo, press the button on PM3 to stop measuring</source>
@@ -670,7 +681,7 @@ On Iceman/RRG repo, press the button on PM3 to stop measuring</source>
PM3侧面的按钮</translation> PM3侧面的按钮</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1832"/> <location filename="../ui/mainwindow.ui" line="1831"/>
<source>Sniff low frequency signal with LF field OFF. <source>Sniff low frequency signal with LF field OFF.
Use this to get raw data from a reader Use this to get raw data from a reader
or the communication between a tag and a reader.</source> or the communication between a tag and a reader.</source>
@@ -679,310 +690,264 @@ or the communication between a tag and a reader.</source>
</translation> </translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1884"/> <location filename="../ui/mainwindow.ui" line="1883"/>
<source>T55xx</source> <source>T55xx</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1896"/> <location filename="../ui/mainwindow.ui" line="1895"/>
<source>Basic Configuration(Page 0 Block 0)</source> <source>Basic Configuration(Page 0 Block 0)</source>
<translation>(0 0)</translation> <translation>(0 0)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1910"/> <location filename="../ui/mainwindow.ui" line="1909"/>
<location filename="../ui/mainwindow.ui" line="2186"/> <location filename="../ui/mainwindow.ui" line="2185"/>
<source>Hex:</source> <source>Hex:</source>
<translation>16</translation> <translation>16</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1917"/> <location filename="../ui/mainwindow.ui" line="1916"/>
<location filename="../ui/mainwindow.ui" line="2193"/> <location filename="../ui/mainwindow.ui" line="2192"/>
<source>Bin:</source> <source>Bin:</source>
<translation>2</translation> <translation>2</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1961"/> <location filename="../ui/mainwindow.ui" line="1960"/>
<location filename="../ui/mainwindow.ui" line="2237"/> <location filename="../ui/mainwindow.ui" line="2236"/>
<source>Get from Data</source> <source>Get from Data</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1968"/> <location filename="../ui/mainwindow.ui" line="1967"/>
<location filename="../ui/mainwindow.ui" line="2244"/> <location filename="../ui/mainwindow.ui" line="2243"/>
<source>Set to Data</source> <source>Set to Data</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1998"/> <location filename="../ui/mainwindow.ui" line="1997"/>
<location filename="../ui/mainwindow.ui" line="2277"/> <location filename="../ui/mainwindow.ui" line="2276"/>
<source>Locked:</source> <source>Locked:</source>
<translation>(Locked)</translation> <translation>(Locked)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2008"/> <location filename="../ui/mainwindow.ui" line="2007"/>
<source>Master Key:</source> <source>Master Key:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2015"/> <location filename="../ui/mainwindow.ui" line="2014"/>
<source>Data Bit Rate:</source> <source>Data Bit Rate:</source>
<translation>(Data Bit Rate)</translation> <translation>(Data Bit Rate)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2025"/> <location filename="../ui/mainwindow.ui" line="2024"/>
<source>eXtended Mode:</source> <source>eXtended Mode:</source>
<translation>(eXtended Mode)</translation> <translation>(eXtended Mode)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2032"/> <location filename="../ui/mainwindow.ui" line="2031"/>
<location filename="../ui/mainwindow.ui" line="2431"/> <location filename="../ui/mainwindow.ui" line="2430"/>
<source>Modulation:</source> <source>Modulation:</source>
<translation>(Modulation)</translation> <translation>(Modulation)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2039"/> <location filename="../ui/mainwindow.ui" line="2038"/>
<source>PSK Clock Freq:</source> <source>PSK Clock Freq:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2046"/> <location filename="../ui/mainwindow.ui" line="2045"/>
<source>Answer on Request:</source> <source>Answer on Request:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2059"/> <location filename="../ui/mainwindow.ui" line="2058"/>
<source>One Time Pad:</source> <source>One Time Pad:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2066"/> <location filename="../ui/mainwindow.ui" line="2065"/>
<source>Max Block:</source> <source>Max Block:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2073"/> <location filename="../ui/mainwindow.ui" line="2072"/>
<source>Password:</source> <source>Password:</source>
<translation>(Password):</translation> <translation>(Password):</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2080"/> <location filename="../ui/mainwindow.ui" line="2079"/>
<source>Seq. Terminator:</source> <source>Seq. Terminator:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2087"/> <location filename="../ui/mainwindow.ui" line="2086"/>
<source>Seq. Start Marker:</source> <source>Seq. Start Marker:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2094"/> <location filename="../ui/mainwindow.ui" line="2093"/>
<source>Fast Downlink:</source> <source>Fast Downlink:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2101"/> <location filename="../ui/mainwindow.ui" line="2100"/>
<source>Inverse Data:</source> <source>Inverse Data:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2108"/> <location filename="../ui/mainwindow.ui" line="2107"/>
<source>Init-Delay:</source> <source>Init-Delay:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2172"/> <location filename="../ui/mainwindow.ui" line="2171"/>
<source>Analog Front-End Option(Page 1 Block 3)</source> <source>Analog Front-End Option(Page 1 Block 3)</source>
<translation>(1 3)</translation> <translation>(1 3)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2287"/> <location filename="../ui/mainwindow.ui" line="2286"/>
<source>Option Key:</source> <source>Option Key:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2297"/> <location filename="../ui/mainwindow.ui" line="2296"/>
<source>Soft Modulation:</source> <source>Soft Modulation:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2307"/> <location filename="../ui/mainwindow.ui" line="2306"/>
<source>Clamp Voltage:</source> <source>Clamp Voltage:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2317"/> <location filename="../ui/mainwindow.ui" line="2316"/>
<source>Modulation Voltage:</source> <source>Modulation Voltage:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2327"/> <location filename="../ui/mainwindow.ui" line="2326"/>
<source>Clock Detection Threshold:</source> <source>Clock Detection Threshold:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2337"/> <location filename="../ui/mainwindow.ui" line="2336"/>
<source>Gap Detection Threshold:</source> <source>Gap Detection Threshold:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2347"/> <location filename="../ui/mainwindow.ui" line="2346"/>
<source>Write Dampling:</source> <source>Write Dampling:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2354"/> <location filename="../ui/mainwindow.ui" line="2353"/>
<source>Demod Delay:</source> <source>Demod Delay:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2361"/> <location filename="../ui/mainwindow.ui" line="2360"/>
<source>Downlink Protocol:</source> <source>Downlink Protocol:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2423"/> <location filename="../ui/mainwindow.ui" line="2422"/>
<source>T55xx Read Config</source> <source>T55xx Read Config</source>
<translation>T55xx读卡配置区</translation> <translation>T55xx读卡配置区</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2438"/> <location filename="../ui/mainwindow.ui" line="2437"/>
<source>Bit Rate:</source> <source>Bit Rate:</source>
<translation>(Bit Rate)</translation> <translation>(Bit Rate)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2445"/> <location filename="../ui/mainwindow.ui" line="2444"/>
<source>Seq. Term.</source> <source>Seq. Term.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2452"/> <location filename="../ui/mainwindow.ui" line="2451"/>
<source>Offset:</source> <source>Offset:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2459"/> <location filename="../ui/mainwindow.ui" line="2458"/>
<source>Inverted:</source> <source>Inverted:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2493"/> <location filename="../ui/mainwindow.ui" line="2492"/>
<source>T5577</source> <source>T5577</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2500"/> <location filename="../ui/mainwindow.ui" line="2499"/>
<source>T5555</source> <source>T5555</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2524"/> <location filename="../ui/mainwindow.ui" line="2523"/>
<source>RawCommand</source> <source>RawCommand</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2571"/> <location filename="../ui/mainwindow.ui" line="2570"/>
<location filename="../ui/mainwindow.cpp" line="244"/> <location filename="../ui/mainwindow.cpp" line="263"/>
<source>History:</source> <source>History:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2603"/> <location filename="../ui/mainwindow.ui" line="2602"/>
<source>ClearHistory</source> <source>ClearHistory</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2622"/> <location filename="../ui/mainwindow.ui" line="2621"/>
<source>Send</source> <source>Send</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2629"/> <location filename="../ui/mainwindow.ui" line="2628"/>
<source>ClearOutput</source> <source>ClearOutput</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2639"/> <location filename="../ui/mainwindow.ui" line="2638"/>
<source>Settings</source> <source>Settings</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2647"/> <location filename="../ui/mainwindow.ui" line="2646"/>
<source>Client</source> <source>Client</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2653"/> <location filename="../ui/mainwindow.ui" line="2690"/>
<source>Preload script path:</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2667"/>
<source>Note:
If the client requires some enviroment variables, you can make a script file(*.bat on Windows or *.sh on Linux) to configure them,
then put the path of the script there</source>
<translation>
(Windows系统内为*.batlinux系统内为*.sh)</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2686"/>
<source>Client working directory:</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2695"/>
<source>../data</source> <source>../data</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2711"/> <location filename="../ui/mainwindow.ui" line="2721"/>
<source>Note:
On Windows, the client working directory should not be identical to the path of GUI, otherwise the client will use the wrong .dll file.</source>
<translation>
Windows系统中GUI程序所在路径不能相同使.dll文件</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2729"/>
<source>Start arguments</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2736"/>
<source>&lt;port&gt; -f</source> <source>&lt;port&gt; -f</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2743"/> <location filename="../ui/mainwindow.ui" line="2872"/>
<source>Note:
-f is necessary because the GUI need to handle the output in time
In some cases the arguments should be set to &quot;-p /dev/&lt;port&gt; -f&quot;
or &quot;-p &lt;port&gt; -f&quot;</source>
<translation>
-f选项用于使客户端实时返回命令回显
&quot;-p /dev/&lt;port&gt; -f&quot;
&quot;-p &lt;port&gt; -f&quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2836"/>
<source>Keep te client active even the PM3 hardware is disconnected.(Experimental)</source>
<translation>PM3断开后保持客户端运行</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2859"/>
<source>Language: </source> <source>Language: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2866"/> <location filename="../ui/mainwindow.ui" line="2879"/>
<source>Choose Language</source> <source>Choose Language</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2873"/> <location filename="../ui/mainwindow.ui" line="2886"/>
<source>(Restart this app to use new language)</source> <source>(Restart this app to use new language)</source>
<translation>使</translation> <translation>使</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2790"/> <location filename="../ui/mainwindow.ui" line="2803"/>
<source>Keep buttons enabled even the client is running or disconnected</source> <source>Keep buttons enabled even the client is running or disconnected</source>
<translation>使</translation> <translation>使</translation>
</message> </message>
@@ -1007,283 +972,325 @@ or &quot;-p &lt;port&gt; -f&quot;</source>
<translation> 125.000kHz</translation> <translation> 125.000kHz</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1396"/> <location filename="../ui/mainwindow.ui" line="1465"/>
<source>Note:
You might need a modified LF antenna if the freq is not 125k/134k.
When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</source>
<translation>
125k/134k线
GUI会使用&quot;hw setlfdivisor&quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="1428"/>
<source>Bit per sample:</source>
<translation>(Bit per sample)</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="1466"/>
<source>Trigger threshold:</source> <source>Trigger threshold:</source>
<translation>(Trigger threshold)</translation> <translation>(Trigger threshold)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1480"/> <location filename="../ui/mainwindow.ui" line="1479"/>
<source>Samples to skip:</source> <source>Samples to skip:</source>
<translation>n个采样(Samples to skip)</translation> <translation>n个采样(Samples to skip)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1551"/> <location filename="../ui/mainwindow.ui" line="1550"/>
<source>Get Config</source> <source>Get Config</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="1570"/> <location filename="../ui/mainwindow.ui" line="1569"/>
<source>Set Config</source> <source>Set Config</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.ui" line="2851"/> <location filename="../ui/mainwindow.ui" line="2652"/>
<source>Preload script path(Reconnect to apply):</source>
<translation>()</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2666"/>
<source>If the client requires some enviroment variables, you can make a script file(*.bat on Windows or *.sh on Linux) to configure them, then put the path of the script there.</source>
<translation>(Windows系统内为*.batlinux系统内为*.sh)</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2683"/>
<source>Client working directory(Reconnect to apply):</source>
<translation>()</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2697"/>
<source>On Windows, the client working directory should not be identical to the path of GUI, otherwise the client will use the wrong .dll file.</source>
<translation>Windows系统中GUI程序所在路径不能相同使.dll文件</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2714"/>
<source>Start arguments(Reconnect to apply):</source>
<translation>()</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2728"/>
<source>-f is necessary because the GUI need to handle the output in time. In some cases, the arguments should be set to &quot;-p /dev/&lt;port&gt; -f&quot; or &quot;-p &lt;port&gt; -f&quot;.</source>
<translation>-f选项用于使客户端实时返回命令回显&quot;-p /dev/&lt;port&gt; -f&quot;&quot;-p &lt;port&gt; -f&quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2745"/>
<source>Config file path(Reconnect to apply):</source>
<translation>()</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2752"/>
<source>config.json</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2759"/>
<source>Different clients require different config files. You can change the content of config file if the command format changes.</source>
<translation>使</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2849"/>
<source>Keep the client active even the PM3 hardware is disconnected.(Experimental)</source>
<translation>PM3断开后保持客户端运行</translation>
</message>
<message>
<location filename="../ui/mainwindow.ui" line="2864"/>
<source>GUI</source> <source>GUI</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="111"/> <location filename="../ui/mainwindow.cpp" line="80"/>
<location filename="../ui/mainwindow.cpp" line="347"/> <location filename="../ui/mainwindow.cpp" line="129"/>
<location filename="../ui/mainwindow.cpp" line="573"/> <location filename="../ui/mainwindow.cpp" line="366"/>
<location filename="../ui/mainwindow.cpp" line="593"/> <location filename="../ui/mainwindow.cpp" line="592"/>
<location filename="../ui/mainwindow.cpp" line="606"/> <location filename="../ui/mainwindow.cpp" line="612"/>
<location filename="../ui/mainwindow.cpp" line="625"/> <location filename="../ui/mainwindow.cpp" line="625"/>
<location filename="../ui/mainwindow.cpp" line="638"/> <location filename="../ui/mainwindow.cpp" line="644"/>
<location filename="../ui/mainwindow.cpp" line="665"/> <location filename="../ui/mainwindow.cpp" line="657"/>
<location filename="../ui/mainwindow.cpp" line="678"/> <location filename="../ui/mainwindow.cpp" line="684"/>
<location filename="../ui/mainwindow.cpp" line="869"/> <location filename="../ui/mainwindow.cpp" line="697"/>
<location filename="../ui/mainwindow.cpp" line="888"/> <location filename="../ui/mainwindow.cpp" line="889"/>
<location filename="../ui/mainwindow.cpp" line="914"/>
<source>Info</source> <source>Info</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="111"/> <location filename="../ui/mainwindow.cpp" line="129"/>
<source>Plz choose a port first</source> <source>Plz choose a port first</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="178"/> <location filename="../ui/mainwindow.cpp" line="197"/>
<source>Connected</source> <source>Connected</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="184"/> <location filename="../ui/mainwindow.cpp" line="203"/>
<location filename="../ui/mainwindow.cpp" line="973"/> <location filename="../ui/mainwindow.cpp" line="999"/>
<source>Not Connected</source> <source>Not Connected</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="619"/> <location filename="../ui/mainwindow.cpp" line="638"/>
<source>Binary Data Files(*.bin *.dump);;Text Data Files(*.txt *.eml);;All Files(*.*)</source> <source>Binary Data Files(*.bin *.dump);;Text Data Files(*.txt *.eml);;All Files(*.*)</source>
<translation>(*.bin *.dump);;(*.txt *.eml);;(*.*)</translation> <translation>(*.bin *.dump);;(*.txt *.eml);;(*.*)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="625"/> <location filename="../ui/mainwindow.cpp" line="644"/>
<location filename="../ui/mainwindow.cpp" line="638"/> <location filename="../ui/mainwindow.cpp" line="657"/>
<location filename="../ui/mainwindow.cpp" line="869"/> <location filename="../ui/mainwindow.cpp" line="889"/>
<source>Failed to open</source> <source>Failed to open</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="347"/> <location filename="../ui/mainwindow.cpp" line="366"/>
<source>Continue?</source> <source>Continue?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="9"/> <location filename="../ui/mainwindow.cpp" line="11"/>
<source>Dock all windows</source> <source>Dock all windows</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="11"/> <location filename="../ui/mainwindow.cpp" line="13"/>
<source>Ver: </source> <source>Ver: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="12"/> <location filename="../ui/mainwindow.cpp" line="14"/>
<source>Check Update</source> <source>Check Update</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="347"/> <location filename="../ui/mainwindow.cpp" line="80"/>
<source>Failed to load config file</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="366"/>
<source>Some of the data and key will be cleared.</source> <source>Some of the data and key will be cleared.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="460"/> <location filename="../ui/mainwindow.cpp" line="479"/>
<source>Plz select the font of data widget and key widget</source> <source>Plz select the font of data widget and key widget</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="573"/> <location filename="../ui/mainwindow.cpp" line="592"/>
<source>Data must consists of 32 Hex symbols(Whitespace is allowed)</source> <source>Data must consists of 32 Hex symbols(Whitespace is allowed)</source>
<translation>32</translation> <translation>32</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="593"/> <location filename="../ui/mainwindow.cpp" line="612"/>
<location filename="../ui/mainwindow.cpp" line="606"/> <location filename="../ui/mainwindow.cpp" line="625"/>
<source>Key must consists of 12 Hex symbols(Whitespace is allowed)</source> <source>Key must consists of 12 Hex symbols(Whitespace is allowed)</source>
<translation>12</translation> <translation>12</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="618"/> <location filename="../ui/mainwindow.cpp" line="637"/>
<source>Plz select the data file:</source> <source>Plz select the data file:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="631"/> <location filename="../ui/mainwindow.cpp" line="650"/>
<source>Plz select the key file:</source> <source>Plz select the key file:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="632"/> <location filename="../ui/mainwindow.cpp" line="651"/>
<source>Binary Key Files(*.bin *.dump);;Binary Data Files(*.bin *.dump);;All Files(*.*)</source> <source>Binary Key Files(*.bin *.dump);;Binary Data Files(*.bin *.dump);;All Files(*.*)</source>
<translation>(*.bin *.dump)(*.bin *.dump);(*.*)</translation> <translation>(*.bin *.dump);;(*.bin *.dump);;(*.*)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="658"/> <location filename="../ui/mainwindow.cpp" line="677"/>
<source>Plz select the location to save data file:</source> <source>Plz select the location to save data file:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="659"/> <location filename="../ui/mainwindow.cpp" line="678"/>
<source>Binary Data Files(*.bin *.dump);;Text Data Files(*.txt *.eml)</source> <source>Binary Data Files(*.bin *.dump);;Text Data Files(*.txt *.eml)</source>
<translation>(*.bin *.dump);(*.txt *.eml)</translation> <translation>(*.bin *.dump);;(*.txt *.eml)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="665"/> <location filename="../ui/mainwindow.cpp" line="684"/>
<location filename="../ui/mainwindow.cpp" line="678"/> <location filename="../ui/mainwindow.cpp" line="697"/>
<location filename="../ui/mainwindow.cpp" line="888"/> <location filename="../ui/mainwindow.cpp" line="914"/>
<source>Failed to save to</source> <source>Failed to save to</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="671"/> <location filename="../ui/mainwindow.cpp" line="690"/>
<source>Plz select the location to save key file:</source> <source>Plz select the location to save key file:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="672"/> <location filename="../ui/mainwindow.cpp" line="691"/>
<source>Binary Key Files(*.bin *.dump)</source> <source>Binary Key Files(*.bin *.dump)</source>
<translation>(*.bin *.dump)</translation> <translation>(*.bin *.dump)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="797"/> <location filename="../ui/mainwindow.cpp" line="816"/>
<source> Normally, the Block 0 of a typical Mifare card, which contains the UID, is locked during the manufacture. Users cannot write anything to Block 0 or set a new UID to a normal Mifare card.</source> <source> Normally, the Block 0 of a typical Mifare card, which contains the UID, is locked during the manufacture. Users cannot write anything to Block 0 or set a new UID to a normal Mifare card.</source>
<translation> Mifare卡的块0无法写入</translation> <translation> Mifare卡的块0无法写入</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="798"/> <location filename="../ui/mainwindow.cpp" line="817"/>
<source> Chinese Magic Cards(aka UID Cards) are some special cards whose Block 0 are writeable. And you can change UID by writing to it.</source> <source> Chinese Magic Cards(aka UID Cards) are some special cards whose Block 0 are writeable. And you can change UID by writing to it.</source>
<translation> UID卡Chinese Magic Card0</translation> <translation> UID卡Chinese Magic Card0</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="800"/> <location filename="../ui/mainwindow.cpp" line="819"/>
<source>There are two versions of Chinese Magic Cards, the Gen1 and the Gen2.</source> <source>There are two versions of Chinese Magic Cards, the Gen1 and the Gen2.</source>
<translation>UID卡分为Chinese Magic Card Gen1和Gen2</translation> <translation>UID卡分为Chinese Magic Card Gen1和Gen2</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="801"/> <location filename="../ui/mainwindow.cpp" line="820"/>
<source> Gen1:</source> <source> Gen1:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="801"/> <location filename="../ui/mainwindow.cpp" line="820"/>
<source> also called UID card in China. It responses to some backdoor commands so you can access any blocks without password. The Proxmark3 has a bunch of related commands(csetblk, cgetblk, ...) to deal with this type of card, and my GUI also support these commands.</source> <source> also called UID card in China. It responses to some backdoor commands so you can access any blocks without password. The Proxmark3 has a bunch of related commands(csetblk, cgetblk, ...) to deal with this type of card, and my GUI also support these commands.</source>
<translation> UID卡PM3和此GUI中有特殊命令处理这类卡片</translation> <translation> UID卡PM3和此GUI中有特殊命令处理这类卡片</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="802"/> <location filename="../ui/mainwindow.cpp" line="821"/>
<source> Gen2:</source> <source> Gen2:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="802"/> <location filename="../ui/mainwindow.cpp" line="821"/>
<source> doesn&apos;t response to the backdoor commands, which means that a reader cannot detect whether it is a Chinese Magic Card or not by sending backdoor commands.</source> <source> doesn&apos;t response to the backdoor commands, which means that a reader cannot detect whether it is a Chinese Magic Card or not by sending backdoor commands.</source>
<translation> CUID/FUID/UFUID这类对后门指令不响应的卡</translation> <translation> CUID/FUID/UFUID这类对后门指令不响应的卡</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="804"/> <location filename="../ui/mainwindow.cpp" line="823"/>
<source>There are some types of Chinese Magic Card Gen2.</source> <source>There are some types of Chinese Magic Card Gen2.</source>
<translation>Gen2卡的详细介绍</translation> <translation>Gen2卡的详细介绍</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="805"/> <location filename="../ui/mainwindow.cpp" line="824"/>
<source> CUID Card:</source> <source> CUID Card:</source>
<translation> CUID卡</translation> <translation> CUID卡</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="805"/> <location filename="../ui/mainwindow.cpp" line="824"/>
<source> the Block 0 is writeable, you can write to this block repeatedly by normal wrbl command.</source> <source> the Block 0 is writeable, you can write to this block repeatedly by normal wrbl command.</source>
<translation> 0</translation> <translation> 0</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="806"/> <location filename="../ui/mainwindow.cpp" line="825"/>
<source> (hf mf wrbl 0 A FFFFFFFFFFFF &lt;the data you want to write&gt;)</source> <source> (hf mf wrbl 0 A FFFFFFFFFFFF &lt;the data you want to write&gt;)</source>
<translation> (hf mf wrbl 0 A FFFFFFFFFFFF &lt;&gt;)</translation> <translation> (hf mf wrbl 0 A FFFFFFFFFFFF &lt;&gt;)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="807"/> <location filename="../ui/mainwindow.cpp" line="826"/>
<source> FUID Card:</source> <source> FUID Card:</source>
<translation> FUID卡</translation> <translation> FUID卡</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="807"/> <location filename="../ui/mainwindow.cpp" line="826"/>
<source> you can only write to Block 0 once. After that, it seems like a typical Mifare card(Block 0 cannot be written to).</source> <source> you can only write to Block 0 once. After that, it seems like a typical Mifare card(Block 0 cannot be written to).</source>
<translation> 0</translation> <translation> 0</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="808"/> <location filename="../ui/mainwindow.cpp" line="827"/>
<source> (some readers might try changing the Block 0, which could detect the CUID Card. In that case, you should use FUID card.)</source> <source> (some readers might try changing the Block 0, which could detect the CUID Card. In that case, you should use FUID card.)</source>
<translation> (穿CUID卡的读卡器)</translation> <translation> (穿CUID卡的读卡器)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="809"/> <location filename="../ui/mainwindow.cpp" line="828"/>
<source> UFUID Card:</source> <source> UFUID Card:</source>
<translation> UFUID卡</translation> <translation> UFUID卡</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="809"/> <location filename="../ui/mainwindow.cpp" line="828"/>
<source> It behaves like a CUID card(or UID card? I&apos;m not sure) before you send some special command to lock it. Once it is locked, you cannot change its Block 0(just like a typical Mifare card).</source> <source> It behaves like a CUID card(or UID card? I&apos;m not sure) before you send some special command to lock it. Once it is locked, you cannot change its Block 0(just like a typical Mifare card).</source>
<translation> UID/CUID卡一样可以反复读写块0FUID卡一样了</translation> <translation> UID/CUID卡一样可以反复读写块0FUID卡一样了</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="811"/> <location filename="../ui/mainwindow.cpp" line="830"/>
<source> Seemingly, these Chinese Magic Cards are more easily to be compromised by Nested Attack(it takes little time to get an unknown key).</source> <source> Seemingly, these Chinese Magic Cards are more easily to be compromised by Nested Attack(it takes little time to get an unknown key).</source>
<translation> UID卡都似乎更容易被Nested攻击破解</translation> <translation> UID卡都似乎更容易被Nested攻击破解</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="856"/> <location filename="../ui/mainwindow.cpp" line="875"/>
<source>Plz select the trace file:</source> <source>Plz select the trace file:</source>
<translation>trace文件</translation> <translation>trace文件</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="857"/> <location filename="../ui/mainwindow.cpp" line="876"/>
<source>Trace Files(*.trc);;All Files(*.*)</source> <source>Trace Files(*.trc);;All Files(*.*)</source>
<translation>Trace文件(*.trc);;(*.*)</translation> <translation>Trace文件(*.trc);;(*.*)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="879"/> <location filename="../ui/mainwindow.cpp" line="899"/>
<source>Plz select the location to save trace file:</source> <source>Plz select the location to save trace file:</source>
<translation>trace文件保存的位置</translation> <translation>trace文件保存的位置</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="880"/> <location filename="../ui/mainwindow.cpp" line="900"/>
<source>Trace Files(*.trc)</source> <source>Trace Files(*.trc)</source>
<translation>Trace文件(*.trc)</translation> <translation>Trace文件(*.trc)</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="974"/> <location filename="../ui/mainwindow.cpp" line="1000"/>
<location filename="../ui/mainwindow.cpp" line="1145"/> <location filename="../ui/mainwindow.cpp" line="1172"/>
<source>Idle</source> <source>Idle</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="976"/> <location filename="../ui/mainwindow.cpp" line="1002"/>
<source>Stop</source> <source>Stop</source>
<translation></translation> <translation></translation>
</message> </message>
@@ -1309,27 +1316,27 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</sou
<translation>B</translation> <translation>B</translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="1082"/> <location filename="../ui/mainwindow.cpp" line="1109"/>
<source>HW Version:</source> <source>HW Version:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="1084"/> <location filename="../ui/mainwindow.cpp" line="1111"/>
<source>PM3:</source> <source>PM3:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="1086"/> <location filename="../ui/mainwindow.cpp" line="1113"/>
<source>State:</source> <source>State:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="1141"/> <location filename="../ui/mainwindow.cpp" line="1168"/>
<source>Running</source> <source>Running</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../ui/mainwindow.cpp" line="1260"/> <location filename="../ui/mainwindow.cpp" line="1295"/>
<source>Actural Freq: </source> <source>Actural Freq: </source>
<translation> </translation> <translation> </translation>
</message> </message>
@@ -1337,34 +1344,34 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</sou
<context> <context>
<name>Mifare</name> <name>Mifare</name>
<message> <message>
<location filename="../module/mifare.cpp" line="659"/> <location filename="../module/mifare.cpp" line="643"/>
<source>Success!</source> <source>Success!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="226"/> <location filename="../module/mifare.cpp" line="209"/>
<location filename="../module/mifare.cpp" line="659"/> <location filename="../module/mifare.cpp" line="643"/>
<location filename="../module/mifare.cpp" line="663"/> <location filename="../module/mifare.cpp" line="647"/>
<location filename="../module/mifare.cpp" line="687"/> <location filename="../module/mifare.cpp" line="671"/>
<location filename="../module/mifare.cpp" line="726"/> <location filename="../module/mifare.cpp" line="710"/>
<location filename="../module/mifare.cpp" line="739"/> <location filename="../module/mifare.cpp" line="723"/>
<location filename="../module/mifare.cpp" line="794"/> <location filename="../module/mifare.cpp" line="774"/>
<source>Info</source> <source>Info</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="226"/> <location filename="../module/mifare.cpp" line="209"/>
<source>Plz provide at least one known key</source> <source>Plz provide at least one known key</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="496"/> <location filename="../module/mifare.cpp" line="468"/>
<location filename="../module/mifare.cpp" line="663"/> <location filename="../module/mifare.cpp" line="647"/>
<source>Failed!</source> <source>Failed!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="688"/> <location filename="../module/mifare.cpp" line="672"/>
<source>The Access Bits is invalid! <source>The Access Bits is invalid!
It could make the whole sector blocked irreversibly! It could make the whole sector blocked irreversibly!
Continue to write?</source> Continue to write?</source>
@@ -1373,22 +1380,22 @@ Continue to write?</source>
</translation> </translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="726"/> <location filename="../module/mifare.cpp" line="710"/>
<source>Successful!</source> <source>Successful!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="739"/> <location filename="../module/mifare.cpp" line="723"/>
<source>Failed to write to these blocks:</source> <source>Failed to write to these blocks:</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="743"/> <location filename="../module/mifare.cpp" line="727"/>
<source>Select them?</source> <source>Select them?</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../module/mifare.cpp" line="794"/> <location filename="../module/mifare.cpp" line="774"/>
<source>Failed to read card.</source> <source>Failed to read card.</source>
<translation></translation> <translation></translation>
</message> </message>
+5 -6
View File
@@ -5,11 +5,13 @@
#include <QTranslator> #include <QTranslator>
#include <QMessageBox> #include <QMessageBox>
#include <QTextCodec> #include <QTextCodec>
#include <QDir>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8")); QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QDir *langPath = new QDir();
QApplication a(argc, argv); QApplication a(argc, argv);
MainWindow w; MainWindow w;
@@ -29,14 +31,10 @@ int main(int argc, char *argv[])
else else
currLang = "en_US"; currLang = "en_US";
} }
currLang = "lang/" + currLang;
#ifdef Q_OS_WIN
currLang += ".qm"; currLang += ".qm";
#else langPath->cd("lang");
currLang += ".ts";;
#endif
QTranslator* translator = new QTranslator(&w); QTranslator* translator = new QTranslator(&w);
if(translator->load(currLang)) if(translator->load(currLang, langPath->absolutePath()))
{ {
a.installTranslator(translator); a.installTranslator(translator);
} }
@@ -45,6 +43,7 @@ int main(int argc, char *argv[])
QMessageBox::information(&w, "Error", "Can't load " + currLang + " as translation file."); QMessageBox::information(&w, "Error", "Can't load " + currLang + " as translation file.");
} }
delete settings; delete settings;
delete langPath;
w.initUI(); w.initUI();
w.show(); w.show();
return a.exec(); return a.exec();
+95 -108
View File
@@ -1,6 +1,7 @@
#include "lf.h" #include "lf.h"
#include <QJsonArray>
const LF::Config LF::defaultConfig; const LF::LFConfig LF::defaultLFConfig;
LF::LF(Ui::MainWindow *ui, Util *addr, QWidget *parent): QObject(parent) LF::LF(Ui::MainWindow *ui, Util *addr, QWidget *parent): QObject(parent)
{ {
@@ -8,142 +9,122 @@ LF::LF(Ui::MainWindow *ui, Util *addr, QWidget *parent): QObject(parent)
util = addr; util = addr;
this->ui = ui; this->ui = ui;
configPattern = new QRegularExpression("(\\d+)|Yes|No"); LFconfigPattern = new QRegularExpression("(\\d+)|Yes|No");
currConfig = defaultConfig; currLFConfig = defaultLFConfig;
} }
void LF::read() void LF::read()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["read"].toMap();
util->execCMD("lf read"); util->execCMD(config["cmd"].toString());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
util->execCMD("lf read -v");
Util::gotoRawTab(); Util::gotoRawTab();
util->execCMD("data plot"); util->execCMD(config["show cmd"].toString());
} }
void LF::sniff() void LF::sniff()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["sniff"].toMap();
util->execCMD("lf snoop"); util->execCMD(config["cmd"].toString());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
util->execCMD("lf sniff -v");
Util::gotoRawTab(); Util::gotoRawTab();
util->execCMD("data plot"); util->execCMD(config["show cmd"].toString());
} }
void LF::search() void LF::search()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["search"].toMap();
util->execCMD("lf search u"); util->execCMD(config["cmd"].toString());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
util->execCMD("lf search -u");
Util::gotoRawTab(); Util::gotoRawTab();
} }
void LF::tune() void LF::tune()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["tune"].toMap();
util->execCMD("hw tune l"); QString cmd = config["cmd"].toString();
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN) cmd.replace("<divisor>", QString::number(currLFConfig.divisor));
util->execCMD("lf tune --divisor " + QString::number(currConfig.divisor)); util->execCMD(cmd);
Util::gotoRawTab(); Util::gotoRawTab();
} }
void LF::getConfig() bool LF::getLFConfig_helper(const QVariantMap& map, QString& str, int* result)
{ {
int len;
QString flag = map["flag"].toString();
QRegularExpressionMatch reMatch;
if(!str.contains(flag))
return false;
len = str.length() - (str.indexOf(flag) + flag.length());
str = str.right(len);
if(map.contains("replace"))
{
QVariantMap table = map["replace"].toMap();
for(auto it = table.begin(); it != table.end(); it++)
{
str.replace(it.key(), it.value().toString());
}
}
reMatch = QRegularExpression(map["pattern"].toString()).match(str);
if(!reMatch.hasMatch())
return false;
*result = reMatch.captured().toInt();
qDebug() << *result;
return true;
}
void LF::getLFConfig()
{
QRegularExpressionMatch reMatch; QRegularExpressionMatch reMatch;
QString result; QString result;
QStringList resultList; QStringList resultList;
QStringList symbolList = int start, end, temp;
QVariantMap config = configMap["get config"].toMap();
QString cmd = config["cmd"].toString();
result = util->execCMDWithOutput(cmd, 400);
start = result.indexOf(config["field start"].toString());
end = result.indexOf(config["field end"].toString());
result = result.mid(start, end - start);
resultList = result.split("\n", Qt::SkipEmptyParts);
qDebug() << "LF CONFIG GET\n" << resultList;
for(auto it = resultList.begin(); it != resultList.end(); it++)
{ {
"divisor", if(getLFConfig_helper(config["divisor"].toMap(), *it, &temp))
"bps", currLFConfig.divisor = temp;
"bits per sample", else if(getLFConfig_helper(config["bits per sample"].toMap(), *it, &temp))
"decimation", currLFConfig.bitsPerSample = temp;
"averaging", else if(getLFConfig_helper(config["decimation"].toMap(), *it, &temp))
"trigger threshold", currLFConfig.decimation = temp;
"samples to skip" else if(getLFConfig_helper(config["averaging"].toMap(), *it, &temp))
}; currLFConfig.averaging = (bool)temp;
int offset; else if(getLFConfig_helper(config["trigger threshold"].toMap(), *it, &temp))
QStringList configList = {"", "", "", "", "", "", ""}; currLFConfig.triggerThreshold = temp;
result = util->execCMDWithOutput("hw status", 400); // not all output from "hw status will be processed". else if(getLFConfig_helper(config["samples to skip"].toMap(), *it, &temp))
result = result.right(result.length() - result.indexOf("LF Sampling config")); currLFConfig.samplesToSkip = temp;
offset = result.indexOf("samples to skip");
offset = result.indexOf("\r\n", offset);
result = result.mid(0, offset + 2);
qDebug() << "LF CONFIG GET\n" << result;
resultList = result.split("\r\n");
for(int i = 0; i < resultList.length(); i++)
{
for(int j = 0; j < symbolList.length(); j++)
{
if(!configList[j].isEmpty())
continue;
offset = resultList[i].indexOf(symbolList[j]);
if(offset != -1)
{
reMatch = configPattern->match(resultList[i]);
qDebug() << "finded: " << resultList[i];
if(!reMatch.hasMatch())
continue;
qDebug() << "captured: " << reMatch.captured();
configList[j] = reMatch.captured();
break;
}
}
}
qDebug() << "configList: " << configList;
currConfig.divisor = configList[0].toUInt();
currConfig.decimation = configList[3].toUInt();
currConfig.triggerThreshold = configList[5].toUInt();
currConfig.samplesToSkip = configList[6].toUInt();
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL)
{
currConfig.bitPerSample = configList[1].toUInt();
currConfig.averaging = (configList[4] == "1");
}
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
{
currConfig.bitPerSample = configList[2].toUInt();
currConfig.averaging = (configList[4] == "Yes");
} }
syncWithUI(); syncWithUI();
} }
void LF::setConfig(LF::Config config) void LF::setLFConfig(LF::LFConfig lfconfig)
{ {
currConfig = config; currLFConfig = lfconfig;
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["set config"].toMap();
{ QString cmd = config["cmd"].toString();
util->execCMDWithOutput(QString("lf config") cmd.replace("<divisor>", QString::number(currLFConfig.divisor));
+ " q " + QString::number(currConfig.divisor) cmd.replace("<bits per sample>", QString::number(currLFConfig.bitsPerSample));
+ " b " + QString::number(currConfig.bitPerSample) cmd.replace("<decimation>", QString::number(currLFConfig.decimation));
+ " d " + QString::number(currConfig.decimation) cmd.replace("<averaging>", currLFConfig.averaging ? "1" : "0");
+ " a " + QString(currConfig.averaging ? "1" : "0") cmd.replace("<trigger threshold>", QString::number(currLFConfig.triggerThreshold));
+ " t " + QString::number(currConfig.triggerThreshold) cmd.replace("<samples to skip>", QString::number(currLFConfig.samplesToSkip));
+ " s " + QString::number(currConfig.samplesToSkip), util->execCMDWithOutput(cmd, 500);
500); cmd = config["divisor cmd"].toString();
util->execCMDWithOutput("hw setlfdivisor " + QString::number(currConfig.divisor), 500); cmd.replace("<divisor>", QString::number(currLFConfig.divisor));
} util->execCMDWithOutput(cmd, 500);
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
{
util->execCMDWithOutput(QString("lf config")
+ " -a " + QString(currConfig.averaging ? "1" : "0")
+ " -b " + QString::number(currConfig.bitPerSample)
+ " --dec " + QString::number(currConfig.decimation)
+ " --divisor " + QString::number(currConfig.divisor)
+ " -s " + QString::number(currConfig.samplesToSkip)
+ " -t " + QString::number(currConfig.triggerThreshold),
500);
util->execCMDWithOutput("hw setlfdivisor -d " + QString::number(currConfig.divisor), 500);
}
} }
void LF::resetConfig() void LF::resetLFConfig()
{ {
setConfig(defaultConfig); setLFConfig(defaultLFConfig);
getConfig(); getLFConfig();
} }
float LF::divisor2Freq(uint8_t divisor) float LF::divisor2Freq(uint8_t divisor)
@@ -158,10 +139,16 @@ uint8_t LF::freq2Divisor(float freq)
void LF::syncWithUI() void LF::syncWithUI()
{ {
ui->LF_Conf_freqDivisorBox->setValue(currConfig.divisor); // will trigger valueChanged() ui->LF_LFConf_freqDivisorBox->setValue(currLFConfig.divisor); // will trigger valueChanged()
ui->LF_Conf_bitPerSampleBox->setValue(currConfig.bitPerSample); ui->LF_LFConf_bitsPerSampleBox->setValue(currLFConfig.bitsPerSample);
ui->LF_Conf_decimationBox->setValue(currConfig.decimation); ui->LF_LFConf_decimationBox->setValue(currLFConfig.decimation);
ui->LF_Conf_averagingBox->setChecked(currConfig.averaging); ui->LF_LFConf_averagingBox->setChecked(currLFConfig.averaging);
ui->LF_Conf_thresholdBox->setValue(currConfig.triggerThreshold); ui->LF_LFConf_thresholdBox->setValue(currLFConfig.triggerThreshold);
ui->LF_Conf_skipsBox->setValue(currConfig.samplesToSkip); ui->LF_LFConf_skipsBox->setValue(currLFConfig.samplesToSkip);
}
void LF::setConfigMap(const QVariantMap& configMap)
{
this->configMap = configMap;
qDebug() << configMap;
} }
+11 -8
View File
@@ -12,17 +12,17 @@ class LF : public QObject
public: public:
explicit LF(Ui::MainWindow *ui, Util *addr, QWidget *parent = nullptr); explicit LF(Ui::MainWindow *ui, Util *addr, QWidget *parent = nullptr);
struct Config struct LFConfig
{ {
uint8_t divisor; uint8_t divisor;
uint8_t bitPerSample; uint8_t bitsPerSample;
uint8_t decimation; uint8_t decimation;
bool averaging; bool averaging;
uint8_t triggerThreshold; uint8_t triggerThreshold;
uint16_t samplesToSkip; uint16_t samplesToSkip;
}; };
static constexpr Config defaultConfig = static constexpr LFConfig defaultLFConfig =
{ {
95, 95,
8, 8,
@@ -36,19 +36,22 @@ public:
void sniff(); void sniff();
void search(); void search();
void tune(); void tune();
void getConfig(); void getLFConfig();
void setConfig(LF::Config config); void setLFConfig(LF::LFConfig lfconfig);
void resetConfig(); void resetLFConfig();
static float divisor2Freq(uint8_t divisor); static float divisor2Freq(uint8_t divisor);
static uint8_t freq2Divisor(float freq); static uint8_t freq2Divisor(float freq);
void setConfigMap(const QVariantMap &configMap);
private: private:
QWidget* parent; QWidget* parent;
Ui::MainWindow *ui; Ui::MainWindow *ui;
Util* util; Util* util;
Config currConfig; LFConfig currLFConfig;
QRegularExpression* configPattern; QRegularExpression* LFconfigPattern;
QVariantMap configMap;
void syncWithUI(); void syncWithUI();
bool getLFConfig_helper(const QVariantMap& map, QString& str, int* result);
signals: signals:
}; };
+344 -374
View File
@@ -1,4 +1,5 @@
#include "mifare.h" #include "mifare.h"
#include <QJsonArray>
const Mifare::CardType Mifare::card_mini = const Mifare::CardType Mifare::card_mini =
{ {
@@ -87,29 +88,37 @@ Mifare::Mifare(Ui::MainWindow *ui, Util *addr, QWidget *parent): QObject(parent)
keyPattern = new QRegularExpression("\\|\\s*\\d{3}\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|"); keyPattern = new QRegularExpression("\\|\\s*\\d{3}\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|");
} }
QString Mifare::info(bool isRequiringOutput) void Mifare::setConfigMap(const QVariantMap& configMap)
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL || Util::getClientType() == Util::CLIENTTYPE_ICEMAN) this->configMap = configMap;
qDebug() << configMap;
}
QMap<QString, QString> Mifare::info(bool isRequiringOutput)
{
QMap<QString, QString> map;
QVariantMap config = configMap["info"].toMap();
if(isRequiringOutput)
{ {
if(isRequiringOutput) QString result = util->execCMDWithOutput(config["cmd"].toString(), 500);
QStringList lineList = result.split("\n");
for(auto line = lineList.begin(); line != lineList.end(); line++)
{ {
QString result = util->execCMDWithOutput("hf 14a info", 500); if(line->contains("UID"))
int begin, end; map["UID"] = line->replace("UID", "").replace(QRegularExpression("[^0-9a-fA-F]"), "").trimmed();
begin = result.indexOf("UID"); else if(line->contains("ATQA"))
if(begin != -1) map["ATQA"] = line->replace("ATQA", "").replace(QRegularExpression("[^0-9a-fA-F]"), "").trimmed();
{ else if(line->contains("SAK"))
end = result.indexOf("SAK", begin); map["SAK"] = line->replace("SAK", "").replace(QRegularExpression("\\[.+?\\]"), "").replace(QRegularExpression("[^0-9a-fA-F]"), "").trimmed();
end = result.indexOf("\n", end);
return result.mid(begin, end - begin + 1);
}
}
else
{
util->execCMD("hf 14a info");
Util::gotoRawTab();
} }
} }
return ""; else
{
util->execCMD(config["cmd"].toString());
Util::gotoRawTab();
}
return map;
} }
void Mifare::chk() void Mifare::chk()
@@ -118,131 +127,117 @@ void Mifare::chk()
QString result; QString result;
int offset = 0; int offset = 0;
QString data; QString data;
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["check"].toMap();
{ QString cmd = config["cmd"].toString();
result = util->execCMDWithOutput( int keyAindex = config["key A index"].toInt();
"hf mf chk *" int keyBindex = config["key B index"].toInt();
+ QString::number(cardType.type) QRegularExpression keyPattern = QRegularExpression(config["key pattern"].toString());
+ " ?", cmd.replace("<card type>", config["card type"].toMap()[cardType.typeText].toString());
Util::ReturnTrigger(1000 + cardType.sector_size * 200, {"No valid", keyPattern->pattern()}));
qDebug() << result;
for(int i = 0; i < cardType.sector_size; i++)
{
reMatch = keyPattern->match(result, offset);
offset = reMatch.capturedStart();
if(reMatch.hasMatch())
{
data = reMatch.captured().toUpper();
offset += data.length();
QStringList cells = data.remove(" ").split("|");
if(!cells[2].contains("?"))
{
keyAList->replace(i, cells[2]);
}
if(!cells[3].contains("?"))
{
keyBList->replace(i, cells[3]);
}
}
}
}
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
{
result = util->execCMDWithOutput(
"hf mf chk --"
+ cardType.typeText,
Util::ReturnTrigger(1000 + cardType.sector_size * 200, {"No valid", keyPattern_res->pattern()}));
qDebug() << "mf_chk_iceman_result" << result;
for(int i = 0; i < cardType.sector_size; i++)
{
reMatch = keyPattern_res->match(result, offset);
offset = reMatch.capturedStart();
if(reMatch.hasMatch())
{
data = reMatch.captured().toUpper();
offset += data.length();
QStringList cells = data.remove(" ").split("|");
if(cells[3] == "1")
{
keyAList->replace(i, cells[2]);
}
if(cells[5] == "1")
{
keyBList->replace(i, cells[4]);
}
}
}
} result = util->execCMDWithOutput(
data_syncWithKeyWidget(); cmd,
} Util::ReturnTrigger(1000 + cardType.sector_size * 200, {"No valid", keyPattern.pattern()}));
void Mifare::nested()
{
QRegularExpressionMatch reMatch;
QString result;
int offset = 0;
QString data;
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL)
{
result = util->execCMDWithOutput(
"hf mf nested "
+ QString::number(cardType.type)
+ " *",
Util::ReturnTrigger(15000, {"Can't found", "\\|000\\|"}));
}
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
{
QString knownKeyInfo = "";
for(int i = 0; i < cardType.sector_size; i++)
{
if(data_isKeyValid(keyAList->at(i)))
{
knownKeyInfo = " --blk " + QString::number(i * 4) + " -a -k " + keyAList->at(i);
break;
}
}
if(knownKeyInfo == "")
{
for(int i = 0; i < cardType.sector_size; i++)
{
if(data_isKeyValid(keyBList->at(i)))
{
knownKeyInfo = " --blk " + QString::number(i * 4) + " -b -k " + keyBList->at(i);
break;
}
}
}
if(knownKeyInfo != "")
{
result = util->execCMDWithOutput(
"hf mf nested --"
+ cardType.typeText
+ knownKeyInfo,
Util::ReturnTrigger(15000, {"Can't authenticate", keyPattern_res->pattern()}));
}
else
{
QMessageBox::information(parent, tr("Info"), tr("Plz provide at least one known key"));
}
}
for(int i = 0; i < cardType.sector_size; i++) for(int i = 0; i < cardType.sector_size; i++)
{ {
reMatch = keyPattern_res->match(result, offset); reMatch = keyPattern.match(result, offset);
offset = reMatch.capturedStart(); offset = reMatch.capturedStart();
if(reMatch.hasMatch()) if(reMatch.hasMatch())
{ {
data = reMatch.captured().toUpper(); data = reMatch.captured().toUpper();
offset += data.length(); offset += data.length();
QStringList cells = data.remove(" ").split("|"); QStringList cells = data.remove(" ").split("|");
if(cells[3] == "1") if(!cells[keyAindex].contains(QRegularExpression("[^0-9a-fA-F]")))
{ {
keyAList->replace(i, cells[2]); keyAList->replace(i, cells[keyAindex]);
} }
if(cells[5] == "1") if(!cells[keyBindex].contains(QRegularExpression("[^0-9a-fA-F]")))
{ {
keyBList->replace(i, cells[4]); keyBList->replace(i, cells[keyBindex]);
}
}
}
data_syncWithKeyWidget();
}
void Mifare::nested(bool isStaticNested)
{
QVariantMap config = configMap["nested"].toMap();
QString cmd;
if(isStaticNested)
cmd = config["static cmd"].toString();
else
cmd = config["cmd"].toString();
int keyAindex = config["key A index"].toInt();
int keyBindex = config["key B index"].toInt();
QRegularExpression keyPattern = QRegularExpression(config["key pattern"].toString());
QRegularExpressionMatch reMatch;
QString result;
int offset = 0;
QString data;
cmd.replace("<card type>", config["card type"].toMap()[cardType.typeText].toString());
if(cmd.contains(QRegularExpression("<.+>"))) // need at least one section key
{
QString knownKey, knownKeyType;
int knownKeySector = -1;
for(int i = 0; i < cardType.sector_size; i++)
{
if(data_isKeyValid(keyAList->at(i)))
{
knownKeyType = "A";
knownKey = keyAList->at(i);
knownKeySector = i;
break;
}
else if(data_isKeyValid(keyBList->at(i)))
{
knownKeyType = "B";
knownKey = keyBList->at(i);
knownKeySector = i;
break;
}
}
if(knownKeySector != -1)
{
cmd.replace("<block>", QString::number(cardType.blks[knownKeySector]));
cmd.replace("<key type>", config["key type"].toMap()[knownKeyType].toString());
cmd.replace("<key>", knownKey);
}
else
{
QMessageBox::information(parent, tr("Info"), tr("Plz provide at least one known key"));
return;
}
}
result = util->execCMDWithOutput(
cmd,
Util::ReturnTrigger(15000, {"Can't found", "Can't authenticate", keyPattern_res->pattern()}),
true);
if(result.contains("static") && !isStaticNested)
{
nested(true);
return;
}
for(int i = 0; i < cardType.sector_size; i++)
{
reMatch = keyPattern.match(result, offset);
offset = reMatch.capturedStart();
if(reMatch.hasMatch())
{
data = reMatch.captured().toUpper();
offset += data.length();
QStringList cells = data.remove(" ").split("|");
if(!cells[keyAindex].contains(QRegularExpression("[^0-9a-fA-F]")))
{
keyAList->replace(i, cells[keyAindex]);
}
if(!cells[keyBindex].contains(QRegularExpression("[^0-9a-fA-F]")))
{
keyBList->replace(i, cells[keyBindex]);
} }
} }
} }
@@ -252,7 +247,8 @@ void Mifare::nested()
void Mifare::hardnested() void Mifare::hardnested()
{ {
MF_Attack_hardnestedDialog dialog(cardType.block_size); QVariantMap config = configMap["hardnested"].toMap();
MF_Attack_hardnestedDialog dialog(cardType.block_size, config);
connect(&dialog, &MF_Attack_hardnestedDialog::sendCMD, util, &Util::execCMD); connect(&dialog, &MF_Attack_hardnestedDialog::sendCMD, util, &Util::execCMD);
if(dialog.exec() == QDialog::Accepted) if(dialog.exec() == QDialog::Accepted)
Util::gotoRawTab(); Util::gotoRawTab();
@@ -260,40 +256,32 @@ void Mifare::hardnested()
void Mifare::darkside() void Mifare::darkside()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["darkside"].toMap();
util->execCMD("hf mf mifare"); util->execCMD(config["cmd"].toString());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
util->execCMD("hf mf darkside");
Util::gotoRawTab(); Util::gotoRawTab();
} }
void Mifare::sniff() void Mifare::sniff()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["sniff"].toMap();
util->execCMD("hf mf sniff"); util->execCMD(config["cmd"].toString());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
util->execCMD("hf sniff");
Util::gotoRawTab(); Util::gotoRawTab();
} }
void Mifare::sniff14a() void Mifare::sniff14a()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["sniff 14a"].toMap();
util->execCMD("hf 14a snoop"); util->execCMD(config["cmd"].toString());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
util->execCMD("hf 14a sniff");
Util::gotoRawTab(); Util::gotoRawTab();
} }
void Mifare::list() void Mifare::list()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["list"].toMap();
util->execCMD("hf list mf"); util->execCMD(config["cmd"].toString());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
util->execCMD("trace list -t mf");
Util::gotoRawTab(); Util::gotoRawTab();
} }
@@ -305,93 +293,79 @@ QString Mifare::_readblk(int blockId, KeyType keyType, const QString& key, Targe
QRegularExpressionMatch currMatch; QRegularExpressionMatch currMatch;
bool isTrailerBlock = (blockId < 128 && ((blockId + 1) % 4 == 0)) || ((blockId + 1) % 16 == 0); bool isTrailerBlock = (blockId < 128 && ((blockId + 1) % 4 == 0)) || ((blockId + 1) % 16 == 0);
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL || Util::getClientType() == Util::CLIENTTYPE_ICEMAN) if(targetType == TARGET_MIFARE)
{ {
if(targetType == TARGET_MIFARE) if(!data_isKeyValid(key))
{ {
if(!data_isKeyValid(key)) return "";
}
QVariantMap config = configMap["normal read block"].toMap();
QString cmd = config["cmd"].toString();
QRegularExpression dataPattern = QRegularExpression(config["data pattern"].toString());
cmd.replace("<block>", QString::number(blockId));
cmd.replace("<key type>", config["key type"].toMap()[QString((char)keyType)].toString());
cmd.replace("<key>", key);
// use the given key type to read the target block
result = util->execCMDWithOutput(cmd, waitTime);
currMatch = dataPattern.match(result);
if(currMatch.hasMatch())
{
data = currMatch.captured().toUpper();
data.remove(" ");
// when the target block is a key block and the given key type is KeyA, try to check whether the KeyB is valid(by Access Bits)
// if the given key type is KeyB, it will never get the KeyA from the key block
if(isTrailerBlock && keyType == KEY_A) // in this case, the Access Bits is always accessible
{ {
return ""; data.replace(0, 12, key);
} QList<quint8> ACBits = data_getACBits(data.mid(12, 8));
// use the given key type to read the target block if(ACBits[3] == 2 || ACBits[3] == 3 || ACBits[3] == 5 || ACBits[3] == 6 || ACBits[3] == 7) // in these cases, the KeyB cannot be read by KeyA
result = util->execCMDWithOutput(
"hf mf rdbl "
+ QString::number(blockId)
+ " "
+ (char)keyType
+ " "
+ key,
waitTime);
currMatch = dataPattern->match(result);
if(currMatch.hasMatch())
{
data = currMatch.captured().toUpper();
data.remove(" ");
// when the target block is a key block and the given key type is KeyA, try to check whether the KeyB is valid(by Access Bits)
// if the given key type is KeyB, it will never get the KeyA from the key block
if(isTrailerBlock && keyType == KEY_A) // in this case, the Access Bits is always accessible
{ {
data.replace(0, 12, key); data.replace(20, 12, "????????????");
QList<quint8> ACBits = data_getACBits(data.mid(12, 8));
if(ACBits[3] == 2 || ACBits[3] == 3 || ACBits[3] == 5 || ACBits[3] == 6 || ACBits[3] == 7) // in these cases, the KeyB cannot be read by KeyA
{
data.replace(20, 12, "????????????");
}
}
else if(isTrailerBlock && keyType == KEY_B)
{
data.replace(20, 12, key);;
data.replace(0, 12, "????????????"); // fill the keyA part with ?
} }
} }
else else if(isTrailerBlock && keyType == KEY_B)
data = "";
}
else if(targetType == TARGET_UID)
{
result = util->execCMDWithOutput(
"hf mf cgetblk "
+ QString::number(blockId),
waitTime);
currMatch = dataPattern->match(result);
if(currMatch.hasMatch())
{ {
data = currMatch.captured().toUpper(); data.replace(20, 12, key);;
data.remove(" "); data.replace(0, 12, "????????????"); // fill the keyA part with ?
} }
else
data = "";
} }
else
data = "";
} }
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) else if(targetType == TARGET_UID)
{ {
if(targetType == TARGET_EMULATOR) QVariantMap config = configMap["Magic Card read block"].toMap();
QString cmd = config["cmd"].toString();
QRegularExpression dataPattern = QRegularExpression(config["data pattern"].toString());
cmd.replace("<block>", QString::number(blockId));
result = util->execCMDWithOutput(cmd, waitTime);
currMatch = dataPattern.match(result);
if(currMatch.hasMatch())
{ {
result = util->execCMDWithOutput( data = currMatch.captured().toUpper();
"hf mf eget "
+ QString::number(blockId),
150);
data = dataPattern->match(result).captured().toUpper();
data.remove(" "); data.remove(" ");
} }
else
data = "";
} }
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN) else if(targetType == TARGET_EMULATOR)
{ {
if(targetType == TARGET_EMULATOR) QVariantMap config = configMap["emulator read block"].toMap();
{ QString cmd = config["cmd"].toString();
result = util->execCMDWithOutput( QRegularExpression dataPattern = QRegularExpression(config["data pattern"].toString());
"hf mf egetblk " cmd.replace("<block>", QString::number(blockId));
+ QString::number(blockId), result = util->execCMDWithOutput(cmd, 150);
150); data = dataPattern.match(result).captured().toUpper();
data = dataPattern->match(result).captured().toUpper(); data.remove(" ");
data.remove(" ");
}
} }
return data; return data;
} }
QStringList Mifare::_readsec(int sectorId, KeyType keyType, const QString& key, TargetType targetType, int waitTime) QStringList Mifare::_readsec(int sectorId, KeyType keyType, const QString& key, TargetType targetType, int waitTime)
{ {
QVariantMap config;
QStringList data; QStringList data;
QString result, tmp; QString result, tmp;
QRegularExpressionMatch reMatch; QRegularExpressionMatch reMatch;
@@ -402,83 +376,81 @@ QStringList Mifare::_readsec(int sectorId, KeyType keyType, const QString& key,
data.append(""); data.append("");
} }
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL || Util::getClientType() == Util::CLIENTTYPE_ICEMAN) // try to read all blocks together
if(targetType == TARGET_MIFARE)
{ {
// try to read all blocks together if(!data_isKeyValid(key))
if(targetType == TARGET_MIFARE)
{ {
if(!data_isKeyValid(key))
{
return data;
}
result = util->execCMDWithOutput(
"hf mf rdsc "
+ QString::number(sectorId)
+ " "
+ (char)keyType
+ " "
+ key,
waitTime);
}
else if(targetType == TARGET_UID)
{
result = util->execCMDWithOutput(
"hf mf cgetsc "
+ QString::number(sectorId),
waitTime);
}
else if(targetType == TARGET_EMULATOR)
{
for(int i = 0; i < cardType.blk[sectorId]; i++)
data[i] = _readblk(cardType.blks[sectorId] + i, keyType, key, targetType, waitTime);
return data; return data;
} }
config = configMap["normal read sector"].toMap();
QString cmd = config["cmd"].toString();
cmd.replace("<sector>", QString::number(sectorId));
cmd.replace("<key type>", config["key type"].toMap()[QString((char)keyType)].toString());
cmd.replace("<key>", key);
result = util->execCMDWithOutput(cmd, waitTime);
}
else if(targetType == TARGET_UID)
{
config = configMap["Magic Card read sector"].toMap();
QString cmd = config["cmd"].toString();
cmd.replace("<sector>", QString::number(sectorId));
result = util->execCMDWithOutput(cmd, waitTime);
}
else if(targetType == TARGET_EMULATOR)
{
for(int i = 0; i < cardType.blk[sectorId]; i++)
data[i] = _readblk(cardType.blks[sectorId] + i, keyType, key, targetType, waitTime);
return data;
}
// for TARGET_MIFARE and TARGET_UID // for TARGET_MIFARE and TARGET_UID
reMatch = dataPattern->match(result); // if targetType == TARGET_EMULATOR, this function has returned
offset = reMatch.capturedStart(); QRegularExpression dataPattern = QRegularExpression(config["data pattern"].toString());
if(reMatch.hasMatch()) // read successful reMatch = dataPattern.match(result);
offset = reMatch.capturedStart();
if(reMatch.hasMatch()) // read successful
{
for(int i = 0; i < cardType.blk[sectorId]; i++)
{ {
for(int i = 0; i < cardType.blk[sectorId]; i++) reMatch = dataPattern.match(result, offset);
offset = reMatch.capturedStart();
if(reMatch.hasMatch())
{ {
reMatch = dataPattern->match(result, offset); tmp = reMatch.captured().toUpper();
offset = reMatch.capturedStart(); offset += tmp.length();
if(reMatch.hasMatch()) tmp.remove(" ");
{ data[i] = tmp;
tmp = reMatch.captured().toUpper();
offset += tmp.length();
tmp.remove(" ");
data[i] = tmp;
}
} }
} }
// when one of the block cannot be read, the rdsc will return nothing, so you need to read the rest of blocks manually
// the following rdbl operation is not handled there, for better speed(rdsc_A->rdsc_B->rdbl0~3)
else if(targetType == TARGET_UID) // treat as MIFARE
data = _readsec(sectorId, keyType, key, TARGET_MIFARE, waitTime);
//process trailer(like _readblk())
QString trailer = data[cardType.blk[sectorId] - 1];
if(trailer != "" && targetType == TARGET_MIFARE)
{
if(keyType == KEY_A) // in this case, the Access Bits is always accessible
{
trailer.replace(0, 12, key);
QList<quint8> ACBits = data_getACBits(trailer.mid(12, 8));
if(ACBits[3] == 2 || ACBits[3] == 3 || ACBits[3] == 5 || ACBits[3] == 6 || ACBits[3] == 7) // in these cases, the KeyB cannot be read by KeyA
{
trailer.replace(20, 12, "????????????");
}
}
else if(keyType == KEY_B)
{
trailer.replace(20, 12, key);;
trailer.replace(0, 12, "????????????"); // fill the keyA part with ?
}
data[cardType.blk[sectorId] - 1] = trailer;
}
} }
// when one of the block cannot be read, the rdsc will return nothing, so you need to read the rest of blocks manually
// the following rdbl operation is not handled there, for better speed(rdsc_A->rdsc_B->rdbl0~3)
else if(targetType == TARGET_UID) // treat as MIFARE
data = _readsec(sectorId, keyType, key, TARGET_MIFARE, waitTime);
//process trailer(like _readblk())
QString trailer = data[cardType.blk[sectorId] - 1];
if(trailer != "" && targetType == TARGET_MIFARE)
{
if(keyType == KEY_A) // in this case, the Access Bits is always accessible
{
trailer.replace(0, 12, key);
QList<quint8> ACBits = data_getACBits(trailer.mid(12, 8));
if(ACBits[3] == 2 || ACBits[3] == 3 || ACBits[3] == 5 || ACBits[3] == 6 || ACBits[3] == 7) // in these cases, the KeyB cannot be read by KeyA
{
trailer.replace(20, 12, "????????????");
}
}
else if(keyType == KEY_B)
{
trailer.replace(20, 12, key);;
trailer.replace(0, 12, "????????????"); // fill the keyA part with ?
}
data[cardType.blk[sectorId] - 1] = trailer;
}
return data; return data;
} }
@@ -607,45 +579,57 @@ bool Mifare::_writeblk(int blockId, KeyType keyType, const QString& key, const Q
if(data_isDataValid(input) != DATA_NOSPACE) if(data_isDataValid(input) != DATA_NOSPACE)
return false; return false;
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL || Util::getClientType() == Util::CLIENTTYPE_ICEMAN) if(targetType == TARGET_MIFARE)
{ {
if(targetType == TARGET_MIFARE) if(!data_isKeyValid(key))
return false;
QVariantMap config = configMap["normal write block"].toMap();
QString cmd = config["cmd"].toString();
cmd.replace("<block>", QString::number(blockId));
cmd.replace("<key type>", config["key type"].toMap()[QString((char)keyType)].toString());
cmd.replace("<key>", key);
cmd.replace("<data>", input);
result = util->execCMDWithOutput(cmd, waitTime);
if(result.isEmpty())
return false;
QVariantList failedFlag = config["failed flag"].toJsonArray().toVariantList();
for(auto flag = failedFlag.begin(); flag != failedFlag.end(); flag++)
{ {
if(!data_isKeyValid(key)) if(result.contains(flag->toString()))
return false; return false;
result = util->execCMDWithOutput(
"hf mf wrbl "
+ QString::number(blockId)
+ " "
+ (char)keyType
+ " "
+ key
+ " "
+ input,
waitTime);
return (result.indexOf("isOk:01") != -1);
}
else if(targetType == TARGET_UID)
{
result = util->execCMDWithOutput(
"hf mf csetblk "
+ QString::number(blockId)
+ " "
+ input,
waitTime);
return (result.indexOf("error") == -1); // failed flag
}
else if(targetType == TARGET_EMULATOR)
{
util->execCMD(
"hf mf eset "
+ QString::number(blockId)
+ " "
+ input);
util->delay(5);
return true;
} }
return true;
} }
else if(targetType == TARGET_UID)
{
QVariantMap config = configMap["Magic Card write block"].toMap();
QString cmd = config["cmd"].toString();
cmd.replace("<block>", QString::number(blockId));
cmd.replace("<data>", input);
result = util->execCMDWithOutput(cmd, waitTime);
if(result.isEmpty())
return false;
QVariantList failedFlag = config["failed flag"].toJsonArray().toVariantList();
for(auto flag = failedFlag.begin(); flag != failedFlag.end(); flag++)
{
if(result.contains(flag->toString()))
return false;
}
return true;
}
else if(targetType == TARGET_EMULATOR)
{
QVariantMap config = configMap["emulator write block"].toMap();
QString cmd = config["cmd"].toString();
cmd.replace("<block>", QString::number(blockId));
cmd.replace("<data>", input);
util->execCMD(cmd);
util->delay(5);
return true;
}
return false; return false;
} }
@@ -759,50 +743,40 @@ void Mifare::writeSelected(TargetType targetType)
void Mifare::dump() void Mifare::dump()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL || Util::getClientType() == Util::CLIENTTYPE_ICEMAN) QVariantMap config = configMap["dump"].toMap();
util->execCMD("hf mf dump"); util->execCMD(config["cmd"].toString());
Util::gotoRawTab(); Util::gotoRawTab();
} }
void Mifare::restore() void Mifare::restore()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL || Util::getClientType() == Util::CLIENTTYPE_ICEMAN) QVariantMap config = configMap["restore"].toMap();
util->execCMD("hf mf restore"); util->execCMD(config["cmd"].toString());
Util::gotoRawTab(); Util::gotoRawTab();
} }
void Mifare::wipeC() void Mifare::wipeC()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["Magic Card wipe"].toMap();
{ QString cmd = config["cmd"].toString();
util->execCMD( if(cmd.contains("<card type>"))
"hf mf cwipe " cmd.replace("<card type>", config["card type"].toMap()[cardType.typeText].toString());
+ QString::number(cardType.type) util->execCMD(cmd);
+ " f");
}
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
{
util->execCMD("hf mf cwipe");
}
Util::gotoRawTab(); Util::gotoRawTab();
} }
void Mifare::setParameterC() void Mifare::setParameterC()
{ {
QString result = info(true); QVariantMap config = configMap["Magic Card set parameter"].toMap();
if(result == "") QMap<QString, QString> result = info(true);
if(result.isEmpty())
{
QMessageBox::information(parent, tr("Info"), tr("Failed to read card.")); QMessageBox::information(parent, tr("Info"), tr("Failed to read card."));
return;
}
else else
{ {
result.replace("\r\n", ""); MF_UID_parameterDialog dialog(result["UID"].toUpper(), result["ATQA"].toUpper(), result["SAK"].toUpper(), config);
result.replace(QRegularExpression("\\[.\\]"), "");
result.replace("UID", "");
result.replace("ATQA", "");
result.replace("SAK", "");
result.replace(" ", "");
QStringList lis = result.split(':');
qDebug() << lis;
MF_UID_parameterDialog dialog(lis[1].toUpper(), lis[2].toUpper(), lis[3].toUpper());
connect(&dialog, &MF_UID_parameterDialog::sendCMD, util, &Util::execCMD); connect(&dialog, &MF_UID_parameterDialog::sendCMD, util, &Util::execCMD);
if(dialog.exec() == QDialog::Accepted) if(dialog.exec() == QDialog::Accepted)
Util::gotoRawTab(); Util::gotoRawTab();
@@ -811,30 +785,20 @@ void Mifare::setParameterC()
void Mifare::lockC() void Mifare::lockC()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["Magic Card lock"].toMap();
QString cmd = config["cmd"].toString();
QVariantList list = config["sequence"].toJsonArray().toVariantList();
for(auto item = list.begin(); item != list.end(); item++)
{ {
util->execCMD("hf 14a raw -pa -b7 40"); qDebug() << cmd + item->toString();
util->execCMD("hf 14a raw -pa 43"); util->execCMD(cmd + item->toString());
util->execCMD("hf 14a raw -pa E0 00 39 F7");
util->execCMD("hf 14a raw -pa E1 00 E1 EE");
util->execCMD("hf 14a raw -pa 85 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 18 47");
util->execCMD("hf 14a raw -a 52");
}
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN)
{
util->execCMD("hf 14a raw -ak -b 7 40");
util->execCMD("hf 14a raw -ak 43");
util->execCMD("hf 14a raw -ak E0 00 39 F7");
util->execCMD("hf 14a raw -ak E1 00 E1 EE");
util->execCMD("hf 14a raw -ak 85 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 18 47");
util->execCMD("hf 14a raw -a 52");
} }
} }
void Mifare::wipeE() void Mifare::wipeE()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL || Util::getClientType() == Util::CLIENTTYPE_ICEMAN) QVariantMap config = configMap["emulator wipe"].toMap();
util->execCMD("hf mf eclr"); util->execCMD(config["cmd"].toString());
} }
void Mifare::simulate() void Mifare::simulate()
@@ -847,12 +811,17 @@ void Mifare::simulate()
void Mifare::loadSniff(const QString& file) void Mifare::loadSniff(const QString& file)
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["load sniff"].toMap();
util->execCMD("hf list mf -l " + file); QString cmd = config["cmd"].toString();
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN) cmd.replace("<filename>", file);
if(config.contains("show cmd"))
{ {
if(util->execCMDWithOutput("trace load -f " + file, Util::ReturnTrigger({"loaded"})) != "") if(util->execCMDWithOutput(cmd, Util::ReturnTrigger({"loaded"})) != "")
util->execCMD("trace list -t mf"); util->execCMD(config["show cmd"].toString());
}
else
{
util->execCMD(cmd);
} }
Util::gotoRawTab(); Util::gotoRawTab();
@@ -860,10 +829,10 @@ void Mifare::loadSniff(const QString& file)
void Mifare::saveSniff(const QString& file) void Mifare::saveSniff(const QString& file)
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QVariantMap config = configMap["save sniff"].toMap();
util->execCMD("hf list mf -s " + file); QString cmd = config["cmd"].toString();
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN) cmd.replace("<filename>", file);
util->execCMD("trace save -f " + file); util->execCMD(cmd);
Util::gotoRawTab(); Util::gotoRawTab();
} }
@@ -879,11 +848,11 @@ void Mifare::data_syncWithDataWidget(bool syncAll, int block)
tmp = ""; tmp = "";
if(dataList->at(i) != "") if(dataList->at(i) != "")
{ {
tmp += dataList->at(i).mid(0, 2); tmp += dataList->at(i).midRef(0, 2);
for(int j = 1; j < 16; j++) for(int j = 1; j < 16; j++)
{ {
tmp += " "; tmp += " ";
tmp += dataList->at(i).mid(j * 2, 2); tmp += dataList->at(i).midRef(j * 2, 2);
} }
} }
ui->MF_dataWidget->item(i, 2)->setText(tmp); ui->MF_dataWidget->item(i, 2)->setText(tmp);
@@ -894,11 +863,11 @@ void Mifare::data_syncWithDataWidget(bool syncAll, int block)
tmp = ""; tmp = "";
if(dataList->at(block) != "") if(dataList->at(block) != "")
{ {
tmp += dataList->at(block).mid(0, 2); tmp += dataList->at(block).midRef(0, 2);
for(int j = 1; j < 16; j++) for(int j = 1; j < 16; j++)
{ {
tmp += " "; tmp += " ";
tmp += dataList->at(block).mid(j * 2, 2); tmp += dataList->at(block).midRef(j * 2, 2);
} }
} }
ui->MF_dataWidget->item(block, 2)->setText(tmp); ui->MF_dataWidget->item(block, 2)->setText(tmp);
@@ -1071,7 +1040,7 @@ bool Mifare::data_loadDataFile(const QString& filename)
else else
{ {
QString tmp = buff.left(cardType.block_size * 34); QString tmp = buff.left(cardType.block_size * 34);
QStringList tmpList = tmp.split("\r\n"); QStringList tmpList = tmp.split("\n");
for(int i = 0; i < cardType.block_size; i++) for(int i = 0; i < cardType.block_size; i++)
{ {
dataList->replace(i, tmpList[i].toUpper()); dataList->replace(i, tmpList[i].toUpper());
@@ -1174,7 +1143,7 @@ bool Mifare::data_saveDataFile(const QString& filename, bool isBin)
for(int i = 0; i < cardType.block_size; i++) for(int i = 0; i < cardType.block_size; i++)
{ {
buff += dataList->at(i); buff += dataList->at(i);
buff += "\r\n"; buff += "\n";
} }
} }
bool ret = file.write(buff) != -1; bool ret = file.write(buff) != -1;
@@ -1252,7 +1221,7 @@ void Mifare::data_key2Data()
if(dataList->at(getTrailerBlockId(i)) == "") if(dataList->at(getTrailerBlockId(i)) == "")
tmp += "FF078069"; // default control bytes tmp += "FF078069"; // default control bytes
else else
tmp += dataList->at(getTrailerBlockId(i)).mid(12, 8); tmp += dataList->at(getTrailerBlockId(i)).midRef(12, 8);
if(data_isKeyValid(keyBList->at(i))) if(data_isKeyValid(keyBList->at(i)))
tmp += keyBList->at(i); tmp += keyBList->at(i);
@@ -1367,6 +1336,7 @@ QString Mifare::data_getUID()
else else
return ""; return "";
} }
quint16 Mifare::getTrailerBlockId(quint8 sectorId, qint8 cardTypeId) quint16 Mifare::getTrailerBlockId(quint8 sectorId, qint8 cardTypeId)
{ {
if(cardTypeId == 0) if(cardTypeId == 0)
+6 -2
View File
@@ -11,6 +11,7 @@
#include <QStringList> #include <QStringList>
#include <QRegularExpression> #include <QRegularExpression>
#include <QMessageBox> #include <QMessageBox>
#include <QJsonObject>
class Mifare : public QObject class Mifare : public QObject
{ {
Q_OBJECT Q_OBJECT
@@ -64,9 +65,9 @@ public:
static const AccessType trailerReadCondition[8][3]; static const AccessType trailerReadCondition[8][3];
static const AccessType trailerWriteCondition[8][3]; static const AccessType trailerWriteCondition[8][3];
QString info(bool isRequiringOutput = false); QMap<QString, QString> info(bool isRequiringOutput = false);
void chk(); void chk();
void nested(); void nested(bool isStaticNested = false);
void darkside(); void darkside();
void hardnested(); void hardnested();
void sniff(); void sniff();
@@ -113,6 +114,7 @@ public:
static bool data_isACBitsValid(const QString& text, QList<quint8> *returnHalfBytes = nullptr); static bool data_isACBitsValid(const QString& text, QList<quint8> *returnHalfBytes = nullptr);
QString data_getUID(); QString data_getUID();
quint16 getTrailerBlockId(quint8 sectorId, qint8 cardTypeId = -1); // -1: use current cardtype quint16 getTrailerBlockId(quint8 sectorId, qint8 cardTypeId = -1); // -1: use current cardtype
void setConfigMap(const QVariantMap& configMap);
public slots: public slots:
signals: signals:
@@ -121,6 +123,8 @@ private:
Ui::MainWindow *ui; Ui::MainWindow *ui;
Util* util; Util* util;
QVariantMap configMap;
QStringList* keyAList; QStringList* keyAList;
QStringList* keyBList; QStringList* keyBList;
QStringList* dataList; QStringList* dataList;
+74 -38
View File
@@ -1,6 +1,8 @@
#include "mainwindow.h" #include "mainwindow.h"
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
#include <QJsonDocument>
MainWindow::MainWindow(QWidget *parent): MainWindow::MainWindow(QWidget *parent):
QMainWindow(parent) QMainWindow(parent)
, ui(new Ui::MainWindow) , ui(new Ui::MainWindow)
@@ -70,6 +72,22 @@ MainWindow::~MainWindow()
delete pm3Thread; delete pm3Thread;
} }
void MainWindow::loadConfig()
{
QFile configList(ui->Set_Client_configPathEdit->text());
if(!configList.open(QFile::ReadOnly | QFile::Text))
{
QMessageBox::information(this, tr("Info"), tr("Failed to load config file"));
return;
}
QByteArray configData = configList.readAll();
QJsonDocument configJson(QJsonDocument::fromJson(configData));
mifare->setConfigMap(configJson.object()["mifare classic"].toObject().toVariantMap());
lf->setConfigMap(configJson.object()["lf"].toObject().toVariantMap());
}
void MainWindow::initUI() // will be called by main.app void MainWindow::initUI() // will be called by main.app
{ {
ui->retranslateUi(this); ui->retranslateUi(this);
@@ -108,7 +126,7 @@ void MainWindow::on_PM3_connectButton_clicked()
// on RRG repo, if no port is specified, the client will search the available port // on RRG repo, if no port is specified, the client will search the available port
if(port == "" && startArgs.contains("<port>")) // has <port>, no port if(port == "" && startArgs.contains("<port>")) // has <port>, no port
{ {
QMessageBox::information(NULL, tr("Info"), tr("Plz choose a port first"), QMessageBox::Ok); QMessageBox::information(this, tr("Info"), tr("Plz choose a port first"), QMessageBox::Ok);
return; return;
} }
@@ -126,11 +144,11 @@ void MainWindow::on_PM3_connectButton_clicked()
// use the shell session to keep the environment then read it // use the shell session to keep the environment then read it
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
// cmd /c "<path>">>nul && set // cmd /c "<path>">>nul && set
envSetProcess.start("cmd"); envSetProcess.start("cmd", {}, QProcess::Unbuffered | QProcess::ReadWrite | QProcess::Text);
envSetProcess.write(QString("\"" + envScriptPath.absoluteFilePath() + "\">>nul\r\n").toLatin1()); envSetProcess.write(QString("\"" + envScriptPath.absoluteFilePath() + "\">>nul\n").toLatin1());
envSetProcess.waitForReadyRead(10000); envSetProcess.waitForReadyRead(10000);
envSetProcess.readAll(); envSetProcess.readAll();
envSetProcess.write("set\r\n"); envSetProcess.write("set\n");
#else #else
// need implementation(or test if space works) // need implementation(or test if space works)
// sh -c '. "<path>">>/dev/null && env' // sh -c '. "<path>">>/dev/null && env'
@@ -138,7 +156,7 @@ void MainWindow::on_PM3_connectButton_clicked()
#endif #endif
envSetProcess.waitForReadyRead(10000); envSetProcess.waitForReadyRead(10000);
QString envSetResult = QString(envSetProcess.readAll()); QString envSetResult = QString(envSetProcess.readAll());
clientEnv = envSetResult.split(QRegExp("[\r\n]{1,2}"), QString::SkipEmptyParts); clientEnv = envSetResult.split("\n", QString::SkipEmptyParts);
if(clientEnv.size() > 2) // the first element is "set" and the last element is the current path if(clientEnv.size() > 2) // the first element is "set" and the last element is the current path
{ {
clientEnv.removeFirst(); clientEnv.removeFirst();
@@ -158,6 +176,7 @@ void MainWindow::on_PM3_connectButton_clicked()
qDebug() << clientWorkingDir->absolutePath(); qDebug() << clientWorkingDir->absolutePath();
emit setWorkingDir(clientWorkingDir->absolutePath()); emit setWorkingDir(clientWorkingDir->absolutePath());
loadConfig();
emit connectPM3(ui->PM3_pathEdit->text(), args); emit connectPM3(ui->PM3_pathEdit->text(), args);
if(port != "" && !keepClientActive) if(port != "" && !keepClientActive)
emit setSerialListener(port, true); emit setSerialListener(port, true);
@@ -854,15 +873,16 @@ void MainWindow::on_MF_Sniff_loadButton_clicked() // use a tmp file to support c
QString filename = ""; QString filename = "";
title = tr("Plz select the trace file:"); title = tr("Plz select the trace file:");
filename = QFileDialog::getOpenFileName(this, title, "./", tr("Trace Files(*.trc);;All Files(*.*)")); filename = QFileDialog::getOpenFileName(this, title, clientWorkingDir->absolutePath(), tr("Trace Files(*.trc);;All Files(*.*)"));
qDebug() << filename; qDebug() << filename;
if(filename != "") if(filename != "")
{ {
QString tmpFile = "tmp" + QString::number(QDateTime::currentDateTime().toTime_t()) + ".trc"; QString tmpFile = "tmp" + QString::number(QDateTime::currentDateTime().toTime_t()) + ".trc";
if(QFile::copy(filename, "./" + tmpFile)) if(QFile::copy(filename, clientWorkingDir->absolutePath() + "/" + tmpFile))
{ {
mifare->loadSniff(tmpFile); mifare->loadSniff(tmpFile);
QFile::remove("./" + tmpFile); util->delay(3000);
QFile::remove(clientWorkingDir->absolutePath() + "/" + tmpFile);
} }
else else
{ {
@@ -877,17 +897,23 @@ void MainWindow::on_MF_Sniff_saveButton_clicked()
QString filename = ""; QString filename = "";
title = tr("Plz select the location to save trace file:"); title = tr("Plz select the location to save trace file:");
filename = QFileDialog::getSaveFileName(this, title, "./", tr("Trace Files(*.trc)")); filename = QFileDialog::getSaveFileName(this, title, clientWorkingDir->absolutePath(), tr("Trace Files(*.trc)"));
qDebug() << filename; qDebug() << filename;
if(filename != "") if(filename != "")
{ {
QString tmpFile = "tmp" + QString::number(QDateTime::currentDateTime().toTime_t()) + ".trc"; QString tmpFile = "tmp" + QString::number(QDateTime::currentDateTime().toTime_t()) + ".trc";
mifare->saveSniff(tmpFile); mifare->saveSniff(tmpFile);
if(!QFile::copy("./" + tmpFile, filename)) for(int i = 0; i < 100; i++)
{
util->delay(100);
if(QFile::exists(clientWorkingDir->absolutePath() + "/" + tmpFile))
break;
}
if(!QFile::copy(clientWorkingDir->absolutePath() + "/" + tmpFile, filename))
{ {
QMessageBox::information(this, tr("Info"), tr("Failed to save to") + "\n" + filename); QMessageBox::information(this, tr("Info"), tr("Failed to save to") + "\n" + filename);
} }
QFile::remove("./" + tmpFile); QFile::remove(clientWorkingDir->absolutePath() + "/" + tmpFile);
} }
} }
@@ -1038,6 +1064,7 @@ void MainWindow::uiInit()
settings->beginGroup("Client_Env"); settings->beginGroup("Client_Env");
ui->Set_Client_envScriptEdit->setText(settings->value("scriptPath").toString()); ui->Set_Client_envScriptEdit->setText(settings->value("scriptPath").toString());
ui->Set_Client_workingDirEdit->setText(settings->value("workingDir", "../data").toString()); ui->Set_Client_workingDirEdit->setText(settings->value("workingDir", "../data").toString());
ui->Set_Client_configPathEdit->setText(settings->value("configPath", "config.json").toString());
settings->endGroup(); settings->endGroup();
ui->MF_RW_keyTypeBox->addItem("A", Mifare::KEY_A); ui->MF_RW_keyTypeBox->addItem("A", Mifare::KEY_A);
@@ -1156,7 +1183,7 @@ void MainWindow::setButtonsEnabled(bool st)
ui->MF_sniffGroupBox->setEnabled(st); ui->MF_sniffGroupBox->setEnabled(st);
ui->Raw_CMDEdit->setEnabled(st); ui->Raw_CMDEdit->setEnabled(st);
ui->Raw_sendCMDButton->setEnabled(st); ui->Raw_sendCMDButton->setEnabled(st);
ui->LF_configGroupBox->setEnabled(st); ui->LF_LFconfigGroupBox->setEnabled(st);
ui->LF_operationGroupBox->setEnabled(st); ui->LF_operationGroupBox->setEnabled(st);
} }
@@ -1229,13 +1256,21 @@ void MainWindow::on_Set_Client_envScriptEdit_editingFinished()
settings->endGroup(); settings->endGroup();
} }
void MainWindow::on_Set_Client_saveWorkingDirButton_clicked() void MainWindow::on_Set_Client_workingDirEdit_editingFinished()
{ {
settings->beginGroup("Client_Env"); settings->beginGroup("Client_Env");
settings->setValue("workingDir", ui->Set_Client_workingDirEdit->text()); settings->setValue("workingDir", ui->Set_Client_workingDirEdit->text());
settings->endGroup(); settings->endGroup();
} }
void MainWindow::on_Set_Client_configPathEdit_editingFinished()
{
settings->beginGroup("Client_Env");
settings->setValue("configPath", ui->Set_Client_configPathEdit->text());
settings->endGroup();
}
void MainWindow::on_Set_Client_keepClientActiveBox_stateChanged(int arg1) void MainWindow::on_Set_Client_keepClientActiveBox_stateChanged(int arg1)
{ {
settings->beginGroup("Client_keepClientActive"); settings->beginGroup("Client_keepClientActive");
@@ -1245,37 +1280,37 @@ void MainWindow::on_Set_Client_keepClientActiveBox_stateChanged(int arg1)
emit setSerialListener(!keepClientActive); emit setSerialListener(!keepClientActive);
} }
void MainWindow::on_LF_Conf_freqSlider_valueChanged(int value) void MainWindow::on_LF_LFConf_freqSlider_valueChanged(int value)
{ {
onLFfreqConfChanged(value, true); onLFfreqConfChanged(value, true);
} }
void MainWindow::onLFfreqConfChanged(int value, bool isCustomized) void MainWindow::onLFfreqConfChanged(int value, bool isCustomized)
{ {
ui->LF_Conf_freqDivisorBox->blockSignals(true); ui->LF_LFConf_freqDivisorBox->blockSignals(true);
ui->LF_Conf_freqSlider->blockSignals(true); ui->LF_LFConf_freqSlider->blockSignals(true);
if(isCustomized) if(isCustomized)
ui->LF_Conf_freqOtherButton->setChecked(true); ui->LF_LFConf_freqOtherButton->setChecked(true);
ui->LF_Conf_freqLabel->setText(tr("Actural Freq: ") + QString("%1kHz").arg(LF::divisor2Freq(value), 0, 'f', 3)); ui->LF_LFConf_freqLabel->setText(tr("Actural Freq: ") + QString("%1kHz").arg(LF::divisor2Freq(value), 0, 'f', 3));
ui->LF_Conf_freqDivisorBox->setValue(value); ui->LF_LFConf_freqDivisorBox->setValue(value);
ui->LF_Conf_freqSlider->setValue(value); ui->LF_LFConf_freqSlider->setValue(value);
ui->LF_Conf_freqDivisorBox->blockSignals(false); ui->LF_LFConf_freqDivisorBox->blockSignals(false);
ui->LF_Conf_freqSlider->blockSignals(false); ui->LF_LFConf_freqSlider->blockSignals(false);
} }
void MainWindow::on_LF_Conf_freqDivisorBox_valueChanged(int arg1) void MainWindow::on_LF_LFConf_freqDivisorBox_valueChanged(int arg1)
{ {
onLFfreqConfChanged(arg1, true); onLFfreqConfChanged(arg1, true);
} }
void MainWindow::on_LF_Conf_freq125kButton_clicked() void MainWindow::on_LF_LFConf_freq125kButton_clicked()
{ {
onLFfreqConfChanged(95, false); onLFfreqConfChanged(95, false);
} }
void MainWindow::on_LF_Conf_freq134kButton_clicked() void MainWindow::on_LF_LFConf_freq134kButton_clicked()
{ {
onLFfreqConfChanged(88, false); onLFfreqConfChanged(88, false);
} }
@@ -1341,31 +1376,32 @@ void MainWindow::contextMenuEvent(QContextMenuEvent *event)
contextMenu->exec(event->globalPos()); contextMenu->exec(event->globalPos());
} }
void MainWindow::on_LF_Conf_getButton_clicked() void MainWindow::on_LF_LFConf_getButton_clicked()
{ {
setState(false); setState(false);
lf->getConfig(); lf->getLFConfig();
setState(true); setState(true);
} }
void MainWindow::on_LF_Conf_setButton_clicked() void MainWindow::on_LF_LFConf_setButton_clicked()
{ {
LF::Config config; LF::LFConfig config;
setState(false); setState(false);
config.divisor = ui->LF_Conf_freqDivisorBox->value(); config.divisor = ui->LF_LFConf_freqDivisorBox->value();
config.bitPerSample = ui->LF_Conf_bitPerSampleBox->value(); config.bitsPerSample = ui->LF_LFConf_bitsPerSampleBox->value();
config.decimation = ui->LF_Conf_decimationBox->value(); config.decimation = ui->LF_LFConf_decimationBox->value();
config.averaging = ui->LF_Conf_averagingBox->isChecked(); config.averaging = ui->LF_LFConf_averagingBox->isChecked();
config.triggerThreshold = ui->LF_Conf_thresholdBox->value(); config.triggerThreshold = ui->LF_LFConf_thresholdBox->value();
config.samplesToSkip = ui->LF_Conf_skipsBox->value(); config.samplesToSkip = ui->LF_LFConf_skipsBox->value();
lf->setConfig(config); lf->setLFConfig(config);
Util::gotoRawTab(); Util::gotoRawTab();
setState(true); setState(true);
} }
void MainWindow::on_LF_Conf_resetButton_clicked() void MainWindow::on_LF_LFConf_resetButton_clicked()
{ {
setState(false); setState(false);
lf->resetConfig(); lf->resetLFConfig();
setState(true); setState(true);
} }
+12 -9
View File
@@ -177,17 +177,15 @@ private slots:
void on_Set_Client_envScriptEdit_editingFinished(); void on_Set_Client_envScriptEdit_editingFinished();
void on_Set_Client_saveWorkingDirButton_clicked();
void on_Set_Client_keepClientActiveBox_stateChanged(int arg1); void on_Set_Client_keepClientActiveBox_stateChanged(int arg1);
void on_LF_Conf_freqSlider_valueChanged(int value); void on_LF_LFConf_freqSlider_valueChanged(int value);
void on_LF_Conf_freqDivisorBox_valueChanged(int arg1); void on_LF_LFConf_freqDivisorBox_valueChanged(int arg1);
void on_LF_Conf_freq125kButton_clicked(); void on_LF_LFConf_freq125kButton_clicked();
void on_LF_Conf_freq134kButton_clicked(); void on_LF_LFConf_freq134kButton_clicked();
void on_LF_Op_searchButton_clicked(); void on_LF_Op_searchButton_clicked();
@@ -197,11 +195,15 @@ private slots:
void on_LF_Op_sniffButton_clicked(); void on_LF_Op_sniffButton_clicked();
void on_LF_Conf_getButton_clicked(); void on_LF_LFConf_getButton_clicked();
void on_LF_Conf_setButton_clicked(); void on_LF_LFConf_setButton_clicked();
void on_LF_Conf_resetButton_clicked(); void on_LF_LFConf_resetButton_clicked();
void on_Set_Client_workingDirEdit_editingFinished();
void on_Set_Client_configPathEdit_editingFinished();
private: private:
Ui::MainWindow* ui; Ui::MainWindow* ui;
@@ -249,6 +251,7 @@ private:
void saveClientPath(const QString& path); void saveClientPath(const QString& path);
void onLFfreqConfChanged(int value, bool isCustomized); void onLFfreqConfChanged(int value, bool isCustomized);
void dockInit(); void dockInit();
void loadConfig();
protected: protected:
void contextMenuEvent(QContextMenuEvent *event) override; void contextMenuEvent(QContextMenuEvent *event) override;
signals: signals:
+66 -50
View File
@@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1050</width> <width>1050</width>
<height>700</height> <height>750</height>
</rect> </rect>
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
@@ -136,7 +136,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>2</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="mifareTab"> <widget class="QWidget" name="mifareTab">
<attribute name="title"> <attribute name="title">
@@ -1247,7 +1247,7 @@
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_14"> <layout class="QVBoxLayout" name="verticalLayout_14">
<item> <item>
<widget class="QGroupBox" name="LF_configGroupBox"> <widget class="QGroupBox" name="LF_LFconfigGroupBox">
<property name="title"> <property name="title">
<string>LF Config</string> <string>LF Config</string>
</property> </property>
@@ -1268,7 +1268,7 @@
<number>2</number> <number>2</number>
</property> </property>
<item> <item>
<widget class="QGroupBox" name="LF_Conf_freqGroupBox"> <widget class="QGroupBox" name="LF_LFConf_freqGroupBox">
<property name="title"> <property name="title">
<string>Frequency</string> <string>Frequency</string>
</property> </property>
@@ -1291,7 +1291,7 @@
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_13"> <layout class="QHBoxLayout" name="horizontalLayout_13">
<item> <item>
<widget class="QRadioButton" name="LF_Conf_freq125kButton"> <widget class="QRadioButton" name="LF_LFConf_freq125kButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@@ -1307,7 +1307,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="LF_Conf_freq134kButton"> <widget class="QRadioButton" name="LF_LFConf_freq134kButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@@ -1320,7 +1320,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QRadioButton" name="LF_Conf_freqOtherButton"> <widget class="QRadioButton" name="LF_LFConf_freqOtherButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@@ -1340,7 +1340,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QSpinBox" name="LF_Conf_freqDivisorBox"> <widget class="QSpinBox" name="LF_LFConf_freqDivisorBox">
<property name="minimum"> <property name="minimum">
<number>19</number> <number>19</number>
</property> </property>
@@ -1353,7 +1353,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="LF_Conf_freqLabel"> <widget class="QLabel" name="LF_LFConf_freqLabel">
<property name="text"> <property name="text">
<string>Actural Freq: 125.000kHz</string> <string>Actural Freq: 125.000kHz</string>
</property> </property>
@@ -1375,7 +1375,7 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QSlider" name="LF_Conf_freqSlider"> <widget class="QSlider" name="LF_LFConf_freqSlider">
<property name="minimum"> <property name="minimum">
<number>19</number> <number>19</number>
</property> </property>
@@ -1393,8 +1393,7 @@
<item> <item>
<widget class="QLabel" name="label_22"> <widget class="QLabel" name="label_22">
<property name="text"> <property name="text">
<string>Note: <string>You might need a modified LF antenna if the freq is not 125k/134k.
You might need a modified LF antenna if the freq is not 125k/134k.
When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</string> When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
@@ -1425,7 +1424,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_6">
<property name="text"> <property name="text">
<string>Bit per sample:</string> <string>Bits per sample:</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -1437,7 +1436,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1">
<widget class="QSpinBox" name="LF_Conf_decimationBox"> <widget class="QSpinBox" name="LF_LFConf_decimationBox">
<property name="minimum"> <property name="minimum">
<number>1</number> <number>1</number>
</property> </property>
@@ -1454,7 +1453,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1">
<widget class="QCheckBox" name="LF_Conf_averagingBox"> <widget class="QCheckBox" name="LF_LFConf_averagingBox">
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
@@ -1468,7 +1467,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="3" column="1">
<widget class="QSpinBox" name="LF_Conf_thresholdBox"> <widget class="QSpinBox" name="LF_LFConf_thresholdBox">
<property name="maximum"> <property name="maximum">
<number>128</number> <number>128</number>
</property> </property>
@@ -1482,14 +1481,14 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="4" column="1">
<widget class="QSpinBox" name="LF_Conf_skipsBox"> <widget class="QSpinBox" name="LF_LFConf_skipsBox">
<property name="maximum"> <property name="maximum">
<number>65535</number> <number>65535</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QSpinBox" name="LF_Conf_bitPerSampleBox"> <widget class="QSpinBox" name="LF_LFConf_bitsPerSampleBox">
<property name="minimum"> <property name="minimum">
<number>1</number> <number>1</number>
</property> </property>
@@ -1534,7 +1533,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="QPushButton" name="LF_Conf_getButton"> <widget class="QPushButton" name="LF_LFConf_getButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@@ -1553,7 +1552,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="LF_Conf_setButton"> <widget class="QPushButton" name="LF_LFConf_setButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@@ -1572,7 +1571,7 @@ When setting the freq, the &quot;hw setlfdivisor&quot; will also be called.</str
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="LF_Conf_resetButton"> <widget class="QPushButton" name="LF_LFConf_resetButton">
<property name="text"> <property name="text">
<string>Reset</string> <string>Reset</string>
</property> </property>
@@ -2650,7 +2649,7 @@ or the communication between a tag and a reader.</string>
<item> <item>
<widget class="QLabel" name="label_11"> <widget class="QLabel" name="label_11">
<property name="text"> <property name="text">
<string>Preload script path:</string> <string>Preload script path(Reconnect to apply):</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -2664,9 +2663,7 @@ or the communication between a tag and a reader.</string>
<item> <item>
<widget class="QLabel" name="label_13"> <widget class="QLabel" name="label_13">
<property name="text"> <property name="text">
<string>Note: <string>If the client requires some enviroment variables, you can make a script file(*.bat on Windows or *.sh on Linux) to configure them, then put the path of the script there.</string>
If the client requires some enviroment variables, you can make a script file(*.bat on Windows or *.sh on Linux) to configure them,
then put the path of the script there</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
@@ -2683,33 +2680,21 @@ then put the path of the script there</string>
<item> <item>
<widget class="QLabel" name="label_19"> <widget class="QLabel" name="label_19">
<property name="text"> <property name="text">
<string>Client working directory:</string> <string>Client working directory(Reconnect to apply):</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_15"> <widget class="QLineEdit" name="Set_Client_workingDirEdit">
<item> <property name="text">
<widget class="QLineEdit" name="Set_Client_workingDirEdit"> <string>../data</string>
<property name="text"> </property>
<string>../data</string> </widget>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="Set_Client_saveWorkingDirButton">
<property name="text">
<string>Save</string>
</property>
</widget>
</item>
</layout>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_20"> <widget class="QLabel" name="label_20">
<property name="text"> <property name="text">
<string>Note: <string>On Windows, the client working directory should not be identical to the path of GUI, otherwise the client will use the wrong .dll file.</string>
On Windows, the client working directory should not be identical to the path of GUI, otherwise the client will use the wrong .dll file.</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
@@ -2726,7 +2711,7 @@ On Windows, the client working directory should not be identical to the path of
<item> <item>
<widget class="QLabel" name="label_12"> <widget class="QLabel" name="label_12">
<property name="text"> <property name="text">
<string>Start arguments</string> <string>Start arguments(Reconnect to apply):</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -2740,10 +2725,7 @@ On Windows, the client working directory should not be identical to the path of
<item> <item>
<widget class="QLabel" name="label_14"> <widget class="QLabel" name="label_14">
<property name="text"> <property name="text">
<string>Note: <string>-f is necessary because the GUI need to handle the output in time. In some cases, the arguments should be set to &quot;-p /dev/&lt;port&gt; -f&quot; or &quot;-p &lt;port&gt; -f&quot;.</string>
-f is necessary because the GUI need to handle the output in time
In some cases the arguments should be set to &quot;-p /dev/&lt;port&gt; -f&quot;
or &quot;-p &lt;port&gt; -f&quot;</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
@@ -2757,6 +2739,37 @@ or &quot;-p &lt;port&gt; -f&quot;</string>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QLabel" name="label_63">
<property name="text">
<string>Config file path(Reconnect to apply):</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="Set_Client_configPathEdit">
<property name="text">
<string>config.json</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_64">
<property name="text">
<string>Different clients require different config files. You can change the content of config file if the command format changes.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_8">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_16"> <layout class="QHBoxLayout" name="horizontalLayout_16">
<item> <item>
@@ -2833,7 +2846,7 @@ or &quot;-p &lt;port&gt; -f&quot;</string>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string>Keep te client active even the PM3 hardware is disconnected.(Experimental)</string> <string>Keep the client active even the PM3 hardware is disconnected.(Experimental)</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
@@ -2912,6 +2925,9 @@ or &quot;-p &lt;port&gt; -f&quot;</string>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>0</width> <width>0</width>
+11 -25
View File
@@ -1,16 +1,17 @@
#include "mf_attack_hardnesteddialog.h" #include "mf_attack_hardnesteddialog.h"
#include "ui_mf_attack_hardnesteddialog.h" #include "ui_mf_attack_hardnesteddialog.h"
MF_Attack_hardnestedDialog::MF_Attack_hardnestedDialog(int blocks, QWidget *parent) : MF_Attack_hardnestedDialog::MF_Attack_hardnestedDialog(int blocks, const QVariantMap& config, QWidget *parent) :
QDialog(parent), QDialog(parent),
ui(new Ui::MF_Attack_hardnestedDialog) ui(new Ui::MF_Attack_hardnestedDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
for(int i = 0; i < blocks; i++) for(int i = 0; i < blocks; i++)
{ {
ui->knownKeySectorBox->addItem(QString::number(i)); ui->knownKeyBlockBox->addItem(QString::number(i));
ui->targetKeySectorBox->addItem(QString::number(i)); ui->targetKeyBlockBox->addItem(QString::number(i));
} }
this->config = config;
} }
@@ -21,26 +22,11 @@ MF_Attack_hardnestedDialog::~MF_Attack_hardnestedDialog()
void MF_Attack_hardnestedDialog::on_buttonBox_accepted() void MF_Attack_hardnestedDialog::on_buttonBox_accepted()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QString cmd = config["cmd"].toString();
emit sendCMD("hf mf hardnested " cmd.replace("<known key block>", ui->knownKeyBlockBox->currentText());
+ ui->knownKeySectorBox->currentText() cmd.replace("<known key type>", config["known key type"].toMap()[ui->knownKeyTypeBox->currentText()].toString());
+ " " cmd.replace("<known key>", ui->knownKeyBox->text());
+ ui->knownKeyTypeBox->currentText() cmd.replace("<target key block>", ui->targetKeyBlockBox->currentText());
+ " " cmd.replace("<target key type>", config["target key type"].toMap()[ui->targetKeyTypeBox->currentText()].toString());
+ ui->knownKeyBox->text() emit sendCMD(cmd);
+ " "
+ ui->targetKeySectorBox->currentText()
+ " "
+ ui->targetKeyTypeBox->currentText());
else if(Util::getClientType() == Util::CLIENTTYPE_ICEMAN) // same format in v4.9237
emit sendCMD("hf mf hardnested "
+ ui->knownKeySectorBox->currentText()
+ " "
+ ui->knownKeyTypeBox->currentText()
+ " "
+ ui->knownKeyBox->text()
+ " "
+ ui->targetKeySectorBox->currentText()
+ " "
+ ui->targetKeyTypeBox->currentText());
} }
+2 -1
View File
@@ -14,12 +14,13 @@ class MF_Attack_hardnestedDialog : public QDialog
Q_OBJECT Q_OBJECT
public: public:
explicit MF_Attack_hardnestedDialog(int blocks, QWidget *parent = nullptr); explicit MF_Attack_hardnestedDialog(int blocks, const QVariantMap& config, QWidget *parent = nullptr);
~MF_Attack_hardnestedDialog(); ~MF_Attack_hardnestedDialog();
private: private:
Ui::MF_Attack_hardnestedDialog *ui; Ui::MF_Attack_hardnestedDialog *ui;
QVariantMap config;
signals: signals:
void sendCMD(const QString& cmd); void sendCMD(const QString& cmd);
private slots: private slots:
+2 -2
View File
@@ -31,7 +31,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="knownKeySectorBox"> <widget class="QComboBox" name="knownKeyBlockBox">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>60</width> <width>60</width>
@@ -106,7 +106,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="targetKeySectorBox"> <widget class="QComboBox" name="targetKeyBlockBox">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>60</width> <width>60</width>
+7 -15
View File
@@ -1,7 +1,7 @@
#include "mf_uid_parameterdialog.h" #include "mf_uid_parameterdialog.h"
#include "ui_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) : MF_UID_parameterDialog::MF_UID_parameterDialog(const QString& uid, const QString& atqa, const QString& sak, const QVariantMap& config, QWidget *parent) :
QDialog(parent), QDialog(parent),
ui(new Ui::MF_UID_parameterDialog) ui(new Ui::MF_UID_parameterDialog)
{ {
@@ -9,6 +9,7 @@ MF_UID_parameterDialog::MF_UID_parameterDialog(const QString& uid, const QString
ui->UIDLineEdit->setText(uid); ui->UIDLineEdit->setText(uid);
ui->ATQALineEdit->setText(atqa); ui->ATQALineEdit->setText(atqa);
ui->SAKLineEdit->setText(sak); ui->SAKLineEdit->setText(sak);
this->config = config;
} }
MF_UID_parameterDialog::~MF_UID_parameterDialog() MF_UID_parameterDialog::~MF_UID_parameterDialog()
@@ -18,18 +19,9 @@ MF_UID_parameterDialog::~MF_UID_parameterDialog()
void MF_UID_parameterDialog::on_buttonBox_accepted() void MF_UID_parameterDialog::on_buttonBox_accepted()
{ {
if(Util::getClientType() == Util::CLIENTTYPE_OFFICIAL) QString cmd = config["cmd"].toString();
emit sendCMD("hf mf csetuid " cmd.replace("<uid>", ui->UIDLineEdit->text());
+ ui->UIDLineEdit->text() cmd.replace("<atqa>", ui->ATQALineEdit->text());
+ " " cmd.replace("<sak>", ui->SAKLineEdit->text());
+ ui->ATQALineEdit->text() emit sendCMD(cmd);
+ " "
+ 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());
} }
+2 -1
View File
@@ -14,11 +14,12 @@ class MF_UID_parameterDialog : public QDialog
Q_OBJECT Q_OBJECT
public: public:
explicit MF_UID_parameterDialog(const QString& uid, const QString& atqa, const QString& sak, QWidget *parent = nullptr); explicit MF_UID_parameterDialog(const QString& uid, const QString& atqa, const QString& sak, const QVariantMap& config, QWidget *parent = nullptr);
~MF_UID_parameterDialog(); ~MF_UID_parameterDialog();
private: private:
Ui::MF_UID_parameterDialog *ui; Ui::MF_UID_parameterDialog *ui;
QVariantMap config;
signals: signals:
void sendCMD(const QString& cmd); void sendCMD(const QString& cmd);
private slots: private slots: