File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -454,13 +454,21 @@ def check_wsus_running(self):
454454 return ok , reasons
455455
456456 def check_nbtns (self ):
457+ adapters_key = "HKLM\\ SYSTEM\\ CurrentControlSet\\ Control\\ Class\\ {4d36e972-e325-11ce-bfc1-08002be10318}"
457458 key_name = "HKLM\\ SYSTEM\\ CurrentControlSet\\ Services\\ NetBT\\ Parameters\\ Interfaces"
458459 subkeys = self .reg_get_subkeys (self .dce , self .connection , key_name )
459460 success = False
460461 reasons = []
461462 missing = 0
462463 nbtns_enabled = 0
464+
463465 for subkey in subkeys :
466+ # Ignore Microsoft Kernel Debug Network Adapter
467+ kdnic_key = adapters_key + "\\ 0000"
468+ kdnic_uuid = self .reg_query_value (self .dce , self .connection , kdnic_key , "NetCfgInstanceId" )
469+ if subkey .lower () == ("Tcpip_" + kdnic_uuid ).replace ('\x00 ' ,'' ).lower ():
470+ continue
471+
464472 value = self .reg_query_value (self .dce , self .connection , key_name + "\\ " + subkey , "NetbiosOptions" )
465473 if type (value ) == DCERPCSessionError :
466474 if value .error_code == ERROR_OBJECT_NOT_FOUND :
You can’t perform that action at this time.
0 commit comments