Skip to content

SDK is always printing to stdout #1414

@ogow

Description

@ogow

Naabu version:

v2.3.4 SDK

Current Behavior:

When using the sdk i can't choose to not print results to stdout.
I have also tried to change logging levels with gologger with no luck.

Expected Behavior:

I don't want the results to be printed to stdout, i want to print the results my self if needed to be printed.

Steps To Reproduce:

options := runner.Options{
		Host:     string[]{"netflix.com"},
		ScanType: "s",
		OnResult: func(hr *result.HostResult) {
			out <- hr
		},
		Ports:             "80,443",
		Verbose:           false,
		Rate:              500,
		Retries:           3,
		WarmUpTime:        2,
		Timeout:           2 * time.Second,
		Threads:           25,
		DisableStdin:      true,
		Debug:             false,
		Silent:            true,
		Stream:            true,
	}

	naabuRunner, err := runner.NewRunner(&options)
	if err != nil {
		log.Fatalf("Could not create a new naabu runner err: %v", err)
	}

	defer naabuRunner.Close()

	if err := naabuRunner.RunEnumeration(r.ctx); err != nil {
		log.Fatalf("Could not run naabu enumeration, err: %v", err)
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions