Skip to content

Commit

Permalink
No longer check status of Loopback Adapter (deprecated) in npcapwatch…
Browse files Browse the repository at this point in the history
…dog. Fixes nmap#236
  • Loading branch information
bonsaiviking committed Sep 8, 2021
1 parent d701d41 commit 5228f82
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions installer/CheckStatus.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,11 @@ for /F "usebackq tokens=1,4" %%A in (`sc.exe qc npcap`) do (
)
)
)
if exist "%NPCAP_DIR%\loopback.ini" (
rem NetConnectionID may be different, see nmap/nmap#1416
rem but Name will always be Npcap Loopback Adapter
%SYSTEMROOT%\wbem\wmic.exe nic GET Name,NetConnectionID | find "Npcap Loopback Adapter"
if ERRORLEVEL 1 (
rem loopback.ini is present, but the adapter is gone. Run FixInstall.bat
goto FIXINSTALL
)
)

goto ABORT

:FIXINSTALL
"%NPCAP_DIR%\FixInstall.bat"

:ABORT
exit /b 0

0 comments on commit 5228f82

Please sign in to comment.