Manually merged DNS extension code (pull request 967 from @soh-cah-toa)

This commit is contained in:
antisnatchor
2014-03-02 12:56:33 +00:00
parent 9dcff5184d
commit ec9cf4d460
14 changed files with 457 additions and 452 deletions

View File

@@ -9,12 +9,12 @@ class TC_Grep < Test::Unit::TestCase
def test_grep_eval
Dir['../../**/*.rb'].each do |path|
File.open( path ) do |f|
File.open(path) do |f|
next if /tc_grep.rb/.match(path) # skip this file
next if /\/msf-test\//.match(path) # skip this file
next if /extensions\/dns/.match(path) # skip this file
f.grep( /\Weval\W/im ) do |line|
f.grep(/\Weval\W/im) do |line|
assert(false, "Illegal use of 'eval' in framework: " + path + ':' + line)
end
end