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 @@ -354,6 +354,7 @@ mod tests {
354
354
true ,
355
355
vec ! [ 9000 ] ,
356
356
false ,
357
+ false ,
357
358
) ;
358
359
block_on ( scanner. run ( ) ) ;
359
360
// if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -378,6 +379,7 @@ mod tests {
378
379
true ,
379
380
vec ! [ 9000 ] ,
380
381
false ,
382
+ false ,
381
383
) ;
382
384
block_on ( scanner. run ( ) ) ;
383
385
// if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -401,6 +403,7 @@ mod tests {
401
403
true ,
402
404
vec ! [ 9000 ] ,
403
405
false ,
406
+ false ,
404
407
) ;
405
408
block_on ( scanner. run ( ) ) ;
406
409
assert_eq ! ( 1 , 1 ) ;
@@ -423,6 +426,7 @@ mod tests {
423
426
true ,
424
427
vec ! [ 9000 ] ,
425
428
false ,
429
+ false ,
426
430
) ;
427
431
block_on ( scanner. run ( ) ) ;
428
432
assert_eq ! ( 1 , 1 ) ;
@@ -448,6 +452,7 @@ mod tests {
448
452
true ,
449
453
vec ! [ 9000 ] ,
450
454
false ,
455
+ false ,
451
456
) ;
452
457
block_on ( scanner. run ( ) ) ;
453
458
assert_eq ! ( 1 , 1 ) ;
@@ -472,6 +477,7 @@ mod tests {
472
477
true ,
473
478
vec ! [ 9000 ] ,
474
479
true ,
480
+ false ,
475
481
) ;
476
482
block_on ( scanner. run ( ) ) ;
477
483
// if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -496,6 +502,7 @@ mod tests {
496
502
true ,
497
503
vec ! [ 9000 ] ,
498
504
true ,
505
+ false ,
499
506
) ;
500
507
block_on ( scanner. run ( ) ) ;
501
508
// if the scan fails, it wouldn't be able to assert_eq! as it panicked!
@@ -519,6 +526,7 @@ mod tests {
519
526
true ,
520
527
vec ! [ 9000 ] ,
521
528
true ,
529
+ false ,
522
530
) ;
523
531
block_on ( scanner. run ( ) ) ;
524
532
assert_eq ! ( 1 , 1 ) ;
@@ -541,6 +549,7 @@ mod tests {
541
549
true ,
542
550
vec ! [ 9000 ] ,
543
551
true ,
552
+ false ,
544
553
) ;
545
554
block_on ( scanner. run ( ) ) ;
546
555
assert_eq ! ( 1 , 1 ) ;
You can’t perform that action at this time.
0 commit comments