{"record":{"id":"797eaabf1183be14","repo":"shadow1ng/fscan","slug":"netbios-no-name-records","errorCode":null,"errorMessage":"netbios_no_name_records","messagePattern":"netbios_no_name_records","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugins/services/netbios.go","lineNumber":272,"sourceCode":"\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"%s: %w\", i18n.GetText(\"netbios_smb_session_read_failed\"), err)\n\t}\n\n\treturn p.parseNetBIOSSession(response2[:n])\n}\n\n// parseNetBIOSNames 解析NetBIOS名称查询响应\nfunc (p *NetBIOSPlugin) parseNetBIOSNames(data []byte) (*NetBIOSInfo, error) {\n\tinfo := &NetBIOSInfo{Valid: false}\n\n\tif len(data) < 57 {\n\t\treturn info, fmt.Errorf(\"%s\", i18n.GetText(\"netbios_response_too_short\"))\n\t}\n\n\t// 获取名称记录数量\n\tnumNames := int(data[56])\n\tif numNames == 0 {\n\t\treturn info, fmt.Errorf(\"%s\", i18n.GetText(\"netbios_no_name_records\"))\n\t}\n\n\tnameData := data[57:]\n\n\t// 服务类型映射\n\tuniqueNames := map[byte]string{\n\t\t0x00: \"WorkstationService\",\n\t\t0x03: \"Messenger Service\",\n\t\t0x06: \"RAS Server Service\",\n\t\t0x1F: \"NetDDE Service\",\n\t\t0x20: \"ServerService\",\n\t\t0x21: \"RAS Client Service\",\n\t\t0x1D: \"Master Browser\",\n\t\t0x1B: \"Domain Master Browser\",\n\t}\n\n\tgroupNames := map[byte]string{\n\t\t0x00: \"DomainName\",","sourceCodeStart":254,"sourceCodeEnd":290,"githubUrl":"https://github.com/shadow1ng/fscan/blob/95cc12e753bf43de7004e5aef42a9ffba3934303/plugins/services/netbios.go#L254-L290","documentation":"Guard in parseNetBIOSNames: the response passed the minimum-length check but the name-record count byte (data[56]) is zero, so the server reported no NetBIOS names. There is no name data to extract and the info stays invalid.","triggerScenarios":"Thrown at plugins/services/netbios.go:272 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the target exposes NetBIOS names (some hosts disable the service)","Query via TCP 139 instead of UDP 137","Check whether a firewall mangled the response"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"95cc12e753bf43de7004e5aef42a9ffba3934303","analyzedAt":"2026-09-06T17:07:30.094Z","contentChangedAt":"2026-09-06T17:07:30.094Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}