Register for your free account! | Forgot your password?

You last visited: Today at 13:07

  • 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 01/14/2021, 10:24   #16
 
elite*gold: 0
Join Date: Mar 2020
Posts: 25
Received Thanks: 4
#Me im maked solution with changed time directly. But this solution from Ultimation is more better .Thanks Ultimation !
ConquerDev is offline  
Thanks
1 User
Old 01/14/2021, 11:06   #17
 
elite*gold: 0
Join Date: Apr 2009
Posts: 19
Received Thanks: 0
same problem bro
engo is offline  
Old 01/14/2021, 13:06   #18
 
elite*gold: 0
Join Date: Nov 2010
Posts: 16
Received Thanks: 2
Quote:
Originally Posted by Ultimation View Post
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.

God in the sky, Ultimation on the ground !
TrapNZap is offline  
Thanks
1 User
Old 01/14/2021, 14:42   #19
 
elite*gold: 0
Join Date: Aug 2020
Posts: 6
Received Thanks: 0
must to be owner loder ?
Russia441 is offline  
Old 01/14/2021, 16:14   #20
 
elite*gold: 0
Join Date: Mar 2020
Posts: 23
Received Thanks: 8
Quote:
Originally Posted by ConquerDev View Post
#Me im maked solution with changed time directly. But this solution from Ultimation is more better .Thanks Ultimation !
Anything related to changing time is not a solution.
Envy\Craft is offline  
Thanks
1 User
Old 01/14/2021, 20:17   #21
 
elite*gold: 0
Join Date: Aug 2010
Posts: 109
Received Thanks: 12
ty, bro! back up and running again!
hyperco is offline  
Thanks
1 User
Old 01/14/2021, 22:53   #22
 
elite*gold: 0
Join Date: Dec 2007
Posts: 10
Received Thanks: 2
well, i wont gonna need this anymore but it's really good to have u back { Angelius }
- Ultimation
ppl like u made the game something else and u { Angelius } my friend i will never forget what u have done for me u have been helping me Since day 1
thanks for all ur amazing work guy's
ahmed_drbaka_lo is offline  
Thanks
2 Users
Old 01/14/2021, 23:22   #23
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,383
Received Thanks: 1,487
If anyone is having issues with windows 7 SP1 (even though its no longer officially supported), You can use the flash.ocx that comes with the client, however it will be missing the conquer logo in the top right i believe.
Ultimation is offline  
Old 01/15/2021, 05:48   #24
 
elite*gold: 0
Join Date: Aug 2010
Posts: 990
Received Thanks: 1,091
Quote:
Originally Posted by Ultimation View Post
If anyone is having issues with windows 7 SP1 (even though its no longer officially supported), You can use the flash.ocx that comes with the client, however it will be missing the conquer logo in the top right i believe.
Also, I noticed that if someone has several different version of flash player installed at the same time, The version would be included in the dll name to differentiate between dlls when loading them. So it would look something like this "flashxx.x.x.***.ocx" instead of "flash.ocx".

In this case, The hook will fail to find the dll.

This would fix issue.
Code:
if (StrStrW(lpLibFileName, L"Flash") && StrStrW(lpLibFileName, L".ocx"))
     lpLibFileName = L"./Flash.ocx";
{ Angelius } is offline  
Thanks
4 Users
Old 01/15/2021, 22:36   #25
 
elite*gold: 0
Join Date: Jun 2007
Posts: 101
Received Thanks: 2
im still having issues.. im not sure were ive went wrong...
KOMOKABOY is offline  
Old Yesterday, 16:03   #26
 
elite*gold: 0
Join Date: Feb 2007
Posts: 339
Received Thanks: 38
thanks for this release, could you help me understand what this does?
This code is hooking the global kernelbase.dll in order to make the custom Flash.ocx to be used instead of the one installed locally?
If this is not the case, then does this need to be injected into the conquer executable?
I've tried to run it from a loader but I think I'm doing it wrong since it didn't throw any error but it didn't work, so I believe it should be injected into the client and run from the client itself?

EDIT: managed to make it work, thanks a lot for the fix
ryuchetval 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:07.


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.