From fce4c9196da69dd3425edc39152359c053cf690c Mon Sep 17 00:00:00 2001 From: soh_cah_toa Date: Mon, 3 Jun 2013 21:53:06 -0400 Subject: [PATCH] Modified grep test case to allow #eval use in DNS extension. Using #eval is necessary for normal functioning and is now used in a safe manner. --- test/unit/tc_grep.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/tc_grep.rb b/test/unit/tc_grep.rb index accc2e29a..df17f7c0d 100644 --- a/test/unit/tc_grep.rb +++ b/test/unit/tc_grep.rb @@ -12,12 +12,13 @@ class TC_Grep < Test::Unit::TestCase 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| assert(false, "Illegal use of 'eval' in framework: " + path + ':' + line) end end end - end end