mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
fix: 跳过snmp社区字符串暴力破解中的冗余public探测
This commit is contained in:
@@ -40,8 +40,12 @@ func (p *SNMPPlugin) Scan(ctx context.Context, info *common.HostInfo, session *c
|
||||
}
|
||||
|
||||
communities := p.buildCommunityList(config)
|
||||
alreadyProbed := "public"
|
||||
var found []string
|
||||
for _, community := range communities {
|
||||
if community == alreadyProbed {
|
||||
continue
|
||||
}
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user