diff --git a/Navicat_Keygen_Patch_By_DFoX/BouncyCastle.Crypto.dll b/Navicat_Keygen_Patch_By_DFoX/BouncyCastle.Crypto.dll index ef5a5bb..05036dd 100644 Binary files a/Navicat_Keygen_Patch_By_DFoX/BouncyCastle.Crypto.dll and b/Navicat_Keygen_Patch_By_DFoX/BouncyCastle.Crypto.dll differ diff --git a/Navicat_Keygen_Patch_By_DFoX/NC.Designer.cs b/Navicat_Keygen_Patch_By_DFoX/NC.Designer.cs index d8ff791..3791eb1 100644 --- a/Navicat_Keygen_Patch_By_DFoX/NC.Designer.cs +++ b/Navicat_Keygen_Patch_By_DFoX/NC.Designer.cs @@ -794,7 +794,7 @@ this.MinimumSize = new System.Drawing.Size(594, 621); this.Name = "FNavicat"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Navicat Products - Patch/Keygen v4.5"; + this.Text = "Navicat Products - Patch/Keygen v4.6"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FNavicat_FormClosing); this.Load += new System.EventHandler(this.NC_Load); this.g1.ResumeLayout(false); diff --git a/Navicat_Keygen_Patch_By_DFoX/NC.cs b/Navicat_Keygen_Patch_By_DFoX/NC.cs index 84e500d..9d2bc21 100644 --- a/Navicat_Keygen_Patch_By_DFoX/NC.cs +++ b/Navicat_Keygen_Patch_By_DFoX/NC.cs @@ -481,7 +481,7 @@ namespace Navicat_Keygen_Patch_By_DFoX string npk = dirtmp + "RegPrivateKey.pem"; if (!File.Exists(npk)) { - MessageBox.Show("Repatch App for Generate Correct Rsa public Key..", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + MessageBox.Show("Re-Patch App for Generate Correct Rsa Public Key..", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } byte[] decrypt64rq = null; @@ -926,6 +926,16 @@ namespace Navicat_Keygen_Patch_By_DFoX Thread.Sleep(200); return; } + private void tp() + { + Process[] np64 = Process.GetProcessesByName("NP_x64"); + Process[] np32 = Process.GetProcessesByName("NP_x32"); + if (np64.Length > 0) + terminaProcesso(np64); + if (np32.Length > 0) + terminaProcesso(np32); + return; + } private void PatchewNV(string file) { torganization.Text = "Generating new RSA private key, it may take a long time..."; @@ -945,11 +955,8 @@ namespace Navicat_Keygen_Patch_By_DFoX } puhost(patchhost.Checked ? false : true); bool is64bit = filea64bit(file); - string np3264 = is64bit ? "NP_x64.exe" : "NP_x32.exe"; - Process[] pr = Process.GetProcessesByName(np3264.Replace(".exe", "")); - if (pr.Length > 0) - terminaProcesso(pr); - string np = dirtmp + np3264; + tp(); + string np = dirtmp + (is64bit ? "NP_x64.exe" : "NP_x32.exe"); if (File.Exists(np)) File.Delete(np); File.WriteAllBytes(np, (is64bit ? Resources.NP_x64 : Resources.NP_x32)); @@ -968,15 +975,19 @@ namespace Navicat_Keygen_Patch_By_DFoX p.StartInfo.Verb = "runas"; p.StartInfo.Arguments = " \"" + Path.GetDirectoryName(file) + "\""; p.Start(); - string error = p.StandardOutput.ReadToEnd(); - if (error.Contains("Patch has been done successfully")) + using (var timer = new System.Threading.Timer(delegate { tp(); }, null, 15000, Timeout.Infinite)) { - File.SetAttributes(npk, FileAttributes.Hidden); - torganization.Text = "DeFconX"; - MessageBox.Show(Path.GetFileName(file) + ((!is64bit) ? " - x32 -> " : " - x64 -> ") + " Cracked!.", "Info...", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); + string error = p.StandardOutput.ReadToEnd(); + if (error.Contains("Patch has been done successfully")) + { + File.SetAttributes(npk, FileAttributes.Hidden); + MessageBox.Show(Path.GetFileName(file) + ((!is64bit) ? " - x32 -> " : " - x64 -> ") + " Cracked!.", "Info...", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); + } + else + MessageBox.Show("No All Pattern Found!\nFile Already Patched?", "Info", MessageBoxButtons.OK, MessageBoxIcon.Question); } - else - MessageBox.Show("No All Pattern Found!\nFile Already Patched?", "Info", MessageBoxButtons.OK, MessageBoxIcon.Question); + tp(); + torganization.Text = "DeFconX"; if (File.Exists(np)) File.Delete(np); p.Close(); diff --git a/Navicat_Keygen_Patch_By_DFoX/Properties/AssemblyInfo.cs b/Navicat_Keygen_Patch_By_DFoX/Properties/AssemblyInfo.cs index 7efd56c..920531f 100644 --- a/Navicat_Keygen_Patch_By_DFoX/Properties/AssemblyInfo.cs +++ b/Navicat_Keygen_Patch_By_DFoX/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build // usando l'asterisco '*' come illustrato di seguito: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("4.5.0.0")] -[assembly: AssemblyFileVersion("4.5.0.0")] +[assembly: AssemblyVersion("4.6.0.0")] +[assembly: AssemblyFileVersion("4.6.0.0")]