keylogger

Keyboard input on OSX

北战南征 提交于 2019-11-28 10:26:51
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. 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 the respective APIs: Carbon → InstallEventHandler (link is broken due to age? Anyway, the referenced book is

While loop using a lot of CPU time

戏子无情 提交于 2019-11-28 09:51:05
问题 I am creating a keystroke logger for my personal interest, as well wanting to know how to capture and use them as functions (like key shortcuts). I got the code to learn how keylogger and GetAsyncKeyState() work here. I got it to run under Code::Blocks, but the weirdest things is that when I check my task manager, my CPU Usage rises to 100%. When I close the program, it goes back down, and goes back up to 100% when I turn it back on. I presume it's because of the infinite while loop

Cross platform keylogger

女生的网名这么多〃 提交于 2019-11-28 05:08:27
I'm looking for ways to watch mouse and keyboard events on Windows, Linux and Mac from Python. My application is a time tracker. I'm not looking into the event, I just record the time when it happens. If there are no events for a certain time, say 10 minutes, I assume that the user has left and stop the current project. When the user returns (events come in again), I wait a moment (so this doesn't get triggered by the cleaning crew or your pets or an earthquake). If the events persist over a longer period of time, I assume that the user has returned and I pop up a small, inactive window where

Capturing Keystrokes in GNU/Linux in C without X11

☆樱花仙子☆ 提交于 2019-11-28 05:05:27
If I am working in an application and I press key from keyboard, how can I capture that key (or string), including the source application's name, in C, under GNU/LINUX, in userland, without X11 :) Thanks. Well, without X11 this problem is way more difficult. For the keystroke part you can use a code similar to this one, but you have to pass as an argument the device that you are reading (keyboard, usually /dev/input/event0 ) #include <linux/input.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <unistd.h> int main(int argc, char **argv) { int fd;

Global keylogger in Java

二次信任 提交于 2019-11-28 02:11:34
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? 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 If you want to do this for only your application, then its very simple. You can simply add listerns i.e Toolkit

A function callback every time a key is pressed (regardless of which window has focus)?

旧城冷巷雨未停 提交于 2019-11-28 01:15:09
问题 I want to write a programme (in python) on Linux (Ubuntu Linux 9.10) that will keep track of how many key presses per second/minute I make. This includes normal letter keys, and control/shift/space/etc. Is there some way to hook into X so that I can say "when a key is pressed call this function?". Since I want to have this running in the background while I work normally, this function call will have to be able to be aware of all key presses for all programmes. I suppose it's a bit like a

Global Hook Keylogger problem

守給你的承諾、 提交于 2019-11-27 18:23:01
问题 It logs the keys to textbox currently so its safe. PROBLEM The problem is when i run this at virtual machine, or my friends laptop, it hangs after pressing certain amount of keys(random).It runs perfectly fine in mine. http://i34.tinypic.com/29o1im8.jpg class GlobalKeyboardHook { #region Definition of Structures, Constants and Delegates public delegate int KeyboardHookProc(int nCode, int wParam, ref GlobalKeyboardHookStruct lParam); public struct GlobalKeyboardHookStruct { public int vkCode;

Android Key logger

▼魔方 西西 提交于 2019-11-27 10:22:22
问题 Intro: I want to create a POC on Android Security which requires to identify if there is any KeyLogger running on Android device or not. And if it is running or installed on device then, disable it throughout my Android application. Queries: 1.) Is this possible to create Android keyloggers which intercepts keyboard events and running in background as services? 2.) Is this possible to identify if any of the background process handelling keyboard events? 3.) Can I stop any other background

How to fetch data in a background process in Ubuntu

≯℡__Kan透↙ 提交于 2019-11-27 08:56:23
问题 I am finding a Ubuntu OS command, which lets the program to read the data from keyboard even if the program is in background. I tried to search it a lot but got no success. If any Ubuntu/Linux programmer knows the OS command which lets the program to do so, Please share it with me. I am a beginner of Ubuntu programming. 回答1: You can use the Linux input subsystem to read events from mice and keyboards. It will only work if your application has the necessary privileges. Basically, you have to

Cross platform keylogger

我与影子孤独终老i 提交于 2019-11-27 00:48:39
问题 I'm looking for ways to watch mouse and keyboard events on Windows, Linux and Mac from Python. My application is a time tracker. I'm not looking into the event, I just record the time when it happens. If there are no events for a certain time, say 10 minutes, I assume that the user has left and stop the current project. When the user returns (events come in again), I wait a moment (so this doesn't get triggered by the cleaning crew or your pets or an earthquake). If the events persist over a