Show more information when running card info

master
wh201906 1 year ago
parent b9da3e9209
commit d466e5536b
No known key found for this signature in database

@ -48,7 +48,8 @@
"key B index": 4 "key B index": 4
}, },
"info": { "info": {
"cmd": "hf 14a info" "cmd": "hf 14a info -nsv",
"basic cmd": "hf 14a info"
}, },
"sniff": { "sniff": {
"cmd": "hf sniff" "cmd": "hf sniff"

@ -48,7 +48,8 @@
"key B index": 4 "key B index": 4
}, },
"info": { "info": {
"cmd": "hf 14a info" "cmd": "hf 14a info -nsv",
"basic cmd": "hf 14a info"
}, },
"sniff": { "sniff": {
"cmd": "hf sniff" "cmd": "hf sniff"

@ -48,7 +48,8 @@
"key B index": 4 "key B index": 4
}, },
"info": { "info": {
"cmd": "hf 14a info -nsv" "cmd": "hf 14a info -nsv",
"basic cmd": "hf 14a info"
}, },
"sniff": { "sniff": {
"cmd": "hf sniff" "cmd": "hf sniff"

@ -102,7 +102,12 @@ QMap<QString, QString> Mifare::info(bool isRequiringOutput)
QVariantMap config = configMap["info"].toMap(); QVariantMap config = configMap["info"].toMap();
if(isRequiringOutput) if(isRequiringOutput)
{ {
QString result = util->execCMDWithOutput(config["cmd"].toString(), 500); QString cmd = config["basic cmd"].toString();
// for official client
if(cmd.isEmpty())
cmd = config["cmd"].toString();
QString result = util->execCMDWithOutput(cmd, 500);
QStringList lineList = result.split("\n"); QStringList lineList = result.split("\n");
for(auto line = lineList.begin(); line != lineList.end(); line++) for(auto line = lineList.begin(); line != lineList.end(); line++)

Loading…
Cancel
Save