| 1 |
#!/usr/bin/perl |
| 2 |
|
| 3 |
use strict; |
| 4 |
use warnings; |
| 5 |
use utf8; |
| 6 |
|
| 7 |
use App::CVSS; |
| 8 |
|
| 9 |
exit App::CVSS->run(@ARGV) unless caller(); |
| 10 |
|
| 11 |
1; |
| 12 |
__END__ |
| 13 |
=encoding utf-8 |
| 14 |
|
| 15 |
=head1 NAME |
| 16 |
|
| 17 |
cvss - CVSS (Common Vulnerability Scoring System) command line interface |
| 18 |
|
| 19 |
=head1 SYNOPSIS |
| 20 |
|
| 21 |
cvss [OPTIONS]...STRING |
| 22 |
cvss [--help|--man|-v] |
| 23 |
|
| 24 |
Options: |
| 25 |
--help Brief help message |
| 26 |
--man Full documentation |
| 27 |
-v Print version |
| 28 |
|
| 29 |
--score Base score |
| 30 |
--severity Base severity |
| 31 |
|
| 32 |
--base-score |
| 33 |
--base-severity |
| 34 |
|
| 35 |
--temporal-score |
| 36 |
--temporal-severity |
| 37 |
|
| 38 |
--environmental-score |
| 39 |
--environmental-severity |
| 40 |
|
| 41 |
--exploitability-score |
| 42 |
--impact-score |
| 43 |
--modified-impact-score |
| 44 |
|
| 45 |
-0, --null Return NULL char instead of new line |
| 46 |
|
| 47 |
--format=FORMAT Output format |
| 48 |
--json JSON output format (--format=json) |
| 49 |
--xml XML output format (--format=xml) |
| 50 |
|
| 51 |
Examples: |
| 52 |
|
| 53 |
Decode the provided CVSS vector string: |
| 54 |
|
| 55 |
cvss CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H --json | jq |
| 56 |
|
| 57 |
Display the base score: |
| 58 |
|
| 59 |
cvss CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H --base-score |
| 60 |
|
| 61 |
Display the base severity: |
| 62 |
|
| 63 |
cvss CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H --base-severity |
| 64 |
|
| 65 |
|
| 66 |
=head1 DESCRIPTION |
| 67 |
|
| 68 |
C<cvss> CVSS (Common Vulnerability Scoring System) command line interface |
| 69 |
|
| 70 |
=head1 EXAMPLES |
| 71 |
|
| 72 |
Decode the provided CVSS vector string and return JSON and send the STDOUT to L<jq>: |
| 73 |
|
| 74 |
cvss CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H --json | jq |
| 75 |
|
| 76 |
Display the base score: |
| 77 |
|
| 78 |
cvss CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H --base-score |
| 79 |
|
| 80 |
Display the base severity: |
| 81 |
|
| 82 |
cvss CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H --base-severity |
| 83 |
|
| 84 |
=head1 AUTHOR |
| 85 |
|
| 86 |
L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt> |
| 87 |
|
| 88 |
=head1 COPYRIGHT AND LICENSE |
| 89 |
|
| 90 |
Copyright © 2023-2026 L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt> |
| 91 |
|
| 92 |
You may use and distribute this module according to the same terms |
| 93 |
that Perl is distributed under. |