Skip to content

Commit

Permalink
#8 Added Pack And RFUI Bytes to Flipper NFC export
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIrata committed Feb 17, 2024
1 parent ed73ded commit 21cd6dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ASNC/Helper/FlipperNFCHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public static class FlipperNFCHelper
{
private const int TotalPages = 135; // 0 - 134
private const int PwdPage = 133;
private const int PackRfuiPage = 134;
private const int PageDataLength = 0x04;
private const int NfcLength = 0x21C;

Expand Down Expand Up @@ -60,6 +61,10 @@ public static string ToNfc(ReadOnlySpan<byte> encryptedBin)
{
pageBytes = pwdBytes;
}
else if (i == PackRfuiPage)
{
pageBytes = [0x80, 0x80, 0x00, 0x00];
}
var pageData = GetBytesAsStringFormated(pageBytes);
sb.AppendLine($"Page {i}: {pageData}"); // Common value
}
Expand Down

0 comments on commit 21cd6dd

Please sign in to comment.