输入错误的密码后拍照


15

输入错误的用户密码后,运行Windows 7的笔记本电脑是否可以使用网络摄像头拍照?

Answers:


10

也许您可能想检查KeyLemon登录管理器。这是我能够找到的唯一满足您需求的解决方案。适用于XP,Vista,7和8。不幸的是,此功能仅在付费版本中提供。

从产品页面:

劫机者追踪

使用劫机者跟踪功能,您可以查看以下图片:

  • 自动锁定Windows之前谁在您的计算机前
  • 在计算机锁定时谁输入了错误的密码

免责声明:我绝对与产品或公司无关。


5

真是个好问题。这是我的解决方案(部分受Keltari的回答启发):

要求

  • Windows的最新版本(可能是Vista或更高版本)
  • 兼容DirectShow的视频设备(可能是Windows识别为照相机的任何东西,以及更多)
  • ffmpeg.exe(http://ffmpeg.org/

snapshot_login_failure.cmd(使用ffmpeg.exe将其放置在某些文件夹中)

@echo off

:: Get date and time independent of regional settings. Source: http://stackoverflow.com/questions/203090/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-us
for /F "usebackq tokens=1,2 delims==" %%i in (`wmic os get LocalDateTime /VALUE 2^>NUL`) do if '.%%i.'=='.LocalDateTime.' set ldt=%%j
set datetime=%ldt:~0,4%_%ldt:~4,2%_%ldt:~6,2%_%ldt:~8,2%_%ldt:~10,2%_%ldt:~12,2%

:: Capture snapshot through DirectShow using FFmpeg and save to disk. Change name of video adapter and save path.
ffmpeg.exe -f dshow -i video="USB 2.0 UVC HD Webcam" -vframes 1 E:\snapshot_%datetime%.jpg

snapshot_login_failure.xml(将其作为Windows Scheduler任务导入)

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2013-07-06T23:32:34.0732602</Date>
    <Author>Zoe\Zero3</Author>
  </RegistrationInfo>
  <Triggers>
    <EventTrigger>
      <Enabled>true</Enabled>
      <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Security"&gt;&lt;Select Path="Security"&gt;*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and EventID=4625]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
    </EventTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>S-1-5-19</UserId>
      <RunLevel>LeastPrivilege</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
    <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>E:\snapshot_login_failure.cmd</Command>
      <WorkingDirectory>E:\</WorkingDirectory>
    </Exec>
  </Actions>
</Task>

笔记

  • 您需要调整设备名称和路径以适合您的系统。也许用户也在任务文件中占了位。
  • 您可能需要根据Windows 7登录失败事件启用失败登录的日志记录不存在?
  • 在“用户名或密码错误”对话框上单击“确定” ,将触发登录失败事件,而不是在输入无效的登录信息后立即触发
  • 如果在启动过程中显示登录屏幕之后提早触发(Windows仍在启动服务且系统绑定IO),则会明显延迟。

如果您遇到这种方法的任何问题,请查看@ TimberWolf2016答案(superuser.com/a/1072012/235441)。
Zero3 '16

4

很抱歉,恢复了旧线程,但是我将其发布给以后遇到此问题的人。

Zero3的流程在大多数情况下都是有效的,他对此感到非常好奇!但是,只有在启用失败登录尝试的日志记录后,然后使其右键单击日志中的事件ID,然后选择“将任务附加到此事件”,而不是通过XML导入任务,我才能使它起作用。使用权限,因为我必须输入管理员密码才能创建任务。

令我惊讶的另一件事是,触发的任务没有将.cmd文件识别为程序/脚本。为了解决这个问题,我在下面的代码与目录相同的目录中创建了一个简单的.bat文件,名为run.bat,而是让任务启动了批处理文件,从而运行了.cmd。

一种跳苏格兰式的方式使其工作,但由于有了这个线程,我对我的成功感到非常高兴,并且我很想为这个过程制作视频教程:)

非常感谢大家!

注意:我正在运行Windows 10 Pro x64

run.bat代码:

Start "" "C:\<filepath to .cmd>"

感谢您的反馈意见!它可能更适合作为我的答案的评论,但我想您可能没有足够的代表来添加评论。我会为您添加一个,以便人们注意到这一点!
Zero3 '16


3

无效的登录名包含一个Event ID: 529与安全事件日志中相同的日志。您可以编写一个脚本来监视该ID,然后执行将要拍照的命令...虽然不确定如何执行第二部分...


1
有趣的方法
巴西人,
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.