File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -516,26 +516,16 @@ def cmd_nessus_template_list(*args)
516
516
return
517
517
when '-S' , '--search'
518
518
search_term = /#{ args . shift } /nmi
519
+ else
520
+ type = arg
519
521
end
520
522
end
521
523
522
524
if !nessus_verify_token
523
525
return
524
526
end
525
- case args . length
526
- when 1
527
- type = args [ 0 ]
528
- else
529
- print_status ( "Usage: " )
530
- print_status ( "nessus_template_list <scan> | <policy>" )
531
- print_status ( "Example:> nessus_template_list scan" )
532
- print_status ( "OR" )
533
- print_status ( "nessus_template_list policy" )
534
- print_status ( "Returns a list of information about the scan or policy templates.." )
535
- return
536
- end
537
527
if type . in? ( [ 'scan' , 'policy' ] )
538
- list = @n . list_template ( type )
528
+ list = @n . list_templates ( type )
539
529
else
540
530
print_error ( "Only scan and policy are valid templates" )
541
531
return
You can’t perform that action at this time.
0 commit comments