-
Notifications
You must be signed in to change notification settings - Fork 744
Add: nasl builtin plugin_run_synscan() #2055
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
base: main
Are you sure you want to change the base?
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
e9a63a5 to
042c825
Compare
96001a6 to
41f6101
Compare
Tehforsch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you! Some really minor comments
| socket2::Type::RAW, | ||
| Some(Protocol::from(IPPROTO_RAW)), | ||
| ) | ||
| // .map_err(|e| AliveTestError::NoSocket(e.to_string())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove?
| for port in ports.iter() { | ||
| count += 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this logic, count will never be anything other than ports.len(), so we might as well get rid of it.
| } | ||
|
|
||
| #[nasl_function] | ||
| async fn plugin_run_synscan(configs: &ScanCtx<'_>) -> Result<(), FnError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personal nitpick: I much prefer ctx or context as a variable name for ScanCtx because configs is imo simply misleading
What:
Add: nasl builtin plugin_run_synscan()
SC-1410
Why:
How:
Checklist: