Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Asking AI to Record Keystrokes in Go, Python, C++, Java

I wanted to see if an LLM could create code in each language, to record keypresses and log a message if I use a SHIFT+G keybind. The idea is that this could be used to have custom keybinds. It also shows how you can get keycodes / keystrokes in various languages: Go, C++, Python, and Java.

PROMPT:
Code
Create a _____ program that listens for SHIFT+G keybind and prints msg , and if not shift+g it prints the key + "not valid" instead. for windows





[Image: Screenshot-2025-01-18-010237.png]

[Image: Screenshot-2025-01-18-010415.png]

[Image: Screenshot-2025-01-18-010441.png]

[Image: Screenshot-2025-01-18-010510.png]
nice find thannks bro
(Jan 18, 2025 05:34 PM)Xiu97yd0 Wrote:  nice find thannks bro

No problem!
I’ve been testing LLM censorship periodically to see what’s possible and this type of prompt has always worked - I hadn’t tested it with monitoring like this before but have with similar types of requests. As long as you have a valid reason for the underlying code, it’ll write it.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by PabloMar 4, 2022 07:06 AM 1 202 Mar 4, 2022 07:06 AM
Last Post: AzureGod
by Alex777Aug 21, 2020 04:51 AM 5 185 Aug 21, 2020 04:51 AM
Last Post: Accord
by GearCEO™Mar 14, 2017 10:43 AM 14 1,779 Mar 14, 2017 10:43 AM
Last Post: bawsyfella