Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Bypass SendInput

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
pxc
How do I cheat?
Reputation: 0

Joined: 29 Jan 2011
Posts: 3

PostPosted: Sat Feb 26, 2011 2:33 am    Post subject: Bypass SendInput Reply with quote

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
View user's profile Send private message
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Sat Feb 26, 2011 2:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Luig
Cheater
Reputation: 0

Joined: 24 Sep 2010
Posts: 26

PostPosted: Sat Feb 26, 2011 3:15 pm    Post subject: Reply with quote

You can try PostMessage or DirectInput API's.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25842
Location: The netherlands

PostPosted: Sat Feb 26, 2011 6:20 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
pxc
How do I cheat?
Reputation: 0

Joined: 29 Jan 2011
Posts: 3

PostPosted: Sun Feb 27, 2011 2:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Sun Feb 27, 2011 2:40 am    Post subject: Reply with quote

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
View user's profile Send private message
pxc
How do I cheat?
Reputation: 0

Joined: 29 Jan 2011
Posts: 3

PostPosted: Sun Feb 27, 2011 4:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites