File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ def green
30
30
"\e [1;32;40m#{ self } \e [0m"
31
31
end
32
32
33
+ def cyan
34
+ "\e [1;36;40m#{ self } \e [0m"
35
+ end
36
+
33
37
def ascii_only?
34
38
self =~ Regexp . new ( '[\x00-\x08\x0b\x0c\x0e-\x19\x7f-\xff]' , nil , 'n' ) ? false : true
35
39
end
@@ -83,6 +87,13 @@ def fixed(txt, line=0)
83
87
puts "#{ @full_filepath } #{ line_msg } - [#{ 'FIXED' . green } ] #{ cleanup_text ( txt ) } "
84
88
end
85
89
90
+ #
91
+ # Display an info message. Info messages do not alter the exit status.
92
+ #
93
+ def info ( txt , line = 0 )
94
+ line_msg = ( line >0 ) ? ":#{ line } " : ''
95
+ puts "#{ @full_filepath } #{ line_msg } - [#{ 'INFO' . cyan } ] #{ cleanup_text ( txt ) } "
96
+ end
86
97
87
98
##
88
99
#
@@ -485,10 +496,10 @@ def check_vuln_codes
485
496
end
486
497
487
498
def check_vars_get
488
- test = @source . scan ( /send_request_(?:cgi|raw) \s *\( \s *\{ ?\s *['"]uri['"]\s *=>\s *[^=})]*?\? [^,})]+/im )
499
+ test = @source . scan ( /send_request_cgi \s *\( \s *\{ ?\s *['"]uri['"]\s *=>\s *[^=})]*?\? [^,})]+/im )
489
500
unless test . empty?
490
501
test . each { |item |
491
- warn ( "Please use vars_get in send_request_cgi and send_request_raw : #{ item } " )
502
+ info ( "Please use vars_get in send_request_cgi: #{ item } " )
492
503
}
493
504
end
494
505
end
You can’t perform that action at this time.
0 commit comments