commit
f732586473
191
MifareOneTool/Form1.Designer.cs
generated
191
MifareOneTool/Form1.Designer.cs
generated
@ -69,9 +69,7 @@
|
||||
this.buttonEUIDWrite = new System.Windows.Forms.Button();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.buttonEMfWrite = new System.Windows.Forms.Button();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.buttonECheckEncrypt = new System.Windows.Forms.Button();
|
||||
this.buttonEUpdate = new System.Windows.Forms.Button();
|
||||
this.buttoEScanCard = new System.Windows.Forms.Button();
|
||||
this.buttonEscan = new System.Windows.Forms.Button();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
@ -93,6 +91,15 @@
|
||||
this.toolStripCheckUpdate = new System.Windows.Forms.ToolStripSplitButton();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.checkBoxAutoABN = new System.Windows.Forms.CheckBox();
|
||||
this.buttonEReadUID = new System.Windows.Forms.Button();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.checkBoxWriteProtect = new System.Windows.Forms.CheckBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
@ -100,7 +107,6 @@
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.groupBox7.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.groupBox10.SuspendLayout();
|
||||
@ -175,7 +181,7 @@
|
||||
this.richTextBox1.Location = new System.Drawing.Point(0, 219);
|
||||
this.richTextBox1.Name = "richTextBox1";
|
||||
this.richTextBox1.ReadOnly = true;
|
||||
this.richTextBox1.Size = new System.Drawing.Size(767, 381);
|
||||
this.richTextBox1.Size = new System.Drawing.Size(767, 390);
|
||||
this.richTextBox1.TabIndex = 1;
|
||||
this.richTextBox1.Text = "Hello,cardman!\n建议点击\"检测\"以加快后续运行速度\n";
|
||||
//
|
||||
@ -459,6 +465,7 @@
|
||||
//
|
||||
// groupBox4
|
||||
//
|
||||
this.groupBox4.Controls.Add(this.checkBoxWriteProtect);
|
||||
this.groupBox4.Controls.Add(this.checkBoxAutoABN);
|
||||
this.groupBox4.Controls.Add(this.buttonDiffTool);
|
||||
this.groupBox4.Controls.Add(this.buttonHexTool);
|
||||
@ -481,10 +488,19 @@
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.label8);
|
||||
this.tabPage2.Controls.Add(this.label7);
|
||||
this.tabPage2.Controls.Add(this.label6);
|
||||
this.tabPage2.Controls.Add(this.label4);
|
||||
this.tabPage2.Controls.Add(this.label3);
|
||||
this.tabPage2.Controls.Add(this.label2);
|
||||
this.tabPage2.Controls.Add(this.buttonECheckEncrypt);
|
||||
this.tabPage2.Controls.Add(this.buttonEAdv);
|
||||
this.tabPage2.Controls.Add(this.buttoEScanCard);
|
||||
this.tabPage2.Controls.Add(this.groupBox7);
|
||||
this.tabPage2.Controls.Add(this.groupBox6);
|
||||
this.tabPage2.Controls.Add(this.buttonEscan);
|
||||
this.tabPage2.Controls.Add(this.groupBox5);
|
||||
this.tabPage2.Controls.Add(this.label5);
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
@ -495,9 +511,9 @@
|
||||
//
|
||||
// buttonEAdv
|
||||
//
|
||||
this.buttonEAdv.Location = new System.Drawing.Point(408, 16);
|
||||
this.buttonEAdv.Location = new System.Drawing.Point(574, 6);
|
||||
this.buttonEAdv.Name = "buttonEAdv";
|
||||
this.buttonEAdv.Size = new System.Drawing.Size(218, 40);
|
||||
this.buttonEAdv.Size = new System.Drawing.Size(177, 40);
|
||||
this.buttonEAdv.TabIndex = 4;
|
||||
this.buttonEAdv.Text = "点此进入高级模式>>>";
|
||||
this.buttonEAdv.UseVisualStyleBackColor = true;
|
||||
@ -509,7 +525,7 @@
|
||||
this.groupBox7.Controls.Add(this.buttonEUIDWrite);
|
||||
this.groupBox7.Controls.Add(this.button4);
|
||||
this.groupBox7.Controls.Add(this.buttonEMfWrite);
|
||||
this.groupBox7.Location = new System.Drawing.Point(274, 6);
|
||||
this.groupBox7.Location = new System.Drawing.Point(440, 6);
|
||||
this.groupBox7.Name = "groupBox7";
|
||||
this.groupBox7.Size = new System.Drawing.Size(128, 171);
|
||||
this.groupBox7.TabIndex = 3;
|
||||
@ -534,6 +550,7 @@
|
||||
this.buttonEUIDWrite.TabIndex = 2;
|
||||
this.buttonEUIDWrite.Text = "写(UF)UID卡";
|
||||
this.buttonEUIDWrite.UseVisualStyleBackColor = true;
|
||||
this.buttonEUIDWrite.Click += new System.EventHandler(this.buttonEUIDWrite_Click);
|
||||
//
|
||||
// button4
|
||||
//
|
||||
@ -555,66 +572,44 @@
|
||||
this.buttonEMfWrite.UseVisualStyleBackColor = true;
|
||||
this.buttonEMfWrite.Click += new System.EventHandler(this.buttonEMfWrite_Click);
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.buttonECheckEncrypt);
|
||||
this.groupBox6.Controls.Add(this.buttonEUpdate);
|
||||
this.groupBox6.Controls.Add(this.buttoEScanCard);
|
||||
this.groupBox6.Controls.Add(this.buttonEscan);
|
||||
this.groupBox6.Location = new System.Drawing.Point(6, 6);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(128, 171);
|
||||
this.groupBox6.TabIndex = 3;
|
||||
this.groupBox6.TabStop = false;
|
||||
this.groupBox6.Text = "[1]检测";
|
||||
//
|
||||
// buttonECheckEncrypt
|
||||
//
|
||||
this.buttonECheckEncrypt.Location = new System.Drawing.Point(6, 87);
|
||||
this.buttonECheckEncrypt.Location = new System.Drawing.Point(123, 55);
|
||||
this.buttonECheckEncrypt.Name = "buttonECheckEncrypt";
|
||||
this.buttonECheckEncrypt.Size = new System.Drawing.Size(116, 25);
|
||||
this.buttonECheckEncrypt.Size = new System.Drawing.Size(85, 25);
|
||||
this.buttonECheckEncrypt.TabIndex = 5;
|
||||
this.buttonECheckEncrypt.Text = "[3]检测加密";
|
||||
this.buttonECheckEncrypt.Text = "检测加密";
|
||||
this.buttonECheckEncrypt.UseVisualStyleBackColor = true;
|
||||
this.buttonECheckEncrypt.Click += new System.EventHandler(this.buttonECheckEncrypt_Click);
|
||||
//
|
||||
// buttonEUpdate
|
||||
//
|
||||
this.buttonEUpdate.Location = new System.Drawing.Point(6, 140);
|
||||
this.buttonEUpdate.Name = "buttonEUpdate";
|
||||
this.buttonEUpdate.Size = new System.Drawing.Size(116, 25);
|
||||
this.buttonEUpdate.TabIndex = 4;
|
||||
this.buttonEUpdate.Text = "检查M1T更新";
|
||||
this.buttonEUpdate.UseVisualStyleBackColor = true;
|
||||
this.buttonEUpdate.Click += new System.EventHandler(this.buttonEUpdate_Click);
|
||||
//
|
||||
// buttoEScanCard
|
||||
//
|
||||
this.buttoEScanCard.Location = new System.Drawing.Point(6, 56);
|
||||
this.buttoEScanCard.Location = new System.Drawing.Point(123, 24);
|
||||
this.buttoEScanCard.Name = "buttoEScanCard";
|
||||
this.buttoEScanCard.Size = new System.Drawing.Size(116, 25);
|
||||
this.buttoEScanCard.Size = new System.Drawing.Size(85, 25);
|
||||
this.buttoEScanCard.TabIndex = 1;
|
||||
this.buttoEScanCard.Text = "[2]扫描卡片";
|
||||
this.buttoEScanCard.Text = "扫描卡片";
|
||||
this.buttoEScanCard.UseVisualStyleBackColor = true;
|
||||
this.buttoEScanCard.Click += new System.EventHandler(this.buttoEScanCard_Click);
|
||||
//
|
||||
// buttonEscan
|
||||
//
|
||||
this.buttonEscan.Location = new System.Drawing.Point(6, 25);
|
||||
this.buttonEscan.Location = new System.Drawing.Point(8, 24);
|
||||
this.buttonEscan.Name = "buttonEscan";
|
||||
this.buttonEscan.Size = new System.Drawing.Size(116, 25);
|
||||
this.buttonEscan.Size = new System.Drawing.Size(85, 25);
|
||||
this.buttonEscan.TabIndex = 0;
|
||||
this.buttonEscan.Text = "[1]检测连接";
|
||||
this.buttonEscan.Text = "检测连接";
|
||||
this.buttonEscan.UseVisualStyleBackColor = true;
|
||||
this.buttonEscan.Click += new System.EventHandler(this.buttonEscan_Click);
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.buttonEReadUID);
|
||||
this.groupBox5.Controls.Add(this.buttonESelectKey);
|
||||
this.groupBox5.Controls.Add(this.buttonECmfoc);
|
||||
this.groupBox5.Controls.Add(this.buttonEMfRead);
|
||||
this.groupBox5.Controls.Add(this.buttonEMfoc);
|
||||
this.groupBox5.Location = new System.Drawing.Point(140, 6);
|
||||
this.groupBox5.Location = new System.Drawing.Point(253, 6);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(128, 171);
|
||||
this.groupBox5.TabIndex = 0;
|
||||
@ -653,11 +648,11 @@
|
||||
//
|
||||
// buttonEMfoc
|
||||
//
|
||||
this.buttonEMfoc.Location = new System.Drawing.Point(6, 25);
|
||||
this.buttonEMfoc.Location = new System.Drawing.Point(6, 18);
|
||||
this.buttonEMfoc.Name = "buttonEMfoc";
|
||||
this.buttonEMfoc.Size = new System.Drawing.Size(116, 25);
|
||||
this.buttonEMfoc.TabIndex = 0;
|
||||
this.buttonEMfoc.Text = "[1]半加密破解";
|
||||
this.buttonEMfoc.Text = "一键解原卡";
|
||||
this.buttonEMfoc.UseVisualStyleBackColor = true;
|
||||
this.buttonEMfoc.Click += new System.EventHandler(this.buttonEMfoc_Click);
|
||||
//
|
||||
@ -695,13 +690,13 @@
|
||||
//
|
||||
// buttonHardNested
|
||||
//
|
||||
this.buttonHardNested.Enabled = false;
|
||||
this.buttonHardNested.Location = new System.Drawing.Point(178, 51);
|
||||
this.buttonHardNested.Name = "buttonHardNested";
|
||||
this.buttonHardNested.Size = new System.Drawing.Size(104, 25);
|
||||
this.buttonHardNested.TabIndex = 14;
|
||||
this.buttonHardNested.Text = "HardNested";
|
||||
this.buttonHardNested.UseVisualStyleBackColor = true;
|
||||
this.buttonHardNested.Click += new System.EventHandler(this.buttonHardNested_Click);
|
||||
//
|
||||
// groupBox9
|
||||
//
|
||||
@ -747,7 +742,7 @@
|
||||
this.localVersionLabel,
|
||||
this.remoteVersionLabel,
|
||||
this.toolStripCheckUpdate});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 603);
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 609);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(767, 26);
|
||||
this.statusStrip1.TabIndex = 12;
|
||||
@ -809,15 +804,106 @@
|
||||
this.checkBoxAutoABN.UseVisualStyleBackColor = true;
|
||||
this.checkBoxAutoABN.CheckedChanged += new System.EventHandler(this.checkBoxAutoABN_CheckedChanged);
|
||||
//
|
||||
// buttonEReadUID
|
||||
//
|
||||
this.buttonEReadUID.Location = new System.Drawing.Point(6, 49);
|
||||
this.buttonEReadUID.Name = "buttonEReadUID";
|
||||
this.buttonEReadUID.Size = new System.Drawing.Size(116, 25);
|
||||
this.buttonEReadUID.TabIndex = 3;
|
||||
this.buttonEReadUID.Text = "从UID卡读回";
|
||||
this.buttonEReadUID.UseVisualStyleBackColor = true;
|
||||
this.buttonEReadUID.Click += new System.EventHandler(this.buttonEReadUID_Click);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(97, 29);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(23, 15);
|
||||
this.label2.TabIndex = 6;
|
||||
this.label2.Text = ">>";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(214, 29);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(31, 15);
|
||||
this.label3.TabIndex = 7;
|
||||
this.label3.Text = ">>>";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(387, 41);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(47, 15);
|
||||
this.label4.TabIndex = 8;
|
||||
this.label4.Text = ">>>>>";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.ForeColor = System.Drawing.Color.Blue;
|
||||
this.label5.Location = new System.Drawing.Point(8, 6);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(232, 165);
|
||||
this.label5.TabIndex = 9;
|
||||
this.label5.Text = "从这里开始\r\n\r\n\r\n\r\n\r\n\r\n\r\n本工具仅支持SAK=08/18/28的\r\n卡片复制。\r\n若要复制S70卡片,请在高级界\r\n面上取消勾选“数据写入保护”。\r\n" +
|
||||
"";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(574, 101);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(159, 15);
|
||||
this.label6.TabIndex = 10;
|
||||
this.label6.Text = ">>> 尝试一下是否成功";
|
||||
//
|
||||
// checkBoxWriteProtect
|
||||
//
|
||||
this.checkBoxWriteProtect.AutoSize = true;
|
||||
this.checkBoxWriteProtect.Checked = true;
|
||||
this.checkBoxWriteProtect.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.checkBoxWriteProtect.Location = new System.Drawing.Point(120, 55);
|
||||
this.checkBoxWriteProtect.Name = "checkBoxWriteProtect";
|
||||
this.checkBoxWriteProtect.Size = new System.Drawing.Size(165, 19);
|
||||
this.checkBoxWriteProtect.TabIndex = 11;
|
||||
this.checkBoxWriteProtect.Text = "数据写入保护(建议)";
|
||||
this.checkBoxWriteProtect.UseVisualStyleBackColor = true;
|
||||
this.checkBoxWriteProtect.CheckedChanged += new System.EventHandler(this.checkBoxWriteProtect_CheckedChanged);
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.ForeColor = System.Drawing.Color.Green;
|
||||
this.label7.Location = new System.Drawing.Point(84, 50);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(37, 30);
|
||||
this.label7.TabIndex = 11;
|
||||
this.label7.Text = "请放\r\n原卡";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.ForeColor = System.Drawing.Color.Green;
|
||||
this.label8.Location = new System.Drawing.Point(392, 9);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(37, 30);
|
||||
this.label8.TabIndex = 12;
|
||||
this.label8.Text = "请放\r\n新卡";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(767, 629);
|
||||
this.ClientSize = new System.Drawing.Size(767, 635);
|
||||
this.Controls.Add(this.statusStrip1);
|
||||
this.Controls.Add(this.tabControl1);
|
||||
this.Controls.Add(this.richTextBox1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "Form1";
|
||||
this.Text = "MifareOne Tool";
|
||||
@ -829,8 +915,8 @@
|
||||
this.groupBox4.PerformLayout();
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.tabPage2.PerformLayout();
|
||||
this.groupBox7.ResumeLayout(false);
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.groupBox10.ResumeLayout(false);
|
||||
@ -880,11 +966,9 @@
|
||||
private System.Windows.Forms.Button buttonECmfoc;
|
||||
private System.Windows.Forms.Button buttonEMfRead;
|
||||
private System.Windows.Forms.Button buttonEMfoc;
|
||||
private System.Windows.Forms.GroupBox groupBox6;
|
||||
private System.Windows.Forms.Button buttonEscan;
|
||||
private System.Windows.Forms.Button buttoEScanCard;
|
||||
private System.Windows.Forms.Button buttonESelectKey;
|
||||
private System.Windows.Forms.Button buttonEUpdate;
|
||||
private System.Windows.Forms.GroupBox groupBox7;
|
||||
private System.Windows.Forms.Button buttonECuidWrite;
|
||||
private System.Windows.Forms.Button buttonEUIDWrite;
|
||||
@ -909,6 +993,15 @@
|
||||
private System.Windows.Forms.Button buttonnKeysMfoc;
|
||||
private System.Windows.Forms.Button buttonSniffDev;
|
||||
private System.Windows.Forms.CheckBox checkBoxAutoABN;
|
||||
private System.Windows.Forms.Button buttonEReadUID;
|
||||
private System.Windows.Forms.CheckBox checkBoxWriteProtect;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label label7;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -118,6 +118,7 @@ namespace MifareOneTool
|
||||
//ghu.Update(Properties.Settings.Default.GitHubR);
|
||||
//remoteVersionLabel.Text = "远程版本 " + ghu.remoteVersion;
|
||||
checkBoxAutoABN.Checked = Properties.Settings.Default.AutoABN;
|
||||
checkBoxWriteProtect.Checked = Properties.Settings.Default.WriteCheck;
|
||||
}
|
||||
|
||||
private void buttonScanCard_Click(object sender, EventArgs e)
|
||||
@ -251,6 +252,8 @@ namespace MifareOneTool
|
||||
|
||||
bool writecheck(string file)
|
||||
{
|
||||
if (checkBoxWriteProtect.Checked == false)
|
||||
{ return true; }//如果禁用,直接假装检查成功
|
||||
S50 card = new S50();
|
||||
try
|
||||
{
|
||||
@ -1095,5 +1098,67 @@ namespace MifareOneTool
|
||||
{
|
||||
Properties.Settings.Default.AutoABN = checkBoxAutoABN.Checked;
|
||||
}
|
||||
|
||||
private void buttonEUIDWrite_Click(object sender, EventArgs e)
|
||||
{
|
||||
buttonBmfWrite_Click(sender, e);
|
||||
}
|
||||
|
||||
private void buttonEReadUID_Click(object sender, EventArgs e)
|
||||
{
|
||||
buttonBmfRead_Click(sender, e);
|
||||
}
|
||||
|
||||
private void checkBoxWriteProtect_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.WriteCheck = checkBoxWriteProtect.Checked;
|
||||
}
|
||||
|
||||
private void buttonHardNested_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (lprocess) { MessageBox.Show("有任务运行中,不可执行。", "设备忙", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } Form1.ActiveForm.Text = "MifareOne Tool - 运行中";
|
||||
FormHardNes fhn = new FormHardNes();
|
||||
if (fhn.ShowDialog() == DialogResult.Yes)
|
||||
{
|
||||
string hardargs = fhn.GetArg();
|
||||
BackgroundWorker bgw = new BackgroundWorker();
|
||||
bgw.DoWork += new DoWorkEventHandler(Hardnest);
|
||||
bgw.WorkerReportsProgress = true;
|
||||
bgw.ProgressChanged += new ProgressChangedEventHandler(default_rpt);
|
||||
bgw.RunWorkerAsync(hardargs);
|
||||
}
|
||||
else
|
||||
{
|
||||
Text = "MifareOne Tool - 已取消";
|
||||
}
|
||||
}
|
||||
void Hardnest(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
if (lprocess) { return; }
|
||||
ProcessStartInfo psi = new ProcessStartInfo("nfc-bin/libnfc_hardnested.exe");
|
||||
psi.Arguments = (string)e.Argument;
|
||||
psi.CreateNoWindow = true;
|
||||
psi.UseShellExecute = false;
|
||||
psi.RedirectStandardOutput = true;
|
||||
psi.RedirectStandardError = true;
|
||||
lprocess = true;
|
||||
BackgroundWorker b = (BackgroundWorker)sender;
|
||||
process = Process.Start(psi); running = true;
|
||||
process.OutputDataReceived += (s, _e) => b.ReportProgress(0, _e.Data);
|
||||
process.ErrorDataReceived += (s, _e) => b.ReportProgress(0, _e.Data);
|
||||
//StreamReader stderr = process.StandardError;
|
||||
process.BeginOutputReadLine();
|
||||
process.BeginErrorReadLine();
|
||||
process.WaitForExit();
|
||||
lprocess = false; running = false;
|
||||
if (process.ExitCode == 0)
|
||||
{
|
||||
b.ReportProgress(100, "##运行完毕##");
|
||||
}
|
||||
else
|
||||
{
|
||||
b.ReportProgress(100, "##运行出错##");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
273
MifareOneTool/FormHardNes.Designer.cs
generated
Normal file
273
MifareOneTool/FormHardNes.Designer.cs
generated
Normal file
@ -0,0 +1,273 @@
|
||||
namespace MifareOneTool
|
||||
{
|
||||
partial class FormHardNes
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.keyEdit = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.radioKey1A = new System.Windows.Forms.RadioButton();
|
||||
this.radioKey1B = new System.Windows.Forms.RadioButton();
|
||||
this.radioKey2B = new System.Windows.Forms.RadioButton();
|
||||
this.radioKey2A = new System.Windows.Forms.RadioButton();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.sector2 = new System.Windows.Forms.TextBox();
|
||||
this.sector1 = new System.Windows.Forms.TextBox();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(308, 187);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 25);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "解密!";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.button2.Location = new System.Drawing.Point(227, 187);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(75, 25);
|
||||
this.button2.TabIndex = 1;
|
||||
this.button2.Text = "取消";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.radioKey1B);
|
||||
this.groupBox1.Controls.Add(this.radioKey1A);
|
||||
this.groupBox1.Controls.Add(this.label4);
|
||||
this.groupBox1.Controls.Add(this.label3);
|
||||
this.groupBox1.Controls.Add(this.sector1);
|
||||
this.groupBox1.Controls.Add(this.keyEdit);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
this.groupBox1.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(371, 81);
|
||||
this.groupBox1.TabIndex = 2;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "目标卡信息";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.ForeColor = System.Drawing.Color.Blue;
|
||||
this.label1.Location = new System.Drawing.Point(12, 192);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(202, 15);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "解密时请保证设备良好散热!";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(6, 21);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(76, 15);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "已知的Key";
|
||||
//
|
||||
// keyEdit
|
||||
//
|
||||
this.keyEdit.Location = new System.Drawing.Point(9, 39);
|
||||
this.keyEdit.Name = "keyEdit";
|
||||
this.keyEdit.Size = new System.Drawing.Size(120, 25);
|
||||
this.keyEdit.TabIndex = 10;
|
||||
this.keyEdit.Text = "ffffffffffff";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(132, 21);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(52, 15);
|
||||
this.label3.TabIndex = 12;
|
||||
this.label3.Text = "扇区号";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(190, 21);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(37, 15);
|
||||
this.label4.TabIndex = 13;
|
||||
this.label4.Text = "类型";
|
||||
//
|
||||
// radioKey1A
|
||||
//
|
||||
this.radioKey1A.AutoSize = true;
|
||||
this.radioKey1A.Checked = true;
|
||||
this.radioKey1A.Location = new System.Drawing.Point(193, 40);
|
||||
this.radioKey1A.Name = "radioKey1A";
|
||||
this.radioKey1A.Size = new System.Drawing.Size(60, 19);
|
||||
this.radioKey1A.TabIndex = 14;
|
||||
this.radioKey1A.TabStop = true;
|
||||
this.radioKey1A.Text = "KeyA";
|
||||
this.radioKey1A.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radioKey1B
|
||||
//
|
||||
this.radioKey1B.AutoSize = true;
|
||||
this.radioKey1B.Location = new System.Drawing.Point(259, 40);
|
||||
this.radioKey1B.Name = "radioKey1B";
|
||||
this.radioKey1B.Size = new System.Drawing.Size(60, 19);
|
||||
this.radioKey1B.TabIndex = 15;
|
||||
this.radioKey1B.Text = "KeyB";
|
||||
this.radioKey1B.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radioKey2B
|
||||
//
|
||||
this.radioKey2B.AutoSize = true;
|
||||
this.radioKey2B.Location = new System.Drawing.Point(259, 40);
|
||||
this.radioKey2B.Name = "radioKey2B";
|
||||
this.radioKey2B.Size = new System.Drawing.Size(60, 19);
|
||||
this.radioKey2B.TabIndex = 15;
|
||||
this.radioKey2B.Text = "KeyB";
|
||||
this.radioKey2B.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radioKey2A
|
||||
//
|
||||
this.radioKey2A.AutoSize = true;
|
||||
this.radioKey2A.Checked = true;
|
||||
this.radioKey2A.Location = new System.Drawing.Point(193, 40);
|
||||
this.radioKey2A.Name = "radioKey2A";
|
||||
this.radioKey2A.Size = new System.Drawing.Size(60, 19);
|
||||
this.radioKey2A.TabIndex = 14;
|
||||
this.radioKey2A.TabStop = true;
|
||||
this.radioKey2A.Text = "KeyA";
|
||||
this.radioKey2A.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(190, 21);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(37, 15);
|
||||
this.label5.TabIndex = 13;
|
||||
this.label5.Text = "类型";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(132, 21);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(52, 15);
|
||||
this.label6.TabIndex = 12;
|
||||
this.label6.Text = "扇区号";
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.radioKey2B);
|
||||
this.groupBox2.Controls.Add(this.radioKey2A);
|
||||
this.groupBox2.Controls.Add(this.label5);
|
||||
this.groupBox2.Controls.Add(this.label6);
|
||||
this.groupBox2.Controls.Add(this.sector2);
|
||||
this.groupBox2.Location = new System.Drawing.Point(12, 99);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(371, 81);
|
||||
this.groupBox2.TabIndex = 16;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "解密设置";
|
||||
//
|
||||
// sector2
|
||||
//
|
||||
this.sector2.Location = new System.Drawing.Point(135, 39);
|
||||
this.sector2.Name = "sector2";
|
||||
this.sector2.Size = new System.Drawing.Size(46, 25);
|
||||
this.sector2.TabIndex = 11;
|
||||
this.sector2.Text = "1";
|
||||
//
|
||||
// sector1
|
||||
//
|
||||
this.sector1.Location = new System.Drawing.Point(135, 39);
|
||||
this.sector1.Name = "sector1";
|
||||
this.sector1.Size = new System.Drawing.Size(46, 25);
|
||||
this.sector1.TabIndex = 11;
|
||||
this.sector1.Text = "0";
|
||||
//
|
||||
// FormHardNes
|
||||
//
|
||||
this.AcceptButton = this.button1;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CancelButton = this.button2;
|
||||
this.ClientSize = new System.Drawing.Size(395, 224);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.KeyPreview = true;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FormHardNes";
|
||||
this.Text = "初始化HardNested解密";
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.RadioButton radioKey1B;
|
||||
private System.Windows.Forms.RadioButton radioKey1A;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TextBox keyEdit;
|
||||
private System.Windows.Forms.RadioButton radioKey2B;
|
||||
private System.Windows.Forms.RadioButton radioKey2A;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.TextBox sector2;
|
||||
private System.Windows.Forms.TextBox sector1;
|
||||
}
|
||||
}
|
||||
111
MifareOneTool/FormHardNes.cs
Normal file
111
MifareOneTool/FormHardNes.cs
Normal file
@ -0,0 +1,111 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace MifareOneTool
|
||||
{
|
||||
public partial class FormHardNes : Form
|
||||
{
|
||||
public FormHardNes()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
static int getBlock(int sector)
|
||||
{//可能有bug
|
||||
int trailer_block = 0;
|
||||
if (sector < 32)
|
||||
{
|
||||
trailer_block = sector*4 + 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
trailer_block = 128+16*(sector-32) + 15;
|
||||
}
|
||||
return trailer_block;
|
||||
}
|
||||
|
||||
public string GetArg()
|
||||
{
|
||||
string arg = "";
|
||||
arg += keyEdit.Text.ToUpper() + " ";
|
||||
arg += getBlock(Convert.ToInt32(sector1.Text.Trim())).ToString() + " ";
|
||||
arg += (radioKey1A.Checked ?"A":"B") + " ";
|
||||
arg += getBlock(Convert.ToInt32(sector2.Text.Trim())).ToString() + " ";
|
||||
arg += radioKey2A.Checked ? "A" : "B";
|
||||
return arg;
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool error = false;
|
||||
const string pattern = @"[0-9A-Fa-f]{12}";
|
||||
TextBox tb = keyEdit;
|
||||
string content = tb.Text.Trim();
|
||||
if (!(Regex.IsMatch(content, pattern) && content.Length == 12))
|
||||
{
|
||||
tb.BackColor = Color.Tomato;
|
||||
error = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
tb.BackColor = Color.Aquamarine;
|
||||
tb.Text = content;
|
||||
}
|
||||
int sec1, sec2;
|
||||
if (!int.TryParse(sector1.Text, out sec1))
|
||||
{
|
||||
sector1.BackColor = Color.Tomato;
|
||||
error = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sec1 >= 0)
|
||||
{
|
||||
sector1.BackColor = Color.Aquamarine;
|
||||
}
|
||||
else
|
||||
{
|
||||
sector1.BackColor = Color.Tomato;
|
||||
error = true;
|
||||
}
|
||||
}
|
||||
if (!int.TryParse(sector2.Text, out sec2))
|
||||
{
|
||||
sector2.BackColor = Color.Tomato;
|
||||
error = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sec2 >= 0)
|
||||
{
|
||||
sector2.BackColor = Color.Aquamarine;
|
||||
}
|
||||
else
|
||||
{
|
||||
sector2.BackColor = Color.Tomato;
|
||||
error = true;
|
||||
}
|
||||
}
|
||||
if (error)
|
||||
{
|
||||
MessageBox.Show("设置错误,请修改。");
|
||||
return;
|
||||
}
|
||||
this.DialogResult = DialogResult.Yes;
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
120
MifareOneTool/FormHardNes.resx
Normal file
120
MifareOneTool/FormHardNes.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@ -49,6 +49,9 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>nfc_128.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualBasic" />
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
@ -80,6 +83,12 @@
|
||||
<Compile Include="FormDiff.Designer.cs">
|
||||
<DependentUpon>FormDiff.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormHardNes.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormHardNes.Designer.cs">
|
||||
<DependentUpon>FormHardNes.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormHTool.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@ -95,6 +104,9 @@
|
||||
<EmbeddedResource Include="FormDiff.resx">
|
||||
<DependentUpon>FormDiff.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormHardNes.resx">
|
||||
<DependentUpon>FormHardNes.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormHTool.resx">
|
||||
<DependentUpon>FormHTool.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@ -140,6 +152,9 @@
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="nfc_128.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.6.1.0")]
|
||||
[assembly: AssemblyFileVersion("1.6.1.0")]
|
||||
[assembly: AssemblyVersion("1.6.2.0")]
|
||||
[assembly: AssemblyFileVersion("1.6.2.0")]
|
||||
|
||||
12
MifareOneTool/Properties/Settings.Designer.cs
generated
12
MifareOneTool/Properties/Settings.Designer.cs
generated
@ -43,5 +43,17 @@ namespace MifareOneTool.Properties {
|
||||
this["AutoABN"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
public bool WriteCheck {
|
||||
get {
|
||||
return ((bool)(this["WriteCheck"]));
|
||||
}
|
||||
set {
|
||||
this["WriteCheck"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,5 +8,8 @@
|
||||
<Setting Name="AutoABN" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="WriteCheck" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
@ -20,6 +20,9 @@
|
||||
<setting name="AutoABN" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="WriteCheck" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
</MifareOneTool.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
BIN
MifareOneTool/nfc_128.ico
Normal file
BIN
MifareOneTool/nfc_128.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Loading…
Reference in New Issue
Block a user