This commit is contained in:
XAS-712 2019-01-30 17:47:18 +08:00
parent 2da4a3367b
commit 92ec712126
2 changed files with 17 additions and 24 deletions

View File

@ -1,11 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MifareOneTool
{
class ClassMfClassic
{
}
}

View File

@ -94,7 +94,7 @@ namespace MifareOneTool
if (File.Exists(fa) && File.Exists(fb)) if (File.Exists(fa) && File.Exists(fb))
{ {
richTextBox1.Clear(); richTextBox1.Clear();
richTextBox1.Text=Compare(); richTextBox1.Text = Compare();
} }
else else
{ {
@ -111,21 +111,25 @@ namespace MifareOneTool
stb.AppendLine("扇区 " + i.ToString()); stb.AppendLine("扇区 " + i.ToString());
for (int a = 0; a < 4; a++) for (int a = 0; a < 4; a++)
{ {
string res=""; string res = "";
for(int b=0;b<16;b++){ for (int b = 0; b < 16; b++)
if(sa.Sectors[i].Block[a][b]==sb.Sectors[i].Block[a][b]){ {
res+="-- "; if (sa.Sectors[i].Block[a][b] == sb.Sectors[i].Block[a][b])
}else{ {
res+="## "; res += "-- ";
}
else
{
res += "## ";
} }
} }
stb.AppendLine("A: " + Utils.Hex2StrWithSpan(sa.Sectors[i].Block[a])); stb.AppendLine("A: " + Utils.Hex2StrWithSpan(sa.Sectors[i].Block[a]));
stb.AppendLine("B: " + Utils.Hex2StrWithSpan(sb.Sectors[i].Block[a])); stb.AppendLine("B: " + Utils.Hex2StrWithSpan(sb.Sectors[i].Block[a]));
stb.AppendLine(" " + res); stb.AppendLine(" " + res);
if(res.Contains("##")) if (res.Contains("##"))
{ {
diffCount++; diffCount++;
} }
} }
} }