【问题标题】:Keylogger only used when using a specific application键盘记录器仅在使用特定应用程序时使用
【发布时间】:2016-02-19 19:21:48
【问题描述】:

我应该查看哪些工具/参考资料才能让定制的键盘记录器仅在用户键入专有公司应用程序时捕获数据?

例如,当用户在 excel 中输入时,没有任何反应。当他们切换到 word 时,我的应用程序会意识到这一点,并捕获数据。请记住,我希望它与我们的专有(而不是可修改)软件一起工作,所以我不能指望目标程序来协助这个过程。

我打算用 VBscript 或 JavaScript 编写。只是一个业余程序员。

我希望这是有道理的。接受建议!

【问题讨论】:

    标签: javascript vbscript keylogger


    【解决方案1】:
    set service = GetObject ("winmgmts:")
    
    for each Process in Service.InstancesOf ("Win32_Process")
        If Process.Name = "Progranametocheck.exe" then
            wscript.echo "Progranametocheck is running"
            wscript.quit
        End If
    next
    wscript.echo "Progranametocheck is not running"
    

    上面的代码(VBscript)检查程序是否正在运行,并弹出一个弹出窗口,告诉您它是否正在运行。如果程序正在运行,要运行程序,请替换:"wscript.echo "Progranametocheck is running" 为:

    Set objShell = Nothing
    Set objShell = WScript.CreateObject("WScript.Shell")
    objShell.Run("""C:\\dir\\logger.exe""")
    Set objShell = Nothing
    

    这样就变成了:

    set service = GetObject ("winmgmts:")
    
    for each Process in Service.InstancesOf ("Win32_Process")
        If Process.Name = "Progranametocheck.exe" then
            Set objShell = Nothing
            Set objShell = WScript.CreateObject("WScript.Shell")
            objShell.Run("""C:\\dir\\logger.exe""")
            Set objShell = Nothing
            wscript.quit
        End If
    next
    wscript.echo "Progranametocheck is not running"
    

    【讨论】:

      猜你喜欢
      • 2020-12-15
      • 2020-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-14
      相关资源
      最近更新 更多