Skip to content

Commit c58c389

Browse files
committed
Merge branch 'master' into bee-add-benches
2 parents aae43ef + d150802 commit c58c389

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
//! start: 1,
2222
//! end: 1_000,
2323
//! };
24-
//! let strategy = PortStrategy::pick(&Some(range), None, ScanOrder::Random);
24+
//! let strategy = PortStrategy::pick(&Some(range), None, ScanOrder::Random); // can be serial, random or manual https://github.com/RustScan/RustScan/blob/master/src/port_strategy/mod.rs
2525
//! let scanner = Scanner::new(
26-
//! &addrs,
27-
//! 10,
28-
//! Duration::from_millis(100),
29-
//! 1,
30-
//! true,
31-
//! strategy,
32-
//! true,
33-
//! vec![9000],
34-
//! false,
26+
//! &addrs, // the addresses to scan
27+
//! 10, // batch_size is how many ports at a time should be scanned
28+
//! Duration::from_millis(100), //T imeout is the time RustScan should wait before declaring a port closed. As datatype Duration.
29+
//! 1, // Tries, how many retries should RustScan do?
30+
//! true, // greppable is whether or not RustScan should print things, or wait until the end to print only the ip
31+
//! strategy, // the port strategy used
32+
//! true, // accessible, should the output be A11Y compliant?
33+
//! vec![9000], // What ports should RustScan exclude?
34+
//! false, // is this a UDP scan?
3535
//! );
3636
//!
3737
//! let scan_result = block_on(scanner.run());

src/scripts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fn execute_script(script: &str) -> Result<String> {
281281
};
282282

283283
match Command::new(cmd)
284-
.args(&[arg, script])
284+
.args([arg, script])
285285
.stdin(Stdio::piped())
286286
.stderr(Stdio::piped())
287287
.output()

0 commit comments

Comments
 (0)