mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 21:02:44 +08:00
修复netbios模块数组越界
This commit is contained in:
parent
93245a16d0
commit
cd53258f0d
@ -125,6 +125,9 @@ func NetBIOS1(info *common.HostInfo) (nbname NbnsName, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
length := num1 + num2*256
|
length := num1 + num2*256
|
||||||
|
if len(ret) < 48+length {
|
||||||
|
return
|
||||||
|
}
|
||||||
os_version := ret[47+length:]
|
os_version := ret[47+length:]
|
||||||
tmp1 := bytes.ReplaceAll(os_version, []byte{0x00, 0x00}, []byte{124})
|
tmp1 := bytes.ReplaceAll(os_version, []byte{0x00, 0x00}, []byte{124})
|
||||||
tmp1 = bytes.ReplaceAll(tmp1, []byte{0x00}, []byte{})
|
tmp1 = bytes.ReplaceAll(tmp1, []byte{0x00}, []byte{})
|
||||||
|
Loading…
Reference in New Issue
Block a user