| View previous topic :: View next topic |
| Author |
Message |
pxc How do I cheat?
Reputation: 0
Joined: 29 Jan 2011 Posts: 3
|
Posted: Sat Feb 26, 2011 2:33 am Post subject: Bypass SendInput |
|
|
Hey guys,
I'm neither sure if this is the the right place for my problem nor if you're able to understand my dire English.
There's a mod for an very old game that blocks the use of SendInput().
I don't think it's GameGuard.
Now I'd like to know how to bypass this.
|
|
| Back to top |
|
 |
Innovation Grandmaster Cheater
Reputation: 12
Joined: 14 Aug 2008 Posts: 617
|
Posted: Sat Feb 26, 2011 2:02 pm Post subject: |
|
|
| SendInput may be hooked in many different places, such as User32.dll, KeServiceDescriptorTableShadow, and NtUserSendInput. Would you give us more information, please?
|
|
| Back to top |
|
 |
Luig Cheater
Reputation: 0
Joined: 24 Sep 2010 Posts: 26
|
Posted: Sat Feb 26, 2011 3:15 pm Post subject: |
|
|
| You can try PostMessage or DirectInput API's.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25842 Location: The netherlands
|
Posted: Sat Feb 26, 2011 6:20 pm Post subject: |
|
|
Or just get teensy++ and program it as a keyboard/mouse device and write in an interface that causes it to send keystrokes
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
pxc How do I cheat?
Reputation: 0
Joined: 29 Jan 2011 Posts: 3
|
Posted: Sun Feb 27, 2011 2:05 am Post subject: |
|
|
Well, I tried PostMessage but I need window and it doesn't seem to work correctly. Also I like the syntax SendInput() works. So if possible I'd like to keep that. I never really heard about DirectInput and msdn doesn't spit something out. Can you please tell me more about that? About teensy, well, I'd like to keep it C.
Actually, I thought about a solution like PostMessage bypass:
| Code: |
DWORD _PMA;
__declspec(naked) BOOL WINAPI _PostMessageA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
__asm {
mov edi, edi
push ebp
mov ebp, esp
jmp [_PMA]
}
}
|
Is this not possible?
|
|
| Back to top |
|
 |
Innovation Grandmaster Cheater
Reputation: 12
Joined: 14 Aug 2008 Posts: 617
|
Posted: Sun Feb 27, 2011 2:40 am Post subject: |
|
|
| pxc wrote: | Well, I tried PostMessage but I need window and it doesn't seem to work correctly. Also I like the syntax SendInput() works. So if possible I'd like to keep that. I never really heard about DirectInput and msdn doesn't spit something out. Can you please tell me more about that? About teensy, well, I'd like to keep it C.
Actually, I thought about a solution like PostMessage bypass:
| Code: |
DWORD _PMA;
__declspec(naked) BOOL WINAPI _PostMessageA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
__asm {
mov edi, edi
push ebp
mov ebp, esp
jmp [_PMA]
}
}
|
Is this not possible? |
| Code: | | DWORD _PMA = (DWORD)GetProcAddressA(LoadLibraryA("user32.dll"), "PostMessageA") + 5; |
Assuming that only PostMessageA's prologue is hooked, if anything, a jump to the PostMessageA address plus five should work as intended, provided the correct parameters. The window handle can be attained using FindWindow or GetActiveWindow, and you may find a list of window messages here.
Also, you don't need the "mov edi, edi" operation.
Last edited by Innovation on Thu Apr 19, 2012 5:58 pm; edited 4 times in total |
|
| Back to top |
|
 |
pxc How do I cheat?
Reputation: 0
Joined: 29 Jan 2011 Posts: 3
|
Posted: Sun Feb 27, 2011 4:34 am Post subject: |
|
|
I can't get PostMessage workwing right. That's why I won't use it. For example, when I'm using
| Code: |
PostMessageA(hWnd, WM_LBUTTONDOWN, MK_LBUTTON, 0)
|
I get a click, but mouse does not keep the press. I want it to keep until i send a WM_LBUTTONUP message. This problem does not appear with SendInput().
|
|
| Back to top |
|
 |
|