File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def print_exploit(exploit)
121121 #
122122 def print_metadata ( exploit )
123123 fields = {
124- 'Type' => exploit_type ( exploit )
124+ 'Type' => exploit_type_name ( exploit )
125125 }
126126
127127 if defined? ( Core ::Metadata ::Version ) &&
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ module Text
3333 include Core ::CLI ::Text ::Params
3434
3535 # Known exploit types and their printable names.
36- EXPLOIT_TYPES = {
36+ EXPLOIT_TYPE_NAMES = {
3737 exploit : 'Custom' ,
3838
3939 # generic exploits
@@ -64,8 +64,8 @@ module Text
6464 #
6565 # @return [String]
6666 #
67- def exploit_type ( exploit_class )
68- EXPLOIT_TYPES . fetch ( exploit_class . exploit_type , 'unknown' )
67+ def exploit_type_name ( exploit_class )
68+ EXPLOIT_TYPE_NAMES . fetch ( exploit_class . exploit_type , 'unknown' )
6969 end
7070
7171 #
You can’t perform that action at this time.
0 commit comments