Last 12 weeks · 0 commits
2 of 6 standards met
Repository: jessfraz/netscan. Description: Scan network ips and ports. Stars: 263, Forks: 54. Primary language: Go. Languages: Go (53.3%), Makefile (42.7%), Dockerfile (4.1%). License: MIT. Latest release: v0.3.4 (7y ago). Open PRs: 3, open issues: 2. Last activity: 3y ago. Community health: 42%. Top contributors: jessfraz, meyskens, github-actions[bot], toc-me[bot].
Hi, if you run the result will always contain the number of open ips on the specific port but always the same IP (e.g. 10.0.1.255 or 192.168.1.255). This is caused because you dereference a variable inside a GO Routine which was referenced inside a Range Loop. and then To fix that, you need to copy the id first into a variable and pass it into the go routine (as you did with address).
./netscan -d --proto tcp --port 8545 101.37.128.0/17 goroutine 44247 [runnable]: context.WithDeadline.func2() /usr/local/opt/go/libexec/src/context/context.go:387 created by time.goFunc /usr/local/opt/go/libexec/src/time/sleep.go:170 +0x44