mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
make style
This commit is contained in:
parent
5cca8616cb
commit
182f239d21
7 changed files with 82 additions and 82 deletions
|
@ -2176,7 +2176,7 @@ void Mifare_DES_Auth2(uint32_t arg0, uint8_t *datain) {
|
||||||
|
|
||||||
//
|
//
|
||||||
// Tear-off attack against MFU.
|
// Tear-off attack against MFU.
|
||||||
// - Mobius et al
|
// - Moebius et al
|
||||||
void MifareU_Otp_Tearoff() {
|
void MifareU_Otp_Tearoff() {
|
||||||
|
|
||||||
// should the
|
// should the
|
||||||
|
|
|
@ -74,7 +74,7 @@ int AIDSearchFree(json_t *root) {
|
||||||
return closeAIDFile(root);
|
return closeAIDFile(root);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char * jsonStrGet(json_t *data, char *name) {
|
const char *jsonStrGet(json_t *data, char *name) {
|
||||||
json_t *jstr;
|
json_t *jstr;
|
||||||
|
|
||||||
jstr = json_object_get(data, name);
|
jstr = json_object_get(data, name);
|
||||||
|
|
|
@ -2753,9 +2753,9 @@ static int CmdHF14AMfUPwdGen(const char *Cmd) {
|
||||||
|
|
||||||
//
|
//
|
||||||
// MFU TearOff against OTP
|
// MFU TearOff against OTP
|
||||||
// Mobeius et al
|
// Moebius et al
|
||||||
//
|
//
|
||||||
static int CmdHF14AMfuOtpTearoff(const char *Cmd){
|
static int CmdHF14AMfuOtpTearoff(const char *Cmd) {
|
||||||
uint8_t cmdp = 0;
|
uint8_t cmdp = 0;
|
||||||
bool errors = 0;
|
bool errors = 0;
|
||||||
uint32_t len = strtol(Cmd, NULL, 0);
|
uint32_t len = strtol(Cmd, NULL, 0);
|
||||||
|
|
|
@ -121,7 +121,7 @@ static int CmdJablotronDemod(const char *Cmd) {
|
||||||
uint8_t chksum = raw2 & 0xFF;
|
uint8_t chksum = raw2 & 0xFF;
|
||||||
bool isok = (chksum == jablontron_chksum(DemodBuffer));
|
bool isok = (chksum == jablontron_chksum(DemodBuffer));
|
||||||
|
|
||||||
PrintAndLogEx( isok ? SUCCESS : INFO,
|
PrintAndLogEx(isok ? SUCCESS : INFO,
|
||||||
"Checksum: %02X [ %s]",
|
"Checksum: %02X [ %s]",
|
||||||
chksum,
|
chksum,
|
||||||
isok ? _GREEN_("OK") : _RED_("Fail")
|
isok ? _GREEN_("OK") : _RED_("Fail")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue