flat assembler
Message board for the users of flat assembler.

Index > Windows > Send Keys

Author
Thread Post new topic Reply to topic
Misery



Joined: 29 Apr 2014
Posts: 4
Misery
I was wondering if someone know about sending keys without using windows functions, i would like to do it with interruptions or something like that, my boss told me "You have to put the byte in the buffer."

Thanks
Post 29 Apr 2014, 18:29
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
You can only do low level key insertions if you have a kernel mode task (like a driver would be). For a normal user process you won't have direct access to the interrupt system or the keyboard buffer.
Post 29 Apr 2014, 19:06
View user's profile Send private message Visit poster's website Reply with quote
Misery



Joined: 29 Apr 2014
Posts: 4
Misery
revolution wrote:
You can only do low level key insertions if you have a kernel mode task (like a driver would be). For a normal user process you won't have direct access to the interrupt system or the keyboard buffer.


Could I achieve something with this http://waleedassar.blogspot.com.ar/2013/02/kernel-bug-1-processiopriority.html?

Because of this https://drive.google.com/file/d/0B_8uzBfhUWBZS0w5cmhQZHUtNjA/edit?usp=sharing.
Post 29 Apr 2014, 19:09
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
Maybe. But relying upon bugs is going to bite you once the bug is fixed in the next monthly update.

Just write a driver.
Post 29 Apr 2014, 19:15
View user's profile Send private message Visit poster's website Reply with quote
Misery



Joined: 29 Apr 2014
Posts: 4
Misery
revolution wrote:
Maybe. But relying upon bugs is going to bite you once the bug is fixed in the next monthly update.

Just write a driver.


It has passed a year but, how could I do it without drivers for now?

Can I set that privilege (IN/OUT) with NtSetInformationProcess?

This is because I cannot send keys to a game, injecting and sendmessage does not work, so I wanted to try with this in asm.
Post 29 Apr 2014, 19:20
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
Without a driver and without an OS bug you can't get a user mode process to do IN/OUT. This is by design. This is part of Windows being a protected mode OS. No amount of calling the undocumented native API will help you to bypass the protections (bugs not withstanding).

I would suggest another method: Debug your game and see how it is reading the keys. There is a good chance it is using GetAsyncKeyState or GetKeyState. You can inject a DLL (or patch the game) to fake the key states.
Post 29 Apr 2014, 20:17
View user's profile Send private message Visit poster's website Reply with quote
Misery



Joined: 29 Apr 2014
Posts: 4
Misery
revolution wrote:
Without a driver and without an OS bug you can't get a user mode process to do IN/OUT. This is by design. This is part of Windows being a protected mode OS. No amount of calling the undocumented native API will help you to bypass the protections (bugs not withstanding).

I would suggest another method: Debug your game and see how it is reading the keys. There is a good chance it is using GetAsyncKeyState or GetKeyState. You can inject a DLL (or patch the game) to fake the key states.


I will try, but i think it is more complicated cos it's DX key.

And I will try to achieve it with that bug (kernel).

Thanks.
Post 29 Apr 2014, 21:53
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.