Mar 16, 2017 05:06 PM
(This post was last modified: Mar 17, 2017 07:50 AM by hunter24957.)
![[Image: sNnOdjy.png]](https://i.imgur.com/sNnOdjy.png)
Hey guys, I was just browsing through here when I came across a Python Keylogger thread by CAM; his code was horribly optimized, so I made it my job to make it better and improve on it.
I originally was going to make this Object Orientated, but I realized there is no point because it's really simple.
Now his will only work on Windows users due to the paths he was creating and using the PyWin32 modules. This one here is fully universal, I've tested it on Windows and Ubuntu, they both work fine.
I've managed to PEP8 the shit out of it, and halved it's size/bulk. The only down side is that I had to sacrifice the ability to grab the window title because it's part of PyWin32.
If you have not seen his thread what this will do is log every key pressed by the user, save it to a .log file and every hour upload it to an FTP server YOU define (you can set the time interval also).
This should be FUD. It's been coded in Python 3.5 and you'll need to install Pynput for it to work (pip install pynput).
Anyways here's the code, editing it is pretty self explanatory. Happy coding!
Spoiler (Click to View)
THERE IS AN UPDATED VERSION BELOW.
Here is what the log files look like (It's a strange layout, use your initiative when searching for logins, ctrl+f '@' would find when the user enters an email, if you know the person you could search for their common username, etc)
Spoiler (Click to View)
Feel free to improve! Have a great day.
UPDATED VERSION
Object orientated, copies to startup, Windows only.
I quickly whipped this up to add a few more features, enjoy!
Spoiler (Click to View)
P.S. Upon compiling remember to hide the console window!



![[Image: VFmqv4d.gif]](https://i.imgur.com/VFmqv4d.gif)
