mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 05:01:53 +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)
|
communities := p.buildCommunityList(config)
|
||||||
|
alreadyProbed := "public"
|
||||||
var found []string
|
var found []string
|
||||||
for _, community := range communities {
|
for _, community := range communities {
|
||||||
|
if community == alreadyProbed {
|
||||||
|
continue
|
||||||
|
}
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user