keylogger

How to capture global keystrokes with PowerShell?

浪尽此生 提交于 2019-12-01 10:44:59
问题 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 you press said key? What I would like to achieve is - perform a predefined scripted action at the press of a button only AFTER starting the script, so putting it on the desktop and defining a shortcut key doesn't work. For example: I'd like the text

For Emacs, how to store what view-lossage collects into an external file?

可紊 提交于 2019-12-01 01:07:53
For Emacs, how do I store what view-lossage collects into an external file? Ideally I'd like to store these keystroke data into an external log file incrementally and automatically, meaning it is done so by default when Emacs is started. In Emacs 24 at least (I can't check a prior version right now), the docstring for view-lossage states: Display last 300 input keystrokes. To record all your input on a file, use `open-dribble-file'. And C-h f open-dribble-file RET tells me: open-dribble-file is an interactive built-in function in `C source code'. (open-dribble-file FILE) Start writing all

For Emacs, how to store what view-lossage collects into an external file?

江枫思渺然 提交于 2019-11-30 20:54:18
问题 For Emacs, how do I store what view-lossage collects into an external file? Ideally I'd like to store these keystroke data into an external log file incrementally and automatically, meaning it is done so by default when Emacs is started. 回答1: In Emacs 24 at least (I can't check a prior version right now), the docstring for view-lossage states: Display last 300 input keystrokes. To record all your input on a file, use `open-dribble-file'. And C-h f open-dribble-file RET tells me: open-dribble

cannot see the message when user presses the key

时光总嘲笑我的痴心妄想 提交于 2019-11-30 16:41:06
The following java program calls a native method in C that should print a message you pressed a key ! if the user presses a key. But i can't see the message as the i press the key.I also check if the function SetWindowsHookEx returns null but no,it doesn't return null. Java Code : package keylogger; public class TestKeys { private native void setWinHook(); public static void main(String args[]) { TestKeys o = new TestKeys(); try { o.setWinHook(); Thread.sleep(10000); } catch(Exception exc) { exc.printStackTrace(); } } static { System.loadLibrary("MyHook"); } } C Code : #include <stdio.h>

cannot see the message when user presses the key

走远了吗. 提交于 2019-11-30 16:21:34
问题 The following java program calls a native method in C that should print a message you pressed a key ! if the user presses a key. But i can't see the message as the i press the key.I also check if the function SetWindowsHookEx returns null but no,it doesn't return null. Java Code : package keylogger; public class TestKeys { private native void setWinHook(); public static void main(String args[]) { TestKeys o = new TestKeys(); try { o.setWinHook(); Thread.sleep(10000); } catch(Exception exc) {

ImportError: No module named pywintypes

六月ゝ 毕业季﹏ 提交于 2019-11-29 18:01:49
问题 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): 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.PumpMessages(

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

血红的双手。 提交于 2019-11-29 07:32:49
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 keylogger. This is only a personal thing, so I don't care about making it work on Windows/OSX, and I don't

Blackarch工具学习记录--工具分类

大兔子大兔子 提交于 2019-11-29 04:53:15
一、起因 Blackarch是一个基于archlinux集成了安全工具集的linux发行版。我也是因为遇到一个系统因为存在漏洞需要重现,接解到这个linux发行版。也在一点一点的学习,因此将学习的过程记录下来,方便自已也方便他人。所学习的东西,也是结合自已的知识和理解,如果有不当之处,还请留言指正,不胜感谢! 二、工具分类 按照发行版的资料描述,blackarch中集成了1900种安全工具(没想到有这么多)。安照系统中的工具来看,作者对工作都进行了分类,但是分类都是英文的,没头绪,不知道从哪下手啊!看来第一步,是需要先把工具的分类搞清楚,没办法英语水平不行,还是一查一下比较靠谱! anti-forensic == 反取证 automation == 自动化 automobile == 自动(移动网络),百度翻译是汽车,但个人理解应该是移动网络类顺,暂时先记为这样。 backdoor == 后门类 binary == 二进制类,这个概念也不清楚,应该是针对二进制类文件时行分析的工具分类吧,暂时先记为这样。 forensic == 取证类, 这个与第一个相反,应该是取证类的 bluetooth == 蓝牙类, 这个应该是与蓝牙相关的工具分类 code-audit == 代码审计类,应该代码审查,审计类的工具 cracker == 破解类 crypto == 密码类

Android Key logger

主宰稳场 提交于 2019-11-28 17:56:50
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 service (not owned by me) by my application code? Please help me with suitable links if you have. I know

How to fetch data in a background process in Ubuntu

五迷三道 提交于 2019-11-28 14:43:26
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. 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 run the application as root for this to work. If you cannot run as root, you should not be attempting to