-
Notifications
You must be signed in to change notification settings - Fork 668
Naabu on macos is looping to scan some IP addresses.Only the first 7 or 8 can scans can be successful. #952
Copy link
Copy link
Closed
Labels
Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Nothing further to be done with this issue. Awaiting to be closed.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone
Description
OS. : Macos 14.2.1
go version : go1.21.5 darwin/arm64
Naabu on macos is looping to scan some IP addresses.Only the first 7 or 8 can scans can be successful.
Code :
package main
import (
"context"
"fmt"
"net"
"github.com/gogf/gf/v2/frame/g"
"github.com/projectdiscovery/goflags"
"github.com/projectdiscovery/naabu/v2/pkg/result"
"github.com/projectdiscovery/naabu/v2/pkg/runner"
)
func main() {
for i := 0; i < 20; i++ {
err := portScan("127.0.0.1")
if err != nil {
g.Log().Errorf(context.Background(), err.Error())
continue
}
}
}
func portScan(ip string) (err error) {
ipAddr := net.ParseIP(ip)
if ipAddr == nil {
return fmt.Errorf("invalid IP address: %s", ip)
}
fmt.Println(ip)
option := runner.Options{
Host: goflags.StringSlice{ip},
SkipHostDiscovery: true,
ScanType: "s",
TopPorts: "full",
Rate: 10000,
Retries: 3,
OnResult: func(hr *result.HostResult) {
fmt.Println(*hr)
},
}
newRunner, err := runner.NewRunner(&option)
if err != nil {
panic(err)
}
err = newRunner.RunEnumeration()
if err != nil {
return err
}
defer newRunner.Close()
return nil
}
Issue:
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1:60022
127.0.0.1:53893
127.0.0.1:58971
127.0.0.1:3306
127.0.0.1:8021
127.0.0.1:63342
127.0.0.1:5000
127.0.0.1:50010
127.0.0.1:33060
127.0.0.1:30975
127.0.0.1:30974
127.0.0.1:49159
127.0.0.1:7000
127.0.0.1:56742
127.0.0.1:7890
127.0.0.1:8080
{127.0.0.1 127.0.0.1 [60022-0-false 53893-0-false 58971-0-false 3306-0-false 8021-0-false 63342-0-false 5000-0-false 50010-0-false 33060-0-false 30975-0-false 30974-0-false 49159-0-false 7000-0-false 56742-0-false 7890-0-false 8080-0-false]}
127.0.0.1
[�[34mINF�[0m] Found 16 ports on host 127.0.0.1 (127.0.0.1)
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1:8080
127.0.0.1:30975
127.0.0.1:53893
127.0.0.1:7000
127.0.0.1:49159
127.0.0.1:58971
127.0.0.1:63342
127.0.0.1:3306
127.0.0.1:33060
127.0.0.1:50010
127.0.0.1:7890
127.0.0.1:30974
127.0.0.1:60022
127.0.0.1:5000
127.0.0.1:56742
127.0.0.1:8021
{127.0.0.1 127.0.0.1 [8080-0-false 30975-0-false 53893-0-false 7000-0-false 49159-0-false 58971-0-false 63342-0-false 3306-0-false 33060-0-false 50010-0-false 7890-0-false 30974-0-false 60022-0-false 5000-0-false 56742-0-false 8021-0-false]}
127.0.0.1
[�[34mINF�[0m] Found 16 ports on host 127.0.0.1 (127.0.0.1)
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1:33060
127.0.0.1:56742
127.0.0.1:7000
127.0.0.1:53893
127.0.0.1:3306
127.0.0.1:7890
127.0.0.1:58971
127.0.0.1:30974
127.0.0.1:49159
127.0.0.1:5000
127.0.0.1:30975
127.0.0.1:63342
127.0.0.1:8080
127.0.0.1:50010
127.0.0.1:631
127.0.0.1:60022
127.0.0.1:8021
{127.0.0.1 127.0.0.1 [33060-0-false 56742-0-false 7000-0-false 53893-0-false 3306-0-false 7890-0-false 58971-0-false 30974-0-false 49159-0-false 5000-0-false 30975-0-false 63342-0-false 8080-0-false 50010-0-false 631-0-false 60022-0-false 8021-0-false]}
127.0.0.1
[�[34mINF�[0m] Found 17 ports on host 127.0.0.1 (127.0.0.1)
[�[34mINF�[0m] Running SYN scan with root privileges
[�[34mINF�[0m] Found 16 ports on host 127.0.0.1 (127.0.0.1)
127.0.0.1:8080
127.0.0.1:60022
127.0.0.1:49159
127.0.0.1:58971
127.0.0.1:3306
127.0.0.1:8021
127.0.0.1:50010
127.0.0.1:7000
127.0.0.1:7890
127.0.0.1:56742
127.0.0.1:30975
127.0.0.1:63342
127.0.0.1:33060
127.0.0.1:53893
127.0.0.1:30974
127.0.0.1:5000
{127.0.0.1 127.0.0.1 [8080-0-false 60022-0-false 49159-0-false 58971-0-false 3306-0-false 8021-0-false 50010-0-false 7000-0-false 7890-0-false 56742-0-false 30975-0-false 63342-0-false 33060-0-false 53893-0-false 30974-0-false 5000-0-false]}
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1:53893
127.0.0.1:3306
127.0.0.1:50010
127.0.0.1:7000
127.0.0.1:63342
127.0.0.1:30975
127.0.0.1:33060
127.0.0.1:7890
127.0.0.1:5000
127.0.0.1:8080
127.0.0.1:49159
127.0.0.1:58971
127.0.0.1:56742
127.0.0.1:8021
127.0.0.1:60022
127.0.0.1:30974
{127.0.0.1 127.0.0.1 [53893-0-false 3306-0-false 50010-0-false 7000-0-false 63342-0-false 30975-0-false 33060-0-false 7890-0-false 5000-0-false 8080-0-false 49159-0-false 58971-0-false 56742-0-false 8021-0-false 60022-0-false 30974-0-false]}
127.0.0.1
[�[34mINF�[0m] Found 16 ports on host 127.0.0.1 (127.0.0.1)
[�[34mINF�[0m] Running SYN scan with root privileges
[�[34mINF�[0m] Found 16 ports on host 127.0.0.1 (127.0.0.1)
127.0.0.1:30974
127.0.0.1:60022
127.0.0.1:63342
127.0.0.1:49159
127.0.0.1:3306
127.0.0.1:53893
127.0.0.1:5000
127.0.0.1:30975
127.0.0.1:50010
127.0.0.1:8080
127.0.0.1:56742
127.0.0.1:58971
127.0.0.1:7890
127.0.0.1:8021
127.0.0.1:33060
127.0.0.1:7000
{127.0.0.1 127.0.0.1 [30974-0-false 60022-0-false 63342-0-false 49159-0-false 3306-0-false 53893-0-false 5000-0-false 30975-0-false 50010-0-false 8080-0-false 56742-0-false 58971-0-false 7890-0-false 8021-0-false 33060-0-false 7000-0-false]}
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1:63342
127.0.0.1:49159
127.0.0.1:7000
127.0.0.1:8080
127.0.0.1:8021
127.0.0.1:30975
127.0.0.1:50010
127.0.0.1:30974
127.0.0.1:7890
127.0.0.1:56742
127.0.0.1:60022
127.0.0.1:3306
127.0.0.1:53893
127.0.0.1:58971
127.0.0.1:64239
127.0.0.1:33060
127.0.0.1:5000
{127.0.0.1 127.0.0.1 [63342-0-false 49159-0-false 7000-0-false 8080-0-false 8021-0-false 30975-0-false 50010-0-false 30974-0-false 7890-0-false 56742-0-false 60022-0-false 3306-0-false 53893-0-false 58971-0-false 64239-0-false 33060-0-false 5000-0-false]}
127.0.0.1
[�[34mINF�[0m] Found 17 ports on host 127.0.0.1 (127.0.0.1)
[�[34mINF�[0m] Running SYN scan with root privileges
[�[34mINF�[0m] Found 16 ports on host 127.0.0.1 (127.0.0.1)
127.0.0.1:33060
127.0.0.1:8080
127.0.0.1:50010
127.0.0.1:60022
127.0.0.1:63342
127.0.0.1:30974
127.0.0.1:3306
127.0.0.1:5000
127.0.0.1:64239
127.0.0.1:56742
127.0.0.1:7890
127.0.0.1:7000
127.0.0.1:30975
127.0.0.1:49159
127.0.0.1:58971
127.0.0.1:8021
{127.0.0.1 127.0.0.1 [33060-0-false 8080-0-false 50010-0-false 60022-0-false 63342-0-false 30974-0-false 3306-0-false 5000-0-false 64239-0-false 56742-0-false 7890-0-false 7000-0-false 30975-0-false 49159-0-false 58971-0-false 8021-0-false]}
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1:8021
127.0.0.1:7000
127.0.0.1:33060
127.0.0.1:60022
127.0.0.1:56742
127.0.0.1:3306
127.0.0.1:64239
127.0.0.1:50010
127.0.0.1:5000
127.0.0.1:63342
127.0.0.1:30974
127.0.0.1:58971
127.0.0.1:30975
127.0.0.1:49159
127.0.0.1:7890
127.0.0.1:8080
{127.0.0.1 127.0.0.1 [8021-0-false 7000-0-false 33060-0-false 60022-0-false 56742-0-false 3306-0-false 64239-0-false 50010-0-false 5000-0-false 63342-0-false 30974-0-false 58971-0-false 30975-0-false 49159-0-false 7890-0-false 8080-0-false]}
127.0.0.1
[�[34mINF�[0m] Found 16 ports on host 127.0.0.1 (127.0.0.1)
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
127.0.0.1
[�[34mINF�[0m] Running SYN scan with root privileges
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Nothing further to be done with this issue. Awaiting to be closed.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.