简体   繁体   English

Windows 10键盘记录

[英]Windows 10 keyboard logging

I've been messing around with hooking into windows using c# and logging all keyboard input, especially this being across users. 我一直在使用C#钩住窗口并记录所有键盘输入,尤其是跨用户的情况。 I was wondering if it is actually possible to log all key strokes across User log-ins, not the actual sign in side (User/Pass) of the log in but if i locked the pc running the key logger and then logged into another account and typed something it would appear in the key-logger. 我想知道是否真的可以跨用户登录记录所有按键,而不是登录的实际登录侧(用户/通过),但是我是否锁定了运行按键记录器的电脑,然后登录了另一个帐户并输入会出现在按键记录器中的内容。

So far i haven't managed to get the key-logger to work across user accounts. 到目前为止,我还没有设法使按键记录器跨用户帐户工作。 However it does work fine logging the account that its run off. 但是,它确实可以很好地记录其运行的帐户。 I've created an implementation based off : https://gist.github.com/Stasonix/3181083 我创建了一个基于以下实现: https : //gist.github.com/Stasonix/3181083

This implementation works fine if i'm logged in on one account but not on another. 如果我登录了一个帐户但未登录另一个帐户,则此实现效果很好。

Can i just note this is purely for academic purposes. 我能指出这纯粹是出于学术目的。 Is there a specific reason why switching users would cause it not to work? 切换用户会导致其无法正常工作是否有特定原因? I'm running this software on a windows 10 machine. 我正在Windows 10计算机上运行此软件。

You could try by creating a Windows service instead of a console/winforms application. 您可以尝试创建Windows服务而不是控制台/ winforms应用程序。

Then change the run level (Log On As) of the service to local system and set the service to start at startup. 然后将服务的运行级别(登录身份)更改为本地系统,并将服务设置为在启动时启动。 This should work. 这应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM