
Nmap Development mailing list archives
smb-system-info.nse - bug & patch
From: Josh Greenwood <joshgreenwood () gmail com>
Date: Mon, 9 Sep 2013 23:00:38 -0700
Hi, Error: NSE: smb-system-info against [IP] threw an error! nmap/scripts/smb-system-info.nse:133: attempt to index field 'number_of_processors' (a number value) stack traceback: nmap/scripts/smb-system-info.nse:133: in function 'get_info_registry' nmap/scripts/smb-system-info.nse:186: in function <nmap/scripts/smb-system-info.nse:184> (...tail calls...) Lines 132-133: -- remove trailing zero terminator local num_procs = result['number_of_processors']:match("^[^%z]*") It's assuming result['number_of_processors'] is a string, but it's set to a number when result['status-number_of_processors'] is false. Lines 122-124: if(result['status-number_of_processors'] == false) then result['number_of_processors'] = 0 end Patch: 123c123 < result['number_of_processors'] = 0 ---
result['number_of_processors'] = '0'
Thanks, Josh _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- smb-system-info.nse - bug & patch Josh Greenwood (Sep 10)