* refactor: make RustScan additionally a library
- add `lib.rs` (permitted as per
[_Packages and Crates_](https://doc.rust-lang.org/book/ch07-01-packages-and-crates.html)).
- refactor `main.rs` to reference the library.
- update module references as required.
* doc: correct documentation issues
- fix some failing doc-tests.
- amend formatting causing misinterpretation as code-samples.
- mark some examples as
[`compile_fail`](https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#attributes)
as there's no immediate way to instantiate the required `struct`.
* docs: add basic module documentation
- add lib-level docs. including a minimal example.
- add minimal, headline information for each module.
Changed this :
For things like --script '(safe and vuln)' enclose it in quotations marks \"'(safe and vuln)'\"")
to:
For things like --script '(safe and vuln)' enclose it in quotations marks \"'(safe and vuln)'\"
* First attempt enabling exclude port list capability
* disabling a not desired println! used for debugging purpose
* fixing small typo: dbg! by debug!
* adding emtpy commit to make CI/CD pass
* running cargo fmt and removing a TODO comment
* Actually running cargo fmt without check LoL
* fixed some clippy error
* fixing one more cargo clippy complain
---------
Co-authored-by: Wuelfhis Asuaje <[email protected]>
* fix port range to include end
* empty
Signed-off-by: Maximiliano Molina <[email protected]>
---------
Signed-off-by: Maximiliano Molina <[email protected]>
Improve documentation for addresses CLI arg to make it
clear that file parsing of addresses is already supported
(#452)
Co-authored-by: Bee <[email protected]>
* Changed dns resolving library to to_socket_addrs and removed the usage of trust-dns
* Reverted automatic IDE spacing
* Ran cargo fmt on the code
* Made trust-dns a fallback dns resolver and reverted cargo toml and lock
* Reverted cargo.lock
* Ran cargo fmt
* Changed style of err checking
* Fixed errors
* Fixed merging errors
* Changed for CR
Co-authored-by: Bee <[email protected]>
By default the number of try is 1, it can be set on the command line by using
--tries option.
This should closeRustScan/RustScan#38.
Co-authored-by: Bee <[email protected]>
This has the benefit of making the input flexible and fixing an existing
bug that happens when a single port is specified, see #211.
Other benefits:
- We are now parsing only failures as a file, reducing the amount of
attempts to open a file.
- We check if a file exists before trying to open it.
Fixes#211
Co-authored-by: Bee <[email protected]>