File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ fn criterion_benchmark(c: &mut Criterion) {
4545 true ,
4646 vec ! [ ] ,
4747 false ,
48+ false ,
4849 ) ;
4950
5051 c. bench_function ( "portscan tcp" , |b| {
@@ -61,6 +62,7 @@ fn criterion_benchmark(c: &mut Criterion) {
6162 true ,
6263 vec ! [ ] ,
6364 true ,
65+ false ,
6466 ) ;
6567
6668 let mut udp_group = c. benchmark_group ( "portscan udp" ) ;
Original file line number Diff line number Diff line change 3232//! true, // accessible, should the output be A11Y compliant?
3333//! vec![9000], // What ports should RustScan exclude?
3434//! false, // is this a UDP scan?
35+ //! false, // Output closed ports?
3536//! );
3637//!
3738//! let scan_result = block_on(scanner.run());
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ use std::string::ToString;
1717use std:: time:: Duration ;
1818
1919use rustscan:: address:: parse_addresses;
20+ use rustscan:: scanner:: PortStatus ;
2021
2122extern crate colorful;
2223extern crate dirs;
@@ -35,8 +36,6 @@ extern crate log;
3536/// Faster Nmap scanning with Rust
3637/// If you're looking for the actual scanning, check out the module Scanner
3738fn main ( ) {
38- use rustscan:: scanner:: PortStatus ;
39-
4039 #[ cfg( not( unix) ) ]
4140 let _ = ansi_term:: enable_ansi_support ( ) ;
4241
Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ mod tests {
351351 true ,
352352 vec ! [ 9000 ] ,
353353 false ,
354+ false ,
354355 ) ;
355356 block_on ( scanner. run ( ) ) ;
356357 // if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -375,6 +376,7 @@ mod tests {
375376 true ,
376377 vec ! [ 9000 ] ,
377378 false ,
379+ false ,
378380 ) ;
379381 block_on ( scanner. run ( ) ) ;
380382 // if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -398,6 +400,7 @@ mod tests {
398400 true ,
399401 vec ! [ 9000 ] ,
400402 false ,
403+ false ,
401404 ) ;
402405 block_on ( scanner. run ( ) ) ;
403406 assert_eq ! ( 1 , 1 ) ;
@@ -420,6 +423,7 @@ mod tests {
420423 true ,
421424 vec ! [ 9000 ] ,
422425 false ,
426+ false ,
423427 ) ;
424428 block_on ( scanner. run ( ) ) ;
425429 assert_eq ! ( 1 , 1 ) ;
@@ -445,6 +449,7 @@ mod tests {
445449 true ,
446450 vec ! [ 9000 ] ,
447451 false ,
452+ false ,
448453 ) ;
449454 block_on ( scanner. run ( ) ) ;
450455 assert_eq ! ( 1 , 1 ) ;
@@ -469,6 +474,7 @@ mod tests {
469474 true ,
470475 vec ! [ 9000 ] ,
471476 true ,
477+ false ,
472478 ) ;
473479 block_on ( scanner. run ( ) ) ;
474480 // if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -493,6 +499,7 @@ mod tests {
493499 true ,
494500 vec ! [ 9000 ] ,
495501 true ,
502+ false ,
496503 ) ;
497504 block_on ( scanner. run ( ) ) ;
498505 // if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -516,6 +523,7 @@ mod tests {
516523 true ,
517524 vec ! [ 9000 ] ,
518525 true ,
526+ false ,
519527 ) ;
520528 block_on ( scanner. run ( ) ) ;
521529 assert_eq ! ( 1 , 1 ) ;
@@ -538,6 +546,7 @@ mod tests {
538546 true ,
539547 vec ! [ 9000 ] ,
540548 true ,
549+ false ,
541550 ) ;
542551 block_on ( scanner. run ( ) ) ;
543552 assert_eq ! ( 1 , 1 ) ;
You can’t perform that action at this time.
0 commit comments