WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@jjnicola
Copy link
Member

What:
Add: nasl builtin plugin_run_synscan()
SC-1410

Why:

How:

Checklist:

  • Tests
  • PR merge commit message adjusted

@github-actions
Copy link

github-actions bot commented Oct 31, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 4936cab.
Ensure 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 Files

None

@jjnicola jjnicola marked this pull request as ready for review November 5, 2025 17:53
@jjnicola jjnicola requested a review from a team as a code owner November 5, 2025 17:53
@jjnicola jjnicola enabled auto-merge (squash) November 5, 2025 17:53
Copy link
Contributor

@Tehforsch Tehforsch left a 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()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove?

Comment on lines +174 to +175
for port in ports.iter() {
count += 1;
Copy link
Contributor

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> {
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants