keylogger

app in background read keys pressed by user

烂漫一生 提交于 2020-01-24 20:53:06
问题 i want to do a application which works in background and read all keys pressed by user and save it in file. i start to write it in Win forms and use keys Pressed event but it works when form is focused:/ It is another way to do it? i hear about Windows Service, but i never use it :/ 回答1: You can do it with help of these: DirectX look into MDX KeyLogger Application for C# Creating a simple keylogger in C# I don't know your reasons, but I just hope they are "good". 回答2: After doing a lot of

Detect key press combination in Linux with Python?

a 夏天 提交于 2020-01-03 18:56:30
问题 I'm trying to capture key presses so that when a given combination is pressed I trigger an event. I've searched around for tips on how to get started and the simplest code snippet I can find is in Python - I grabbed the code below for it from here. However, when I run this from a terminal and hit some keys, after the "Press a key..." statement nothing happens. Am I being stupid? Can anyone explain why nothing happens, or suggest a better way of achieving this on Linux (any language considered

writing a key listener in c [closed]

和自甴很熟 提交于 2019-12-25 18:54:38
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I want to write my own keylogger using Java. To write the keylogger i would need a hook file that will catch the keyevents by the users. How can i write this hook file so that i am able to get the keys user

example code for Xorg/X11 record extension fails

夙愿已清 提交于 2019-12-24 11:44:03
问题 I'm compiling a basic example (as much as using bare X could be simple...) using the X11 's RECORD extension on the latest version of Ubuntu, and I'm getting the following error: RECORD extension for local server is version is 1.13 X Error of failed request: XRecordBadContext Major opcode of failed request: 135 (RECORD) Minor opcode of failed request: 5 (XRecordEnableContext) Context in failed request: 0x17 Serial number of failed request: 10 Current serial number in output stream: 10 Any

Help with my keylogger

瘦欲@ 提交于 2019-12-23 04:23:09
问题 I'm working on a simple key logger. I'm having a problem though, when I try to run it as a .pyw the program shuts down before it can record anything. I believe it needs to loop, how would I go about this? import pythoncom, pyHook, sys, logging, time LOG_FILENAME = 'C:\KeyLog\log.out' def OnKeyboardEvent(event): keytime = time.strftime('%I:%M %S %p %A %B %d, %Y | ') logging.basicConfig(filename=LOG_FILENAME, level=logging.DEBUG, format='%(message)s') logging.log(10, keytime + "Key: '" + chr

Something like pyHook on OS X

天大地大妈咪最大 提交于 2019-12-21 19:24:14
问题 I am actually working with pyHook , but I'd like to write my program for OS X too. If someone know such a module ... I've been looking on the internet for a while, but nothing really relevant. -> The idea is to be able to record keystrokes outside the python app. My application is a community statistics builder, so it would be great to have statistics from OS X too. Thanks in advance ;) Edit : PyHook : Record keystrokes and other things outside the python app http://sourceforge.net/apps

How do you record keystrokes when operating on another window in Java?

谁都会走 提交于 2019-12-20 03:22:04
问题 I'm looking to record keystrokes and mouse positions while I'm in a browser window on various websites, but I'm not sure how to do this outside the SWING (or some other GUI) window. How can I record keystrokes when a different application's window is the one active? 回答1: The support you need is not exposed by Java. It is a fairly simple matter to do this if you have access to the RECORD extension in X, or Win32 on Windows. Here is a Python project that implements support for both of these

Keyboard input on OSX

大憨熊 提交于 2019-12-17 19:25:16
问题 I was wondering if it was possible to read the keyboards input, on OSx from somewhere, such as GNU/Linux with the /dev/input files. The purpose of this is to make a very simple keylogger, (learning purpose), or if there is a function that i could call in C. Thanks. 回答1: Since not all readers have good intentions as you, I won't get into details, but rather point you to the right direction. As you may know, the WindowServer works over two environments: Carbon (old) and Cocoa (new). These are

Global keylogger in Java

偶尔善良 提交于 2019-12-17 17:09:47
问题 I'm writing an application that monitors the person’s mouse and keyboard. If they have not used the keyboard or mouse for 1 minute, it will pop up a message that says “You have not used the mouse or keyboard for 1 minute” along with an OK button. How do I do this in Java? 回答1: You need a bit of C/C++ code and call SetWindowsHookEx This function allows you to hook into Windows events and receive a copy. This question contains code to get you started: JNA Keyboard Hook in Windows 回答2: If you

Disable JShell history

别来无恙 提交于 2019-12-14 03:45:39
问题 JShell by default enables a persistent history of everything typed, which can be recalled by pressing the up arrow. Where is the setting to turn this ❝feature❞ off? Also, how do I even clear the current history? Maybe I'm dumb but I can't figure out the command. /reset seems to do nothing. 回答1: Also, how do I even clear the current history? What I'm proposing is clearly a hack but it seems to be working, at least in Windows 10 with JDK11.0.4: Run Registry Editor and search for the ' /J/Shell