added some helper functions

This commit is contained in:
iceman1001 committed 2023-10-01 13:05:08 +02:00
1 parent 7320f0dd16
commit bb5d61dca7
11 files changed
+111 -28

No files matched your search

+2 -1
View File
@@ -60,13 +60,14 @@ bool IsCardHelperPresent(bool verbose) {
bool IsHIDSamPresent(bool verbose) {
if (IfPm3Smartcard() == false) {
PrintAndLogEx(WARNING, "Proxmark3 does not have SMARTCARD support enabled, exiting");
return false;
}
// detect SAM
smart_card_atr_t card;
smart_select(verbose, &card);
if (!card.atr_len) {
if (card.atr_len == 0) {
PrintAndLogEx(ERR, "Can't get ATR from a smart card");
return false;
}