Name cleanup + nbtscan improvements

This commit is contained in:
jokob-sk
2024-07-11 22:35:04 +10:00
parent 3ae0daad3c
commit bf90ee81c7
5 changed files with 54 additions and 37 deletions

View File

@@ -104,7 +104,7 @@ def execute_name_lookup (ip, timeout):
# Look for the first line containing a valid NetBIOS name entry
index = 0
for line in lines:
if ip in line:
if 'Doing NBT name scan' not in line and ip in line:
# Split the line and extract the primary NetBIOS name
parts = line.split()
if parts: