Register for your free account! | Forgot your password?

You last visited: Today at 13:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Flash fix for old clients.

Discussion on [Release] Flash fix for old clients. within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,383
Received Thanks: 1,487
[Release] Flash fix for old clients.

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.



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.

Attached Files
File Type: rar Flash.rar (7.98 MB, 181 views)
Ultimation is offline  
Thanks
25 Users
Old 01/12/2021, 19:38   #2
 
elite*gold: 26
Join Date: Jul 2011
Posts: 482
Received Thanks: 258
I'd just like to say Thanks for the help and Happy birthday!
Yupmoh is offline  
Thanks
1 User
Old 01/12/2021, 19:43   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 737
Received Thanks: 290
tyvm sir
pintinho12 is offline  
Old 01/12/2021, 19:44   #4
 
elite*gold: 0
Join Date: Mar 2020
Posts: 25
Received Thanks: 4
Thanks !
ConquerDev is online now  
Old 01/12/2021, 19:56   #5
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,530
Received Thanks: 571
Great work Ulti, appreciate it.

Quote:
Originally Posted by ConquerDev View Post
Thanks !
I thought you already fixed it?
Captivate is offline  
Thanks
1 User
Old 01/12/2021, 20:03   #6
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,383
Received Thanks: 1,487
Quote:
Originally Posted by Captivate View Post
Great work Ulti, appreciate it.



I thought you already fixed it?
i don't think he did, since he Pmed saying he can't get this one to work on his client..
Ultimation is offline  
Thanks
3 Users
Old 01/12/2021, 20:10   #7
 
elite*gold: 0
Join Date: Jul 2011
Posts: 67
Received Thanks: 35
Nice one, thanks for the release
Latyos is offline  
Thanks
1 User
Old 01/12/2021, 20:22   #8
 
elite*gold: 0
Join Date: Sep 2014
Posts: 177
Received Thanks: 41
Great help, thanks.
iBotx is offline  
Thanks
1 User
Old 01/12/2021, 21:13   #9
 
elite*gold: 0
Join Date: Jun 2017
Posts: 2
Received Thanks: 1
Thank youu!!!!!
blizzardconquer is offline  
Thanks
1 User
Old 01/12/2021, 21:15   #10
 
elite*gold: 0
Join Date: Jun 2015
Posts: 24
Received Thanks: 1
great work thanks
Dark^Magic is offline  
Thanks
1 User
Old 01/12/2021, 21:46   #11
 
elite*gold: 0
Join Date: Mar 2007
Posts: 111
Received Thanks: 12
tyvm! Great work!
bashondegek is offline  
Thanks
1 User
Old 01/12/2021, 22:30   #12
 
elite*gold: 0
Join Date: Jul 2009
Posts: 737
Received Thanks: 290
Quote:
Originally Posted by Ultimation View Post
i don't think he did, since he Pmed saying he can't get this one to work on his client..
Guess he tested his solution before midnight XD
pintinho12 is offline  
Thanks
1 User
Old 01/12/2021, 22:40   #13
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,383
Received Thanks: 1,487
Quote:
Originally Posted by pintinho12 View Post
Guess he tested his solution before midnight XD
yea he just changed the system time back a day >.<
Ultimation is offline  
Old 01/12/2021, 22:49   #14
 
elite*gold: 0
Join Date: Aug 2010
Posts: 990
Received Thanks: 1,091
Slight improvement.

Code:
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);
}
{ Angelius } is offline  
Thanks
8 Users
Old 01/12/2021, 22:57   #15
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,383
Received Thanks: 1,487
Quote:
Originally Posted by { Angelius } View Post
Slight improvement.

Code:
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);
}
kek i ******* hate the different methods for unicode and ascii
Ultimation is offline  
Reply


Similar Threads Similar Threads
[Release] Flash fix for old clients.
Today - CO2 Guides & Templates - 5 Replies
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. https://i.imgur.com/5pGFCf0.png The client by default loads the system installed flash.ocx, this has been updated to expire on the 12th of january 2021.
[Release] Fix the MouseLag on old Clients without hooking.
01/24/2018 - CO2 PServer Guides & Releases - 19 Replies
Here is a simple tool that Enables it when it detects Conquer and Disables the tail again once it closed. Code: using System.Diagnostics; using System.Runtime.InteropServices; using System.Timers; using System.Windows.Forms; using Timer = System.Timers.Timer;
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html
*FLASH FLASH FLASH* 66er mk auf s9
04/17/2009 - Metin2 Trading - 7 Replies
hey wie die ueberschrift schon sagt ich vk einen lvl 66er mk auf s9 was ich suche ? sachen auf s9 oder sura ab lvl 50 screens bekommt ihr ueber icq oder msn



All times are GMT +1. The time now is 13:44.


Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2020 elitepvpers All Rights Reserved.