How To Make A Simple Python Keylogger

How To Make A Simple Python Keylogger


Learn how to make a 360 video camera!
https://www.youtube.com/watch?v=KSRaU9MHVVg
-~-~~-~~~-~~-~-

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

the art of programming the ability to
regurgitate commands in order to will
the power of these bit and byte
behemoths to obey our bidding like this
tasty lick of coding beauty that i did a
while back that shows you the strength
of programming excellence by making a
crappy little keylogger how ballots do
the keylogger some justices time by
making one that actually works
ok
that's why python well how about you
stop asking questions
whoa that escalated quickly python is a
simple powerful and flexible programming
language
if you're new to the programming seen
this is a good language to start with to
get started with it go to w . python.org
/ get it and download the version of
Python for your current operating system
once installed on your computer should
now be python friendly including new
links to the idol platform which is
Python scripting interface
if you start up idol to start a new
script you can go to file and new
the next step is to import some
definitions as well go ahead
ok here's what that means to make
programming easier python has what's
called modules available for it that
contain useful code and can extend
pythons functionality for instance if
you want windows to interact with Python
you can download the Python windows
module that contains the code necessary
for this interaction to work two modules
will need for our key logger work by
win32 module and the pie
look module both of which you can find
at this website
just download and install the latest
versions for your 32 bit or 64 bit
system after you have them installed you
can then import the modules we need we
need pie hook as well as Python com from
the pie when 32 module and we'll also
need the cyst and logging modules
first we want to create a variable that
tells us where to save the logging data
you'll need to use double slashes in the
folder path however in order for python
to understand it
all right now let's create a function
that monitors are keyboard events we can
use the logging module to set our
filename debugging level and logging
format then we can have it log each
character as its corresponding ascii
format and then return true at the end
of the function and watch for the next
event
for the last bit of code we need to set
up our pipe look manager which allows us
to set a hook on Windows events
so let's set a hook to the keyboard
event and set the key down variable to
watch for key presses and use the Python
con module to capture the key messages
the last thing to do is save it give it
a name that make sure that you save it
as a . p YW file instead of a . py file
this one sure that it executes silently
without popping up any windows
that's it surprisingly simple wasn't it
after you tested it to make sure that it
works the next thing to figure out is
how the launch it on a user without the
user knowing that it's been launched one
way to do that is to attach it to the
users favorite program
here's how let's say that the user uses
internet explorer constantly
I know that's hard to believe but this
is just a hypothetical situation
what we can do is open up notepad and
create a batch file that watches both
our Python script and internet explorer
when clicked to make it invisible be
sure to add at echo off at the top and
then start in an empty set of quotation
marks before each command now save it as
launch . bat under all files and change
the internet explorer shortcut to run
the batch file when it's clicked it will
look as if internet explorer starts
normally but if we check where our log
files stored will see that it's logging
all of our key strokes since we didn't
include a quick function in our code for
now if you want to exit out of the
program go into your task manager and
under processes in the p YW and the
Python w processes
ok now go log some key strokes but if
you test this out on somebody make sure
that they know you're doing it because I
don't condone malicious use of this
program
seriously guys had to learn
don't learn to hack this is
intentionally just a basic keylogger
with room for improvement
so if you have any improvement
suggestions please feel free to leave
them in the comments below and if you
want any more coding tutorials please
click here to visit my coding playlist
and if you want more tutorials you can
click here to subscribe or click here to
visit my channel also feel free to visit
my google+ facebook or twitter channels
to get more news and updates
alright that's it for this tutorial
until next time
x some fun into your weekend

Video Length: 05:10
Uploaded By: Tinkernut
Published: 6/29/2013
View Count: 1,338,613
Copyright © 2026, Ivertech. All rights reserved.