mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
minor textual changes from @marshmellow42
This commit is contained in:
parent
550a929a69
commit
1417a7f9d0
1 changed files with 5 additions and 5 deletions
|
@ -430,14 +430,14 @@ int CmdrevengSearch(const char *Cmd){
|
||||||
if (ans) {
|
if (ans) {
|
||||||
//test for match
|
//test for match
|
||||||
if (memcmp(result, inCRC, crcChars)==0){
|
if (memcmp(result, inCRC, crcChars)==0){
|
||||||
PrintAndLog("\nFound a match!\nModel: %s\nValue: %s\n",Models[i], result);
|
PrintAndLog("\nFound a possible match!\nModel: %s\nValue: %s\n",Models[i], result);
|
||||||
//optional - stop searching if found...
|
//optional - stop searching if found...
|
||||||
found = true;
|
found = true;
|
||||||
} else {
|
} else {
|
||||||
if (crcChars > 2){
|
if (crcChars > 2){
|
||||||
char *swapEndian = SwapEndianStr(result, crcChars, crcChars);
|
char *swapEndian = SwapEndianStr(result, crcChars, crcChars);
|
||||||
if (memcmp(swapEndian, inCRC, crcChars)==0){
|
if (memcmp(swapEndian, inCRC, crcChars)==0){
|
||||||
PrintAndLog("\nFound a match!\nModel: %s\nValue EndianSwapped: %s\n",Models[i], swapEndian);
|
PrintAndLog("\nFound a possible match!\nModel: %s\nValue EndianSwapped: %s\n",Models[i], swapEndian);
|
||||||
//optional - stop searching if found...
|
//optional - stop searching if found...
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
|
@ -451,14 +451,14 @@ int CmdrevengSearch(const char *Cmd){
|
||||||
if (ans) {
|
if (ans) {
|
||||||
//test for match
|
//test for match
|
||||||
if (memcmp(revResult, inCRC, crcChars)==0){
|
if (memcmp(revResult, inCRC, crcChars)==0){
|
||||||
PrintAndLog("\nFound a match!\nModel Reversed: %s\nValue: %s\n",Models[i], revResult);
|
PrintAndLog("\nFound a possible match!\nModel Reversed: %s\nValue: %s\n",Models[i], revResult);
|
||||||
//optional - stop searching if found...
|
//optional - stop searching if found...
|
||||||
found = true;
|
found = true;
|
||||||
} else {
|
} else {
|
||||||
if (crcChars > 2){
|
if (crcChars > 2){
|
||||||
char *swapEndian = SwapEndianStr(revResult, crcChars, crcChars);
|
char *swapEndian = SwapEndianStr(revResult, crcChars, crcChars);
|
||||||
if (memcmp(swapEndian, inCRC, crcChars)==0){
|
if (memcmp(swapEndian, inCRC, crcChars)==0){
|
||||||
PrintAndLog("\nFound a match!\nModel Reversed: %s\nValue EndianSwapped: %s\n",Models[i], swapEndian);
|
PrintAndLog("\nFound a possible match!\nModel Reversed: %s\nValue EndianSwapped: %s\n",Models[i], swapEndian);
|
||||||
//optional - stop searching if found...
|
//optional - stop searching if found...
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
|
@ -473,4 +473,4 @@ int CmdrevengSearch(const char *Cmd){
|
||||||
}
|
}
|
||||||
if (!found) PrintAndLog("\nNo matches found\n");
|
if (!found) PrintAndLog("\nNo matches found\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue