Timeout process Fixed and Lib update

Fix Timeout Exit Process and update Crypto Library
master v4.6
Paolo 6 years ago
parent 2f52b2b61f
commit 6a25fcb186

@ -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);

@ -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();
using (var timer = new System.Threading.Timer(delegate { tp(); }, null, 15000, Timeout.Infinite))
{
string error = p.StandardOutput.ReadToEnd();
if (error.Contains("Patch has been done successfully"))
{
File.SetAttributes(npk, FileAttributes.Hidden);
torganization.Text = "DeFconX";
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);
}
tp();
torganization.Text = "DeFconX";
if (File.Exists(np))
File.Delete(np);
p.Close();

@ -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")]

Loading…
Cancel
Save