File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ def check_lines
537
537
#
538
538
# https://dev.metasploit.com/redmine/issues/8498#note-16
539
539
if ln =~ /(?<!\. )datastore\[ ["'][^"']+["']\] \s *(=|<<)(?![=~>])/
540
- info ( "datastore is modified in code: #{ ln } " , idx )
540
+ info ( "datastore is modified in code with ' #{ Regexp . last_match ( 1 ) } ' : #{ ln } " , idx )
541
541
end
542
542
543
543
# do not read Set-Cookie header (ignore commented lines)
@@ -590,8 +590,12 @@ def check_udp_sock_get
590
590
end
591
591
end
592
592
593
+ # At one point in time, somebody committed a module with a bad metasploit.com URL
594
+ # in the header -- http//metasploit.com/download rather than http://metasploit.com/download.
595
+ # This module then got copied and committed 20+ times and is used in numerous other places.
596
+ # This ensures that this stops.
593
597
def check_invalid_url_scheme
594
- test = @source . scan ( /^.+http\/ \/ .+$ / )
598
+ test = @source . scan ( /^# .+http\/ \/ metasploit.com / )
595
599
unless test . empty?
596
600
test . each { |item |
597
601
info ( "Invalid URL: #{ item } " )
You can’t perform that action at this time.
0 commit comments