Skip to content

Commit cd8972a

Browse files
Changes for the v1.0.0.4
1 parent 213ea92 commit cd8972a

6 files changed

Lines changed: 31 additions & 6 deletions

File tree

ConquerCipherHook/ConquerCipherHook.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using namespace std;
1616

1717
char tqFormat[] = { 0x25, 0x73, 0xA3, 0xAC, 0xA1, 0xA3, 0x66, 0x64, 0x6A, 0x66, 0x2C, 0x6A, 0x6B, 0x67, 0x66, 0x6B, 0x6C, 0x00 };
1818
char szPassword[32];
19-
HOOK_STUB snprintf_stub, send_stub, connect_stub;
19+
HOOK_STUB snprintf_stub, send_stub, connect_stub, shellexec_stub;
2020
CLegacyCipher* legacy;
2121

2222

@@ -72,6 +72,13 @@ int __stdcall csv3_send(SOCKET s, PBYTE buf, int len, int flags)
7272
typedef int (__stdcall *LPFSEND)(SOCKET,PBYTE,int,int);
7373
return ((LPFSEND)send_stub.Address)(s,buf,len,flags);
7474
}
75+
int __stdcall Shellexec(HWND hWnd, CHAR* lpOperation, CHAR* lpFile, CHAR* lpParams, CHAR* lpDir, INT nCmd) {
76+
if (strcmp("http://co.99.com/signout/", lpFile) == 0) {
77+
lpFile = "https://www.conquerloader.com";
78+
}
79+
typedef INT(__stdcall* Shellexec)(HWND, CHAR*, CHAR*, CHAR*, CHAR*, INT);
80+
return ((Shellexec)shellexec_stub.Address)(hWnd, lpOperation, lpFile, lpParams, lpDir, nCmd);
81+
}
7582

7683
BOOL __stdcall csv3_handler(PBYTE msg)
7784
{
@@ -123,4 +130,5 @@ void csv3_init(HMODULE hModule)
123130
CreateHook32(lib_func("msvcr90.dll", "_snprintf"), csv3_snprintf, &snprintf_stub);
124131
CreateHook32(lib_func("ws2_32.dll", "send"), csv3_send, &send_stub);
125132
CreateHook32(lib_func("ws2_32.dll", "connect"), csv3_connect, &connect_stub);
133+
CreateHook32(lib_func("Shell32.dll", "ShellExecuteA"), Shellexec, &shellexec_stub);
126134
}

ConquerLoader/ConquerLoader/ConquerLoader.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@
242242
</ItemGroup>
243243
<ItemGroup>
244244
<Content Include="ConquerLoaderLogo.ico" />
245+
<None Include="Resources\TQAnp.dll" />
245246
<None Include="Resources\ServersXML_5717.xml" />
246247
<None Include="Resources\COFlashFixer_DLL.dll" />
247248
<None Include="Resources\COHook6022.dll" />

ConquerLoader/ConquerLoader/Forms/Main.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ private void Worker_DoWork(object sender, System.ComponentModel.DoWorkEventArgs
319319
if (SelectedServer.ServerVersion >= 6371 && SelectedServer.ServerVersion <= MaxVersionUseServerDat)
320320
{
321321
RebuildServerDat();
322+
File.WriteAllBytes(Path.Combine(WorkingDir, "TQAnp.dll"), Properties.Resources.TQAnp);
322323
File.WriteAllBytes(Path.Combine(Application.StartupPath, HookDLL), Properties.Resources.COHook6371);
323324
Core.LogWritter.Write("Generating required files for use Custom Server.dat... (Using DX8)");
324325
}
@@ -343,6 +344,7 @@ private void Worker_DoWork(object sender, System.ComponentModel.DoWorkEventArgs
343344
if (SelectedServer.ServerVersion >= 6600)
344345
{
345346
RebuildServerDat();
347+
File.WriteAllBytes(Path.Combine(WorkingDir, "TQAnp.dll"), Properties.Resources.TQAnp);
346348
File.WriteAllBytes(Path.Combine(Application.StartupPath, HookDLL), Properties.Resources.COHook6371);
347349
Core.LogWritter.Write("Generating required files for use Custom Server.dat... (Using DX9)");
348350
}

ConquerLoader/ConquerLoader/Properties/Resources.Designer.cs

Lines changed: 16 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ConquerLoader/ConquerLoader/Properties/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,7 @@
139139
<data name="ServersXML_5717" type="System.Resources.ResXFileRef, System.Windows.Forms">
140140
<value>..\resources\serversxml_5717.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
141141
</data>
142+
<data name="TQAnp" type="System.Resources.ResXFileRef, System.Windows.Forms">
143+
<value>..\Resources\TQAnp.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
144+
</data>
142145
</root>
4.86 MB
Binary file not shown.

0 commit comments

Comments
 (0)