File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def self.included(command)
6161 def import_vuln ( vuln )
6262 Importer . import ( vuln )
6363
64- vuln_type = vuln_type ( vuln )
64+ vuln_type = vuln_type_name ( vuln )
6565 param_type = vuln_param_type ( vuln )
6666 param_name = vuln_param_name ( vuln )
6767
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ module Printing
4444 # The web vulnerability to log.
4545 #
4646 def log_vuln ( vuln )
47- vuln_type = vuln_type ( vuln )
47+ vuln_type = vuln_type_name ( vuln )
4848 param_type = vuln_param_type ( vuln )
4949 param_name = vuln_param_name ( vuln )
5050
@@ -70,7 +70,7 @@ def log_vuln(vuln)
7070 # @since 0.2.0
7171 #
7272 def print_vuln ( vuln , print_curl : false , print_http : false )
73- vuln_type = vuln_type ( vuln )
73+ vuln_type = vuln_type_name ( vuln )
7474 param_type = vuln_param_type ( vuln )
7575 param_name = vuln_param_name ( vuln )
7676
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class CLI
2828 #
2929 module Text
3030 # Known vulnerability types and their display names.
31- VULN_TYPES = {
31+ VULN_TYPE_NAMES = {
3232 command_injection : 'Command Injection' ,
3333 open_redirect : 'Open Redirect' ,
3434 reflected_xss : 'reflected XSS' ,
@@ -47,8 +47,8 @@ module Text
4747 #
4848 # @return [String]
4949 #
50- def vuln_type ( vuln )
51- VULN_TYPES . fetch ( vuln . class . vuln_type )
50+ def vuln_type_name ( vuln )
51+ VULN_TYPE_NAMES . fetch ( vuln . class . vuln_type )
5252 end
5353
5454 #
You can’t perform that action at this time.
0 commit comments