Update Program.cs
This commit is contained in:
parent
a8041d8c21
commit
e88740b148
36
Program.cs
36
Program.cs
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
@ -25,17 +25,15 @@ namespace WeChatGetKey
|
|||||||
Console.WriteLine("[+] Done.");
|
Console.WriteLine("[+] Done.");
|
||||||
}
|
}
|
||||||
private static void ReadTest()
|
private static void ReadTest()
|
||||||
{;
|
{
|
||||||
Process WeChatProcess = null;
|
Process WeChatProcess = null;
|
||||||
Process[] WeChatProcessName = Process.GetProcessesByName("WeChat");
|
Process[] WeChatProcessName = Process.GetProcessesByName("WeChat");
|
||||||
|
|
||||||
List<int> list = null;
|
List<int> list = null;
|
||||||
|
|
||||||
foreach (Process WeChatProcess2 in WeChatProcessName)
|
foreach (Process WeChatProcess2 in WeChatProcessName)
|
||||||
{
|
{
|
||||||
WeChatProcess = WeChatProcess2;
|
WeChatProcess = WeChatProcess2;
|
||||||
Console.WriteLine("[+] WeChatProcessPID: " + WeChatProcess2.Id.ToString());
|
Console.WriteLine("[+] WeChatProcessPID: " + WeChatProcess2.Id.ToString());
|
||||||
foreach (object obj in WeChatProcess.Modules)
|
foreach (object obj in WeChatProcess2.Modules)
|
||||||
{
|
{
|
||||||
ProcessModule processModule = (ProcessModule)obj;
|
ProcessModule processModule = (ProcessModule)obj;
|
||||||
if (processModule.ModuleName == "WeChatWin.dll")
|
if (processModule.ModuleName == "WeChatWin.dll")
|
||||||
@ -43,7 +41,6 @@ namespace WeChatGetKey
|
|||||||
Program.WeChatWinBaseAddress = processModule.BaseAddress;
|
Program.WeChatWinBaseAddress = processModule.BaseAddress;
|
||||||
string fileVersion = processModule.FileVersionInfo.FileVersion;
|
string fileVersion = processModule.FileVersionInfo.FileVersion;
|
||||||
Console.WriteLine("[+] WeChatVersion: " + fileVersion);
|
Console.WriteLine("[+] WeChatVersion: " + fileVersion);
|
||||||
|
|
||||||
if (!Program.versionlist.TryGetValue(fileVersion, out list))
|
if (!Program.versionlist.TryGetValue(fileVersion, out list))
|
||||||
{
|
{
|
||||||
Console.WriteLine("[-] WeChat Current Version Is: " + fileVersion + " Not Support");
|
Console.WriteLine("[-] WeChat Current Version Is: " + fileVersion + " Not Support");
|
||||||
@ -52,7 +49,6 @@ namespace WeChatGetKey
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list == null)
|
if (list == null)
|
||||||
{
|
{
|
||||||
Console.WriteLine("[-] WeChat Base Address Get Faild");
|
Console.WriteLine("[-] WeChat Base Address Get Faild");
|
||||||
@ -65,7 +61,7 @@ namespace WeChatGetKey
|
|||||||
string Account = Program.GetMobile(WeChatProcess.Handle, (IntPtr)WeChatAccount);
|
string Account = Program.GetMobile(WeChatProcess.Handle, (IntPtr)WeChatAccount);
|
||||||
if (string.IsNullOrWhiteSpace(Account))
|
if (string.IsNullOrWhiteSpace(Account))
|
||||||
{
|
{
|
||||||
Console.WriteLine("[-] WeChatAccount: Can't Get User Account, Maybe No Login");
|
Console.WriteLine("[-] WeChatAccount: Can't Get User Account, Maybe No Login or User Is No Set Account");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -75,7 +71,7 @@ namespace WeChatGetKey
|
|||||||
string Mobile = Program.GetMobile(WeChatProcess.Handle, (IntPtr)WeChatMobile);
|
string Mobile = Program.GetMobile(WeChatProcess.Handle, (IntPtr)WeChatMobile);
|
||||||
if (string.IsNullOrWhiteSpace(Mobile))
|
if (string.IsNullOrWhiteSpace(Mobile))
|
||||||
{
|
{
|
||||||
Console.WriteLine("[-] WeChatMobile: Can't Get User Mobile, Maybe No Login or Maybe User Is No Binding Mobile");
|
Console.WriteLine("[-] WeChatMobile: Can't Get User Mobile, Maybe No Login or User Is No Binding Mobile");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -85,7 +81,7 @@ namespace WeChatGetKey
|
|||||||
string Mail = Program.GetMail(WeChatProcess.Handle, (IntPtr)WeChatMail);
|
string Mail = Program.GetMail(WeChatProcess.Handle, (IntPtr)WeChatMail);
|
||||||
if (string.IsNullOrWhiteSpace(Mail))
|
if (string.IsNullOrWhiteSpace(Mail))
|
||||||
{
|
{
|
||||||
Console.WriteLine("[-] WeChatMail: Can't Get User Mail, Maybe User Is No Binding Email Address or The current is New Version");
|
Console.WriteLine("[-] WeChatMail: Can't Get User Mail, Maybe User Is No Binding Email or The current is New Version");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -467,22 +463,22 @@ namespace WeChatGetKey
|
|||||||
"3.7.0.26",
|
"3.7.0.26",
|
||||||
new List<int>
|
new List<int>
|
||||||
{
|
{
|
||||||
37105908,
|
37118196,
|
||||||
37106288,
|
37118576,
|
||||||
37105960,
|
37118248,
|
||||||
37105936,
|
37118224,
|
||||||
37106980
|
37119268
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"3.7.0.29",
|
"3.7.0.29",
|
||||||
new List<int>
|
new List<int>
|
||||||
{
|
{
|
||||||
37105908,
|
37118196,
|
||||||
37106288,
|
37118576,
|
||||||
37105960,
|
37118248,
|
||||||
37105936,
|
37118224,
|
||||||
37106980
|
37119268
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user