Some targets are missing from the results after running the `Run()` command sometimes.
Closed this issue · 1 comments
fadhilyori commented
Describe the bug:
Some targets are missing from the results after running the Run()
command sometimes.
To Reproduce:
Steps to reproduce the behavior:
- Modify
main.go
to print the length ofs.Results
ands.Targets
. - Run the command using large hosts, for example,
/16
or/24
, and use high concurrency (256). - The length of
s.Results
sometimes does not match the length ofs.Targets
. If we print the map, we can observe that some IP addresses are not present.
Expected behavior:
The length of s.Results
should be the same as the length of s.Targets
.
Screenshots:
The IP address 127.0.0.3
is not present in s.Results
.
Additional context
This issue arises due to unsynchronized data stores among goroutines.
izzatbey commented