Skip to content

First attempt enabling exclude port list capability Issue #530 - #534

Merged
bee-san merged 8 commits into
bee-san:masterfrom
wasuaje:feature/wasuaje/add-exclude-port-option
Apr 10, 2024
Merged

First attempt enabling exclude port list capability Issue #530 #534
bee-san merged 8 commits into
bee-san:masterfrom
wasuaje:feature/wasuaje/add-exclude-port-option

Conversation

@wasuaje

@wasuaje wasuaje commented Jan 26, 2024

Copy link
Copy Markdown
Contributor

Added option to exclude port from scanning, so now users can run

rustscan -b 2000 -t 5000 -a 127.0.0.1 --ulimit 5000 --exclude-ports 9000,8000

And get the desired ports excluding the provided list.

@wasuaje

wasuaje commented Jan 26, 2024

Copy link
Copy Markdown
Contributor Author

Fixes Issue #530

@bee-san

bee-san commented Feb 3, 2024

Copy link
Copy Markdown
Owner

Thanks for this! Let me run CI :)

@bee-san

bee-san commented Feb 3, 2024

Copy link
Copy Markdown
Owner

:( CI fails due to linter changing, i canlook at this

@skynet594

Copy link
Copy Markdown

i will give it a try and see

@bee-san

bee-san commented Apr 6, 2024

Copy link
Copy Markdown
Owner

Hi! Mind pushing an empty commit? CI has failed to pick this up and I think it'll only pick it up on a new commit? 🤔

@wasuaje

wasuaje commented Apr 6, 2024 via email

Copy link
Copy Markdown
Contributor Author

@wasuaje

wasuaje commented Apr 8, 2024

Copy link
Copy Markdown
Contributor Author

Hi! Mind pushing an empty commit? CI has failed to pick this up and I think it'll only pick it up on a new commit? 🤔

Done!

@CMNatic

CMNatic commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

Thanks @wasuaje. mhhm seems like the CI workflows haven't ran here? It looks like it's waiting for approval from a maintainer before the build checks are ran @bee-san https://github.com/RustScan/RustScan/actions/runs/8600212606

And if you look at our workflows they are also requiring actions on our side now (https://github.com/RustScan/RustScan/actions) before running.

Strange how this is suddenly a problem/thing. I wonder if the actual runners themselves changed recently?

@bee-san

bee-san commented Apr 8, 2024

Copy link
Copy Markdown
Owner

CI running!

@wasuaje

wasuaje commented Apr 8, 2024 via email

Copy link
Copy Markdown
Contributor Author

@bee-san

bee-san commented Apr 8, 2024

Copy link
Copy Markdown
Owner

Nice! El lun, 8 abr 2024 a las 13:31, Autumn (Bee) @.>) escribió:

CI running! — Reply to this email directly, view it on GitHub <#534 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDVBTMXYGVSNOYTYODS4BDY4LA6JAVCNFSM6AAAAABCMIE5Z6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTGE4DQNZUGU . You are receiving this because you were mentioned.Message ID: @.
>

Just need to run cargo fmt!

@wasuaje

wasuaje commented Apr 8, 2024

Copy link
Copy Markdown
Contributor Author

Forgot to run cargo fmt without the check parameter, now it is ok, can retry the CI

@bee-san

bee-san commented Apr 9, 2024

Copy link
Copy Markdown
Owner

@ca

Forgot to run cargo fmt without the check parameter, now it is ok, can retry the CI

Cargo clippy is failing :P

@bee-san

bee-san commented Apr 9, 2024

Copy link
Copy Markdown
Owner

Make sure:

  • Cargo fmt
  • Cargo clippy
  • Cargo test

Are all ok and it should be ok!

@wasuaje

wasuaje commented Apr 9, 2024 via email

Copy link
Copy Markdown
Contributor Author

@wasuaje

wasuaje commented Apr 9, 2024

Copy link
Copy Markdown
Contributor Author

Done, all ok!

@bee-san

bee-san commented Apr 9, 2024

Copy link
Copy Markdown
Owner

cargo clippy is still failing :(

 error: used `cloned` where `copied` could be used instead
Error:   --> src/scanner/mod.rs:75:14
   |
75 |             .cloned()
   |              ^^^^^^ help: try: `copied`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cloned_instead_of_copied
   = note: `-D clippy::cloned-instead-of-copied` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::cloned_instead_of_copied)]`

Comment thread src/scanner/mod.rs Outdated
.order()
.iter()
.filter(|&port| !self.exclude_ports.contains(port))
.cloned()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Meant to be copied here

@wasuaje

wasuaje commented Apr 9, 2024 via email

Copy link
Copy Markdown
Contributor Author

@bee-san
bee-san merged commit 170f57c into bee-san:master Apr 10, 2024
@bee-san

bee-san commented Apr 10, 2024

Copy link
Copy Markdown
Owner

thank you!!

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.

4 participants