Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Atrfilter

jaanmurumets edited this page May 6, 2015 · 2 revisions

Install ATR FILTER Driver

Atrfilter is using code from sample https://support.microsoft.com/en-us/kb/981665

To create an installation application that will add this service as an upper filter for all smartcard readers {50DD5230-BA8A-11D1-BF5D-0000F805F530}, see this MSDN article: http://msdn.microsoft.com/en-us/library/ms791322.aspx

Automatically install ATR Filter Driver on Windows 7 x86

Right-click atrfilter/x86/atrfiltr.inf and select Install Reconnect your smart card reader Run "Command Prompt" Execute sc query atrfiltr Desired output: SERVICE_NAME: atrfiltr TYPE : 1 KERNEL_DRIVER STATE : 4 RUNNING (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 Automatically install ATR Filter Driver on Windows 7 x64

Note: to bypass x64 system driver signature verification feature refer to this manual

Right-click atrfilter/x64/atrfiltr.inf and select Install Reconnect your smart card reader Run "Command Prompt" Execute sc query atrfiltr Desired output: SERVICE_NAME: atrfiltr

TYPE : 1 KERNEL_DRIVER STATE : 4 RUNNING (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 To manually add driver service:

Note: you still need to disable driver signature verification in case of x64 system

copy atrfiltr.sys to %WINDIR%/system32/driver Launch "Command prompt" as Administrator Execute: sc create atrfiltr binPath= system32\drivers\atrfiltr.sys type= kernel start= demand error= normal Desired message will be "[SC] CreateService SUCCESS" Replace scfilter with atrfiltr under registry value: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{50DD5230-BA8A-11D1-BF5D-0000F805F530}\UpperFilters" Reconnect smartcard reader to load ATRFilter driver Launch "Command prompt" Execute sc query atrfiltr Desired output should be SERVICE_NAME: atrfiltr

TYPE : 1 KERNEL_DRIVER STATE : 4 RUNNING (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 Check if scfilter is not in use sc query scfilter

SERVICE_NAME: scfilter

TYPE : 1 KERNEL_DRIVER STATE : 1 STOPPED WIN32_EXIT_CODE : 1077 (0x435) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0

Clone this wiki locally