File tree 4 files changed +13
-2
lines changed
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) {
45
45
true ,
46
46
vec ! [ ] ,
47
47
false ,
48
+ false ,
48
49
) ;
49
50
50
51
c. bench_function ( "portscan tcp" , |b| {
@@ -61,6 +62,7 @@ fn criterion_benchmark(c: &mut Criterion) {
61
62
true ,
62
63
vec ! [ ] ,
63
64
true ,
65
+ false ,
64
66
) ;
65
67
66
68
let mut udp_group = c. benchmark_group ( "portscan udp" ) ;
Original file line number Diff line number Diff line change 32
32
//! true, // accessible, should the output be A11Y compliant?
33
33
//! vec![9000], // What ports should RustScan exclude?
34
34
//! false, // is this a UDP scan?
35
+ //! false, // Output closed ports?
35
36
//! );
36
37
//!
37
38
//! 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;
17
17
use std:: time:: Duration ;
18
18
19
19
use rustscan:: address:: parse_addresses;
20
+ use rustscan:: scanner:: PortStatus ;
20
21
21
22
extern crate colorful;
22
23
extern crate dirs;
@@ -35,8 +36,6 @@ extern crate log;
35
36
/// Faster Nmap scanning with Rust
36
37
/// If you're looking for the actual scanning, check out the module Scanner
37
38
fn main ( ) {
38
- use rustscan:: scanner:: PortStatus ;
39
-
40
39
#[ cfg( not( unix) ) ]
41
40
let _ = ansi_term:: enable_ansi_support ( ) ;
42
41
Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ mod tests {
351
351
true ,
352
352
vec ! [ 9000 ] ,
353
353
false ,
354
+ false ,
354
355
) ;
355
356
block_on ( scanner. run ( ) ) ;
356
357
// if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -375,6 +376,7 @@ mod tests {
375
376
true ,
376
377
vec ! [ 9000 ] ,
377
378
false ,
379
+ false ,
378
380
) ;
379
381
block_on ( scanner. run ( ) ) ;
380
382
// if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -398,6 +400,7 @@ mod tests {
398
400
true ,
399
401
vec ! [ 9000 ] ,
400
402
false ,
403
+ false ,
401
404
) ;
402
405
block_on ( scanner. run ( ) ) ;
403
406
assert_eq ! ( 1 , 1 ) ;
@@ -420,6 +423,7 @@ mod tests {
420
423
true ,
421
424
vec ! [ 9000 ] ,
422
425
false ,
426
+ false ,
423
427
) ;
424
428
block_on ( scanner. run ( ) ) ;
425
429
assert_eq ! ( 1 , 1 ) ;
@@ -445,6 +449,7 @@ mod tests {
445
449
true ,
446
450
vec ! [ 9000 ] ,
447
451
false ,
452
+ false ,
448
453
) ;
449
454
block_on ( scanner. run ( ) ) ;
450
455
assert_eq ! ( 1 , 1 ) ;
@@ -469,6 +474,7 @@ mod tests {
469
474
true ,
470
475
vec ! [ 9000 ] ,
471
476
true ,
477
+ false ,
472
478
) ;
473
479
block_on ( scanner. run ( ) ) ;
474
480
// if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -493,6 +499,7 @@ mod tests {
493
499
true ,
494
500
vec ! [ 9000 ] ,
495
501
true ,
502
+ false ,
496
503
) ;
497
504
block_on ( scanner. run ( ) ) ;
498
505
// if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -516,6 +523,7 @@ mod tests {
516
523
true ,
517
524
vec ! [ 9000 ] ,
518
525
true ,
526
+ false ,
519
527
) ;
520
528
block_on ( scanner. run ( ) ) ;
521
529
assert_eq ! ( 1 , 1 ) ;
@@ -538,6 +546,7 @@ mod tests {
538
546
true ,
539
547
vec ! [ 9000 ] ,
540
548
true ,
549
+ false ,
541
550
) ;
542
551
block_on ( scanner. run ( ) ) ;
543
552
assert_eq ! ( 1 , 1 ) ;
You can’t perform that action at this time.
0 commit comments