01-17-2014, 07:45 PM
It's been a while since I did a Python tutorial. Or a tutorial at that.
This is a very basic keylogger that we can create using Python for Windows.
WARNING
I am not responsible for any hacking incidents found using this logger. I do this to teach, not to encourage hacking. If you abuse it, you are at your own user discretion.
Now then, we begin.
Requirements
You must have PyHook and PyWin for this to work. You also need to have Notepad++ or at the very least, notepad. And of course Python.
Download Links
Click on the link that corresponds to your python version.
Beef
Now that we've downloaded our stuff, it's time to do this thing.
You're going to write out your imports.
You need pyHook, pythoncom, sys, and logging
Now that you have your imports, go ahead and tell the keylogger where to save stuff.
Now in the Python language, for it to understand the location, put two backslashes, not one.
You'll need to define an event, the "OnKeyboardEvent".
Now outside of the event we will do a few more things...
All of this creates the logger and that alone.
YOU NEED TO SAVE THIS AS A .PYW FILE. NOT .PY.
Make sure you know the location where you saved this for later too.
Why do we need Notepad++? To put it simply, creating a batch file. You could however use Notepad++ creating this logger too, but since I'm a noob I prefer IDLE.
We will write this out to execute the logger AND whatever the program they are using.
For example, let's use Google Chrome.
Save that as a .bat file somewhere in the computer. Go to the Google Chrome shortcut, and change the properties to open "C:\Location\log.bat".
Apply and close the properties.
Now whenever something is typed in Google Chrome, the logger will write it in the file "log.txt".
That's all for now.
More tutorials later. Once more I am not responsible for your uses of the logger.
GG NO RE.
This is a very basic keylogger that we can create using Python for Windows.
WARNING
I am not responsible for any hacking incidents found using this logger. I do this to teach, not to encourage hacking. If you abuse it, you are at your own user discretion.
Now then, we begin.
Requirements
You must have PyHook and PyWin for this to work. You also need to have Notepad++ or at the very least, notepad. And of course Python.
Download Links
Click on the link that corresponds to your python version.
[To see links please register here]
PyWin[To see links please register here]
PyHook[To see links please register here]
Notepad++Beef
Now that we've downloaded our stuff, it's time to do this thing.
You're going to write out your imports.
You need pyHook, pythoncom, sys, and logging
Hidden Content
Now that you have your imports, go ahead and tell the keylogger where to save stuff.
Hidden Content
Now in the Python language, for it to understand the location, put two backslashes, not one.
You'll need to define an event, the "OnKeyboardEvent".
Hidden Content
Now outside of the event we will do a few more things...
Hidden Content
All of this creates the logger and that alone.
YOU NEED TO SAVE THIS AS A .PYW FILE. NOT .PY.
Make sure you know the location where you saved this for later too.
Why do we need Notepad++? To put it simply, creating a batch file. You could however use Notepad++ creating this logger too, but since I'm a noob I prefer IDLE.
We will write this out to execute the logger AND whatever the program they are using.
For example, let's use Google Chrome.
Hidden Content
Save that as a .bat file somewhere in the computer. Go to the Google Chrome shortcut, and change the properties to open "C:\Location\log.bat".
Apply and close the properties.
Now whenever something is typed in Google Chrome, the logger will write it in the file "log.txt".
That's all for now.
More tutorials later. Once more I am not responsible for your uses of the logger.
GG NO RE.