wjlab / Darksteel

域内自动化信息搜集利用工具
Other
399 stars 41 forks source link

Panic in Windows Server 2019 #1

Closed Fankaren closed 1 year ago

Fankaren commented 1 year ago

panic: runtime error: slice bounds out of range [1:0]

goroutine 1 [running]: darksteel/ldap.SearchExchangeComputer(0x11855e4c, {0x119047c8, 0x13}, 0x0, {0x0, 0x0}) /Users/cx/D/darksteel/ldap/exchange.go:31 +0x578 darksteel/ldap.LdapInit({0x1180c0e0, 0xd}, {0x1180c110, 0xe}, {0x118141a0, 0x20}, {0x1180c150, 0xd}, {0x0, 0x0}, ...) /Users/cx/D/darksteel/ldap/ldap.go:112 +0xd2a main.main() /Users/cx/D/darksteel/main.go:148 +0x16f5

lovechuxin commented 1 year ago

感谢您发现了此bug,我已修复。因为把exchange的数据进行了切片处理,如果没有服务会导致数组越界,已修补