[GH-ISSUE #181] New Keylogger chars like ^ or ` not working #77

Closed
opened 2026-02-27 15:48:38 +03:00 by kerem · 17 comments
Owner

Originally created by @MaxXor on GitHub (May 23, 2015).
Original GitHub issue: https://github.com/quasar/Quasar/issues/181

To reproduce this issue run the client with keylogger enabled and press ^ (under Escape).

Originally created by @MaxXor on GitHub (May 23, 2015). Original GitHub issue: https://github.com/quasar/Quasar/issues/181 To reproduce this issue run the client with keylogger enabled and press ^ (under Escape).
kerem 2026-02-27 15:48:38 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@DragonzMaster commented on GitHub (May 23, 2015):

~~
++=_-)0(9*8&7^6%5$4#3@2!1~~


the above is what i wrote to test the keylogger and it seems to work for me :D
kel2

<!-- gh-comment-id:104923981 --> @DragonzMaster commented on GitHub (May 23, 2015): `~`~ ++=_-)0(9*8&7^6%5$4#3@2!1~`~` --- the above is what i wrote to test the keylogger and it seems to work for me :D ![kel2](https://cloud.githubusercontent.com/assets/12255107/7785013/e9741b90-017c-11e5-9f32-80b6f962cd8b.png)
Author
Owner

@ghost commented on GitHub (May 23, 2015):

This is working for me as well. What kind of keyboard do you have? Under my escape key is the tilde key (OemTilde), and my '^' key is (shift + 6)

@DragonzMaster, it looks like you are using the previous commits, could you try the new commits that were just added and try the same thing?

<!-- gh-comment-id:104925699 --> @ghost commented on GitHub (May 23, 2015): This is working for me as well. What kind of keyboard do you have? Under my escape key is the tilde key (OemTilde), and my '^' key is (shift + 6) @DragonzMaster, it looks like you are using the previous commits, could you try the new commits that were just added and try the same thing?
Author
Owner

@ghost commented on GitHub (May 23, 2015):

@MaxXor, took a look here: http://clasfaculty.ucdenver.edu/tphillips/GermanKeyboardLayout.html

"The characters ² ³ { [ ] } \ @ € µ ~ are accessed by holding the Alt Gr key and tapping the other key.
The Alt key on the left will not access these additional characters.
The accent keys ^ ` ´ are dead keys (nothing happens until you type a second key).
Tap on an accent key once, let up, then tap on a vowel to produce accented characters. (ô á ù etc.)
Note that the semi-colon and colon are accessed by holding down the shift key (large arrow up)."

<!-- gh-comment-id:104926537 --> @ghost commented on GitHub (May 23, 2015): @MaxXor, took a look here: http://clasfaculty.ucdenver.edu/tphillips/GermanKeyboardLayout.html "The characters ² ³ { [ ] } \ @ € µ ~ are accessed by holding the Alt Gr key and tapping the other key. The Alt key on the left will not access these additional characters. The accent keys ^ ` ´ are dead keys (nothing happens until you type a second key). Tap on an accent key once, let up, then tap on a vowel to produce accented characters. (ô á ù etc.) Note that the semi-colon and colon are accessed by holding down the shift key (large arrow up)."
Author
Owner

@ghost commented on GitHub (May 23, 2015):

Because these are dead keys, they won't be processed. Take a peek at the method at line 73 ('xClient.Core.Keylogger.WinApi.KeyboardNativeMethods')

<!-- gh-comment-id:104927779 --> @ghost commented on GitHub (May 23, 2015): Because these are dead keys, they won't be processed. Take a peek at the method at line 73 ('xClient.Core.Keylogger.WinApi.KeyboardNativeMethods')
Author
Owner

@DragonzMaster commented on GitHub (May 23, 2015):

why should i use the last commit !!
the keylogger already works fine for me
but github almost doesn't show ' ~ when there are no spaces between them, instead it shows them like that ~~
so every key i have pressed is logged correctly @d3agle

<!-- gh-comment-id:104928300 --> @DragonzMaster commented on GitHub (May 23, 2015): why should i use the last commit !! the keylogger already works fine for me but github almost doesn't show ' ~ when there are no spaces between them, instead it shows them like that `~`~ so every key i have pressed is logged correctly @d3agle
Author
Owner

@ghost commented on GitHub (May 23, 2015):

@DragonzMaster , haha sorry!

<!-- gh-comment-id:104928792 --> @ghost commented on GitHub (May 23, 2015): @DragonzMaster , haha sorry!
Author
Owner

@DragonzMaster commented on GitHub (May 23, 2015):

no problem bro
I hope you find a fix for @MaxXor problem

<!-- gh-comment-id:104928932 --> @DragonzMaster commented on GitHub (May 23, 2015): no problem bro I hope you find a fix for @MaxXor problem
Author
Owner

@MaxXor commented on GitHub (May 23, 2015):

lol yea I press ^ once and then again to show it, works fine without the keylogger. :(

<!-- gh-comment-id:104929045 --> @MaxXor commented on GitHub (May 23, 2015): lol yea I press ^ once and then again to show it, works fine without the keylogger. :(
Author
Owner

@ghost commented on GitHub (May 23, 2015):

@MaxXor , When you say it works fine without the keylogger, do you mean that with the keylogger enabled and the client running, your ^ key doesn't function as it would without the keylogger enabled?

<!-- gh-comment-id:104930374 --> @ghost commented on GitHub (May 23, 2015): @MaxXor , When you say it works fine without the keylogger, do you mean that with the keylogger enabled and the client running, your ^ key doesn't function as it would without the keylogger enabled?
Author
Owner

@MaxXor commented on GitHub (May 23, 2015):

Correct.

<!-- gh-comment-id:104930456 --> @MaxXor commented on GitHub (May 23, 2015): Correct.
Author
Owner

@ghost commented on GitHub (May 23, 2015):

Oh boy. I will look into this, that doesn't sound good

<!-- gh-comment-id:104930588 --> @ghost commented on GitHub (May 23, 2015): Oh boy. I will look into this, that doesn't sound good
Author
Owner

@ghost commented on GitHub (May 23, 2015):

@MaxXor , could you try something for me? I don't have a german keyboard to test this on, but I wonder if the dead key has a state that is being reset the first time you press it. I noticed that sometimes when starting the client with keylogger enabled, keys would be reset if they were already enabled. For example, if I had Numlock toggled off prior to starting the client, when I pressed Numlock to turn it on, it would turn it off as soon as i pressed and released it. I have a feeling this could be due to clearing the keyboard buffer in https://github.com/MaxXor/xRAT/blob/dev/Client/Core/Keylogger/WinApi/KeyboardNativeMethods.cs#L85.

Could you try using the key multiple times, to ensure the keyboard buffer is cleared by the time you next press your dead key? For example, Try accenting some characters a few times and see what it outputs.

<!-- gh-comment-id:104935886 --> @ghost commented on GitHub (May 23, 2015): @MaxXor , could you try something for me? I don't have a german keyboard to test this on, but I wonder if the dead key has a state that is being reset the first time you press it. I noticed that sometimes when starting the client with keylogger enabled, keys would be reset if they were already enabled. For example, if I had Numlock toggled off prior to starting the client, when I pressed Numlock to turn it on, it would turn it off as soon as i pressed and released it. I have a feeling this could be due to clearing the keyboard buffer in https://github.com/MaxXor/xRAT/blob/dev/Client/Core/Keylogger/WinApi/KeyboardNativeMethods.cs#L85. Could you try using the key multiple times, to ensure the keyboard buffer is cleared by the time you next press your dead key? For example, Try accenting some characters a few times and see what it outputs.
Author
Owner

@MaxXor commented on GitHub (May 23, 2015):

I did what you said, but it didn't work. I'll try removing this line and see what happens. :D

<!-- gh-comment-id:104936109 --> @MaxXor commented on GitHub (May 23, 2015): I did what you said, but it didn't work. I'll try removing this line and see what happens. :D
Author
Owner

@ghost commented on GitHub (May 23, 2015):

Thanks! I just realized, someone recently raised this issue with the programmer who wrote this library, and he claims to have fixed it. I wonder if the problem is with our logic?

https://github.com/gmamaladze/globalmousekeyhook/issues/4

<!-- gh-comment-id:104936307 --> @ghost commented on GitHub (May 23, 2015): Thanks! I just realized, someone recently raised this issue with the programmer who wrote this library, and he claims to have fixed it. I wonder if the problem is with our logic? https://github.com/gmamaladze/globalmousekeyhook/issues/4
Author
Owner

@MaxXor commented on GitHub (May 23, 2015):

Thanks, I've read it. Urutar also said it's not gone yet. :D Let's see if he can fix it!

<!-- gh-comment-id:104936423 --> @MaxXor commented on GitHub (May 23, 2015): Thanks, I've read it. Urutar also said it's not gone yet. :D Let's see if he can fix it!
Author
Owner

@ghost commented on GitHub (May 24, 2015):

Sent a pull request with some fixes, along with a possible dead-key fix. #186, needs to be tested!

<!-- gh-comment-id:104961300 --> @ghost commented on GitHub (May 24, 2015): Sent a pull request with some fixes, along with a possible dead-key fix. #186, needs to be tested!
Author
Owner

@ghost commented on GitHub (May 24, 2015):

Tested on Windows 8 VM with success!

<!-- gh-comment-id:104966582 --> @ghost commented on GitHub (May 24, 2015): Tested on Windows 8 VM with success! ![](http://puu.sh/hYbya/6dda3185f0.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Quasar#77
No description provided.