owasp-amass / amass

In-depth attack surface mapping and asset discovery
https://owasp.org/www-project-amass/
Other
11.63k stars 1.85k forks source link

panic: runtime error: index out of range [0] with length 0 #979

Open DuyVuong opened 9 months ago

DuyVuong commented 9 months ago

im getting this error when executing this basic command

(root㉿kali)-[~] └─# amass enum -d example.com panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]: github.com/owasp-amass/resolve.(*Resolvers).ClientSubnetCheck(0xc0003b0000) /build/amass-OqngEC/amass-4.2.0/build/pkg/mod/github.com/owasp-amass/resolve@v0.6.21/ecs.go:38 +0x466 github.com/owasp-amass/amass/v4/systems.untrustedResolvers(0xc000454000) /build/amass-OqngEC/amass-4.2.0/systems/local.go:337 +0x1c5 github.com/owasp-amass/amass/v4/systems.NewLocalSystem(0xc000454000) /build/amass-OqngEC/amass-4.2.0/systems/local.go:51 +0x65 main.runEnumCommand({0xc0000400a0?, 0xc000040090?, 0xc0003ba3c0?}) /build/amass-OqngEC/amass-4.2.0/cmd/amass/enum.go:167 +0x348 main.main() /build/amass-OqngEC/amass-4.2.0/cmd/amass/main.go:110 +0x2f2

┌──(root㉿kali)-[~] └─# amass -version v4.2.0

how can i fix this? Thanks