Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using as library documentation #432

Closed
ehsandeep opened this issue Oct 1, 2022 · 2 comments · Fixed by #446 or #459
Closed

Using as library documentation #432

ehsandeep opened this issue Oct 1, 2022 · 2 comments · Fixed by #446 or #459
Assignees
Labels
Priority: Medium This issue may be useful, and needs some attention. Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@ehsandeep
Copy link
Member

Please describe your feature request:

A document including examples to use naabu into go projects + integration test

Describe the use case of this feature:

As a developer, I wanted to integrate naabu into my go project to utilize all the features of naabu.

@ehsandeep ehsandeep added Type: Enhancement Most issues will probably ask for additions or changes. Priority: Medium This issue may be useful, and needs some attention. labels Oct 1, 2022
@nikkhilgoyal
Copy link

Want to use passive scan feature of naabu to get open ports.

@Mzack9999 Mzack9999 self-assigned this Oct 18, 2022
@Mzack9999 Mzack9999 linked a pull request Oct 18, 2022 that will close this issue
@Mzack9999
Copy link
Member

@nikkhilgoyal Just set Passive to true and provide a callback for OnResult:

options := runner.Options{
	ResumeCfg: &runner.ResumeCfg{},
	Retries:   1,
	Host: "scanme.sh",
	Passive:   true,  // set to true
	OnResult:  func(hr *result.HostResult) {}, // provide a callback
}

@ehsandeep ehsandeep added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Oct 19, 2022
@ehsandeep ehsandeep linked a pull request Oct 25, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium This issue may be useful, and needs some attention. Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants