mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 03:48:33 +08:00
FIX: downloaded a fresh clone from my fork, and took away the build-errors.
This commit is contained in:
parent
d3a22c7dfa
commit
0452ec6c90
2 changed files with 6 additions and 5 deletions
|
@ -54,7 +54,7 @@ int CmdHFEPACollectPACENonces(const char *Cmd)
|
|||
size_t nonce_length = resp.arg[1];
|
||||
char *nonce = (char *) malloc(2 * nonce_length + 1);
|
||||
for(int j = 0; j < nonce_length; j++) {
|
||||
snprintf(nonce + (2 * j), "%02X", resp.d.asBytes[j]);
|
||||
sprintf(nonce + (2 * j), "%02X", resp.d.asBytes[j]);
|
||||
}
|
||||
// print nonce
|
||||
PrintAndLog("Length: %d, Nonce: %s", nonce_length, nonce);
|
||||
|
|
|
@ -57,11 +57,12 @@ int CmdClone(const char *Cmd)
|
|||
// convert 96 bit AWID FSK data to 8 digit BCD UID
|
||||
bool awid26_hex_to_uid(unsigned char *response, char *awid26)
|
||||
{
|
||||
uint8_t i, tmp[96], tmp1[7];
|
||||
int site;
|
||||
int id;
|
||||
//uint8_t i, tmp[96], tmp1[7];
|
||||
//uint8_t tmp[96] = {0x00};
|
||||
//int site;
|
||||
//int id;
|
||||
|
||||
if(!hextobinarray(tmp, awid26))
|
||||
//if(!hextobinarray(tmp, awid26))
|
||||
return false;
|
||||
|
||||
// // data is in blocks of 4 bits - every 4th bit is parity, except the first
|
||||
|
|
Loading…
Add table
Reference in a new issue