mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-27 05:31:53 +08:00
fix(portfinger): 修复SMB2服务指纹识别和NetInfo输出问题
- 添加SMB2ProgNeg探针支持现代Windows的SMB2协议 - 修复Go regexp对高位字节的UTF-8兼容问题,使用Latin-1转换 - 修复探针失败后连接重建逻辑 - 修复vendor_product字段名不匹配问题 - 修复NetInfo多行输出被其他日志打断的问题
This commit is contained in:
@@ -29,12 +29,7 @@ var (
|
||||
func (m *Match) ParseVersionInfo(response []byte) Extras {
|
||||
var extras = Extras{}
|
||||
|
||||
// 确保有匹配项
|
||||
if len(m.FoundItems) == 0 {
|
||||
return extras
|
||||
}
|
||||
|
||||
// 替换版本信息中的占位符(单次扫描)
|
||||
// 替换版本信息中的占位符(如 $1, $2 等)
|
||||
versionInfo := m.VersionInfo
|
||||
if len(m.FoundItems) > 0 {
|
||||
replacements := make([]string, 0, len(m.FoundItems)*2)
|
||||
|
||||
Reference in New Issue
Block a user