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 @@ -354,6 +354,7 @@ mod tests {
354354 true ,
355355 vec ! [ 9000 ] ,
356356 false ,
357+ false ,
357358 ) ;
358359 block_on ( scanner. run ( ) ) ;
359360 // if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -378,6 +379,7 @@ mod tests {
378379 true ,
379380 vec ! [ 9000 ] ,
380381 false ,
382+ false ,
381383 ) ;
382384 block_on ( scanner. run ( ) ) ;
383385 // if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -401,6 +403,7 @@ mod tests {
401403 true ,
402404 vec ! [ 9000 ] ,
403405 false ,
406+ false ,
404407 ) ;
405408 block_on ( scanner. run ( ) ) ;
406409 assert_eq ! ( 1 , 1 ) ;
@@ -423,6 +426,7 @@ mod tests {
423426 true ,
424427 vec ! [ 9000 ] ,
425428 false ,
429+ false ,
426430 ) ;
427431 block_on ( scanner. run ( ) ) ;
428432 assert_eq ! ( 1 , 1 ) ;
@@ -448,6 +452,7 @@ mod tests {
448452 true ,
449453 vec ! [ 9000 ] ,
450454 false ,
455+ false ,
451456 ) ;
452457 block_on ( scanner. run ( ) ) ;
453458 assert_eq ! ( 1 , 1 ) ;
@@ -472,6 +477,7 @@ mod tests {
472477 true ,
473478 vec ! [ 9000 ] ,
474479 true ,
480+ false ,
475481 ) ;
476482 block_on ( scanner. run ( ) ) ;
477483 // if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -496,6 +502,7 @@ mod tests {
496502 true ,
497503 vec ! [ 9000 ] ,
498504 true ,
505+ false ,
499506 ) ;
500507 block_on ( scanner. run ( ) ) ;
501508 // if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -519,6 +526,7 @@ mod tests {
519526 true ,
520527 vec ! [ 9000 ] ,
521528 true ,
529+ false ,
522530 ) ;
523531 block_on ( scanner. run ( ) ) ;
524532 assert_eq ! ( 1 , 1 ) ;
@@ -541,6 +549,7 @@ mod tests {
541549 true ,
542550 vec ! [ 9000 ] ,
543551 true ,
552+ false ,
544553 ) ;
545554 block_on ( scanner. run ( ) ) ;
546555 assert_eq ! ( 1 , 1 ) ;
You can’t perform that action at this time.
0 commit comments