bot openCV, need some help with input

10/31/2020 20:10 testuser_123#1
Hi,


Just for fun i make a simple bot with openCV to recognize and auto attack mob.

Everything work well but i had obviously a issue with nProtect GameGuard who block all SendInput (windll).

If i run flyff on virtualbox or use a arduino like a fake usb mouse to send input everything work well but... If anyone have a better solution to send input or bypass gg i take it ! :)

Thx all !
11/01/2020 02:39 cookie69#2
Quote:
Originally Posted by testuser_123 View Post
Hi,


Just for fun i make a simple bot with openCV to recognize and auto attack mob.

Everything work well but i had obviously a issue with nProtect GameGuard who block all SendInput (windll).

If i run flyff on virtualbox or use a arduino like a fake usb mouse to send input everything work well but... If anyone have a better solution to send input or bypass gg i take it ! :)

Thx all !
Wow you made an openCV bot just to recognize the mobs :o I guess your CPU is used at 50% :D
I would like to see that in action out of curiosity...Otherwise you can use a simple PixelSearch Api based on Autoit or c++ (there is a wrapper for c++ based on autoit PixelSearch api)

To bypass gg, you can use a bypass for PostMessage API:

Code:
// PostMessage Bypass
DWORD originalPostMessage = (DWORD)GetProcAddress(LoadLibrary(TEXT("User32.dll")), "PostMessageW") + 5;
__declspec(naked) BOOL WINAPI hPostMessage(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
	UNREFERENCED_PARAMETER(lParam);
	UNREFERENCED_PARAMETER(wParam);
	UNREFERENCED_PARAMETER(uMsg);
	UNREFERENCED_PARAMETER(hWnd);
	__asm
	{
		mov edi, edi
			push ebp
			mov ebp, esp
			jmp dword ptr ds:[originalPostMessage]
	}
}
and use it like this:
hPostMessage(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0);
11/02/2020 08:59 testuser_123#3
hmm bypass PostMessage API, thank for your help ! :)
I write this bot in C# i will check if it's possible to write this type of low level func
11/02/2020 12:02 cookie69#4
Quote:
Originally Posted by testuser_123 View Post
hmm bypass PostMessage API, thank for your help ! :)
I write this bot in C# i will check if it's possible to write this type of low level func
Put the c++ code inside a DLL and export the function. Then use the DLL from c# using the import blah blah..
11/02/2020 14:57 /Aiden\#5
Quote:
Originally Posted by cookie69 View Post
Put the c++ code inside a DLL and export the function. Then use the DLL from c# using the import blah blah..
That is a good approach. On the other hand there is another way to do it. Have a look at Senpai Greyb1t's AwaBot Source:

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

There is the solution directly in C#.
11/02/2020 17:35 testuser_123#6
Quote:
Originally Posted by /Aiden\ View Post
[Only registered and activated users can see links. Click Here To Register...]

There is the solution directly in C#.
Nice ! big thanks, i will check the repo :handsdown: