[Release] Flash fix for old clients.

01/12/2021 19:34 Ultimation#1
As many of you are aware as of 12th of January 2021 Flash has been discontinued and many of you maybe facing the following issue.

The client does have a local version of flash, however it is version 6... very old and probably buggy.

I have attached a version of flash which you can put into the client folder, it is from late 2019.

[Only registered and activated users can see links. Click Here To Register...]

The client by default loads the system installed flash.ocx, this has been updated to expire on the 12th of january 2021.

Many of you have tried to remove the windows update. However, i have a better solution that microsoft can't remove. Here i have included flash.ocx which you can replace in your conquer directly. Now with a little help from a the following class you can add to your Loader / Hook. You can force the client to load the local flash.ocx from the client folder. This will fix your issue.

Code:
CFlashFix.h

#pragma once
class CFlashFix
{
	typedef HMODULE(_stdcall* HookLoadLibrary)(_In_ LPCWSTR lpLibFileName,
		_Reserved_ HANDLE hFile,
		_In_ DWORD dwFlags);
public:
	static void Hook();
	static HookLoadLibrary pLoadLibrary;
	static  HMODULE _stdcall LoadLibraryDetour(_In_ LPCWSTR lpLibFileName,
		_Reserved_ HANDLE hFile,
		_In_ DWORD dwFlags);
};
Code:
CFlashFix.cpp

#include "pch.h"
#include "CFlashFix.h"
#include <tchar.h>

CFlashFix::HookLoadLibrary CFlashFix::pLoadLibrary;
void CFlashFix::Hook()
{
    auto m = GetModuleHandleA("kernelbase.dll");
    auto proc = GetProcAddress(m, "LoadLibraryExW");
    pLoadLibrary = reinterpret_cast<CFlashFix::HookLoadLibrary>(proc);
    DetourTransactionBegin();
    DetourUpdateThread(GetCurrentThread());
    DetourAttach(&reinterpret_cast<PVOID&>(pLoadLibrary), LoadLibraryDetour);
    DetourTransactionCommit();
}

//Thanks to { Angelius } for the cleaner method.
HMODULE _stdcall CFlashFix::LoadLibraryDetour(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
{
	if (StrStrW(lpLibFileName, L"Flash.ocx"))
		lpLibFileName = L"./Flash.ocx";

    return pLoadLibrary(lpLibFileName, hFile, dwFlags);
}

I am aware this code may not be optimized and or messy. I gave it like 5 seconds of love. It is more just of a quick release to get you guys back up and running.

If done correctly, your client should now work again.

[Only registered and activated users can see links. Click Here To Register...]
01/12/2021 19:38 Yupmoh#2
I'd just like to say Thanks for the help and Happy birthday! :kappa:
01/12/2021 19:50 cronoszeu#3
Now that is a fast reply. All can get back on truck now :D

Thank you for this fast fix!

Added and works as it should:
[Only registered and activated users can see links. Click Here To Register...]

Regards
01/12/2021 20:03 iBotx#4
Thanks for the help.
01/13/2021 19:34 turk55#5
If everyone enjoys this release, please wish Ultimation a happy birthday as it is his birthday today!

HAPPY BIRTHDAY ULTI!
01/17/2021 01:16 Noycers#6
Thanks for still contributing to co2!
01/19/2021 17:54 pachecmax#7
Hi, i Tried to add this on my loader, i add the new itens and put the code, but i'm having lots of errors that says some functions are already defined in other class, i think this doesen't work with my loader source, some one have a "basic" one with this code added?
01/22/2021 14:20 Soulfly25#8
Quote:
Originally Posted by pachecmax View Post
Hi, i Tried to add this on my loader, i add the new itens and put the code, but i'm having lots of errors that says some functions are already defined in other class, i think this doesen't work with my loader source, some one have a "basic" one with this code added?
You can use @[Only registered and activated users can see links. Click Here To Register...] Autopatch server which is very helpful and it will fix your Flash Login problem.
01/23/2021 19:16 pintinho12#9
Quote:
Originally Posted by Soulfly25 View Post
You can use @[Only registered and activated users can see links. Click Here To Register...] Autopatch server which is very helpful and it will fix your Flash Login problem.
Would just probably need to comment the resolution change code.
02/14/2021 14:49 mahmoud magdy#10
how i can add this code please
02/14/2021 16:34 Soulfly25#11
Copy and paste will work.
02/19/2021 02:06 ImmuneOne#12
Props. Beats PS if you ask me.

Now, who is going to tell the poor guys that approved that PR that they have a problem?
02/19/2021 14:13 XxDaMaRxX#13
Happy birth day!
03/10/2021 19:48 Fernando Soares#14
Algum BR ensina a fazer isso ai em vídeo, por favor? Não consegui entender como adicionar esses códigos.
03/12/2021 18:53 pintinho12#15
Quote:
Originally Posted by Fernando Soares View Post
Algum BR ensina a fazer isso ai em vídeo, por favor? Não consegui entender como adicionar esses códigos.
[Only registered and activated users can see links. Click Here To Register...]