Где найти WinPcap в управлении системой? (в Windows 8.1 Pro 64bit)

29088
Raffael

Где я могу найти WinPcap в системе управления, я предположил, что он работает как служба, но, похоже, я ошибаюсь.

Я запустил WinPcap через командную строку ( источник ):

runas /u:administrator "net start npf" 

Перед запуском WinPcap Wireshark не показывал никаких интерфейсов захвата, а после этого показывает. Итак, я предполагаю, что это работает. Но я не могу найти его в списке служб диспетчера задач.

Чтобы сузить кандидатов, я сравнил запущенные сервисы после запуска и остановки WinCap, но разницы нет.

Как я могу непосредственно подтвердить, что этот «сервис» работает в Windows 8?


C:\WINDOWS\system32>sc query "npf"  SERVICE_NAME: npf 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 

ЗАГАДОЧНАЯ :

sc queryперечисляет 85 сервисов - ни один из которых не является "npf" - но sc query npfнайдет его.

8

2 ответа на вопрос

13
user2196728

Yes, you are right, WinPcap is a service (but mainly a driver), named NetGroup Packet Filter Driver. The fact is that it cannot be seen in the Windows Services Manager.

You can find it in the registry at :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NPF 

Not tested, but it seems that you can change the way the service starts. Navigate to the registry key above. Then you will find a REG DWORD value named Start. Values are :

  • Value 0x3 : SERVICE_DEMAND_START
  • Value 0x2 : SERVICE_AUTO_START
  • Value 0x1 : SERVICE_SYSTEM_START

In the doc they say that it's work only on Windows NTx, but give it a try ! On my system it is set to 0x2.

To view it in a GUI, goto (i am talking about Windows7, hope it will work on Windows8) :

  1. Run msinfo32.exe
  2. Then expand Software environment
  3. Then choose System Drivers

Here you can get the status for npf service (but cannot interact with it)


Edit :

How can I directly confirm that this "service" is running on Windows 8?

You can use this from the command prompt to check the service state :

sc query "npf" 

or this, to check specificaly if it is running :

sc query "npf" | findstr RUNNING or sc query "npf" | find "RUNNING" 

Edit 2 :

Mysterious : sc query lists 85 services - none of which is "npf" - but sc query npf will find it.

Seems normal. Regarding the doc this is the way sc works.

By default, SC lists only services, not drivers. NPF is more a driver.

  • To get all drivers : sc query type= driver (NPF will appears)

  • To get all (Services + Drivers) : sc query type= all (NPF will appears also)

Нет, плохо, это не работает на Win 8. Я могу отображать скрытые устройства, но нет категории «не подключи и работай», и нет устройства с именем, как ты сказал. Raffael 10 лет назад 0
Хорошо, я на самом деле устанавливаю Windows8 на виртуальной машине, чтобы посмотреть :( user2196728 10 лет назад 0
@ Яаффель Я вижу, что вы отметили это как ответ! Вы наконец нашли GUI, о котором я говорил? user2196728 10 лет назад 0
Нет, не совсем. но вы предоставили много ценной информации. По сути, я хотел бы знать, «как я могу увидеть все работающие в данный момент сервисы?». Я могу подтвердить запуск npf, но только если знаю его имя. это странно. это на самом деле, кстати, указан в реестре, как вы заявили. Raffael 10 лет назад 0
Просьба взглянуть на добавленный раздел в конце Raffael 10 лет назад 0
Я обновил часть графического интерфейса (все еще на Win7, загрузка Win8 все еще продолжается ...). Можешь попробовать? user2196728 10 лет назад 0
msinfo32.exe также показывает npf в моей системе. Raffael 10 лет назад 0
спасибо за объяснение по запросу sc относительно различия между драйвером и сервисом Raffael 10 лет назад 0
-1
James F

If you browse to the 'Run' dialog (windows key + s, then type run for windows 8.1+) and type 'msinfo32' this will open and advanced system information dialog. Expand 'Software Environment' then select System Drivers. If you click on the heading 'name' it will sort them in order and you should find npf present, with its status in the columns to the right.

Information gleaned from here: http://www.winpcap.org/misc/faq.htm#Q-3 Tested on Windows 8.1 and Windows 10 Technical Preview.