Solved Keylogger that shows what's being typed - Batch

June 13, 2016 at 23:08:20
Specs: Windows 64
I want to create a .bat that inputs keystrokes even when that window is not active and simply displays every key that is pressed onto the command line, creating a new line for any length or duration in which a key is not pressed.

See More: Keylogger that shows whats being typed - Batch

Report •


✔ Best Answer
June 14, 2016 at 20:04:52
Not exactly your solution, but this might help -
@echo off
echo .>>c:\users\<username>\desktop\keys.txt
echo :
set /p keys=
echo %keys%>>c:\users\<username>\desktop\keys.txt
start D:\Keylogger\K.bat
exit

1.You need to create a keys.txt in desktop manually.
2. The .bat should be located in D:\Keylogger (according to the code, you can change it).
3. Replace <username> with your user ID (better to check manually in c:\users, My user ID is "jaysarma987" but the folder in c:\users is "jaysarma987.user". But its not the case 90% of the times)
4. Code will not work on the background.
5. This is a loop that keeps on running itself again with every keystroke.
6. If you type "1234", the result will probably be "1.2.3.4" in the keys.txt. You cannot just put a blank space between echo and >>.

Do drop back with results :)
Don't use it for anything illegal please

Edit - You can even put the keys.txt into D:\keylogger right? Solve this one out :)

message edited by jaysarma987



#1
June 14, 2016 at 02:29:37
What would this be useful for except malicious stuff?

Don't worry if plan A fails, there are 25 more letters in the alphabet ;)


Report •

#2
June 14, 2016 at 02:57:03
Considering that I just wanted this for my own personal use, absolutely nothing.

Report •

#3
June 14, 2016 at 07:28:49
Hooking in Windows isn't difficult, but you need to at least be able to interface with native Win32, and you need to run a message loop. Either of these requirements would rule out batch.

How To Ask Questions The Smart Way


Report •

Related Solutions

#4
June 14, 2016 at 20:04:52
✔ Best Answer
Not exactly your solution, but this might help -
@echo off
echo .>>c:\users\<username>\desktop\keys.txt
echo :
set /p keys=
echo %keys%>>c:\users\<username>\desktop\keys.txt
start D:\Keylogger\K.bat
exit

1.You need to create a keys.txt in desktop manually.
2. The .bat should be located in D:\Keylogger (according to the code, you can change it).
3. Replace <username> with your user ID (better to check manually in c:\users, My user ID is "jaysarma987" but the folder in c:\users is "jaysarma987.user". But its not the case 90% of the times)
4. Code will not work on the background.
5. This is a loop that keeps on running itself again with every keystroke.
6. If you type "1234", the result will probably be "1.2.3.4" in the keys.txt. You cannot just put a blank space between echo and >>.

Do drop back with results :)
Don't use it for anything illegal please

Edit - You can even put the keys.txt into D:\keylogger right? Solve this one out :)

message edited by jaysarma987


Report •


Ask Question