added some helper functions
This commit is contained in:
1 parent
7320f0dd16
commit
bb5d61dca7
11 files changed
+111
-28
No files matched your search
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user