Questions tagged [keylogger]

Keystroke logging (Keylogging, Keylogger)

Keystroke logging (often called keylogging or "keylogger") is the action of tracking (or logging) the keys struck on a keyboard, typically in a covert manner so that the person using the keyboard is unaware that their actions are being monitored.

426 questions
32
votes
3 answers

How to handle key press event in console application

I want to create a console application that will display the key that is pressed on the console screen, I made this code so far: static void Main(string[] args) { // this is absolutely wrong, but I hope you get what I mean …
R.Vector
  • 1,669
  • 9
  • 33
  • 41
26
votes
3 answers

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

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 =…
Jason
  • 393
  • 1
  • 4
  • 9
23
votes
7 answers

ImportError: No module named pywintypes

I am working to make a small keylogger with Python, by using the pyHook, pythoncom and Pywin32 modules. Here is my code: import pyHook, pythoncom, sys, logging file_log = 'C:\\important\\log.txt' def OnKeyboardEvent (event): …
Eden Pigram
  • 349
  • 1
  • 3
  • 7
22
votes
3 answers

Android Key logger

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…
Avtar Guleria
  • 2,126
  • 3
  • 21
  • 33
22
votes
6 answers

How can I write a key listener to track all keystrokes in Java?

I want to write a key listener in Java. It should track all the key presses regardless of whether the Java app has focus or not. Is this possible?
Arghya Chakraborty
  • 433
  • 1
  • 3
  • 12
16
votes
4 answers

Capturing keystrokes in GNU/Linux in C without X Window

If I am working in an application and I press a key from the keyboard, how can I capture that key (or string), including the source application's name, in C, under GNU/LINUX, in userland, without X Window?
r00t3r
13
votes
8 answers

What is a "hook" and how can I write one in Java? And how to communicate with kernel to know the keys pressed by the user/registering with OS

Although I searched a lot, it is still unclear to me as to what exactly a "hook" is. For instance, I read this post on wiki answers : A hook is a method of interposing a piece of code in front of another piece of code, so that the first piece of…
saplingPro
  • 20,769
  • 53
  • 137
  • 195
12
votes
1 answer

Is there a way to record and playback a coding session in Visual Studio?

I've read in Robert Martin's "Clean Code" that in the 80's Emacs was already capable of recording and playing back your coding session. I just realised how much I'd learn from that practice, I'd love to profile myself! However I really don't think…
Camilo Martin
  • 37,236
  • 20
  • 111
  • 154
10
votes
4 answers

Logging/intercepting every keystroke in Vim

I just started working on a tool to help me increase my productivity with Vim. I want it to log every keystroke to a file and then identify inefficient usage patterns. I would like it to store a timestamp for every keystroke. I've tried using the -w…
9
votes
2 answers

Vim commands log

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 If it is not possible in VIM, maybe there is a keylogger on linux, which can be attached to…
cutalion
  • 4,334
  • 1
  • 38
  • 47
8
votes
1 answer

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

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…
tino
  • 518
  • 5
  • 18
7
votes
2 answers

Is There A Way To Detect A Key Logging Software?

I might write a program to detect malicious (or non-malicious) software that is key logging (logging key strokes to gain information). What tactics would be used? Is there certain code to look for? Are there certain locations I should search? I…
Dorothy
  • 2,842
  • 10
  • 33
  • 46
7
votes
2 answers

How to capture global keystrokes with PowerShell?

Can Powershell listen for and capture key presses? Is it possible to write a PowerShell script that, like AutoHotkey, sits in tray and waits until you press a predefined keyboard key to start execution? And possibly not return but fire every time…
J. Doe
  • 1,147
  • 1
  • 13
  • 21
7
votes
1 answer

Disable JShell history

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…
Boann
  • 48,794
  • 16
  • 117
  • 146
7
votes
1 answer

Global Hook Keylogger problem

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…
RSTYLE
  • 93
  • 1
  • 4
1
2 3
28 29