Nuke datastore modification check from orbit

bug/bundler_fix
William Vu 2015-02-11 12:46:40 -06:00
parent fd11afff1a
commit c73892b721
1 changed files with 0 additions and 6 deletions

View File

@ -531,12 +531,6 @@ class Msftidy
error("Writes to stdout", idx)
end
# You should not change datastore in code. See
# https://github.com/rapid7/metasploit-framework/issues/3853
if ln =~ /(?<!\.)datastore\[["'][^"']+["']\]\s*(=|<<)(?![=~>])/
info("datastore is modified in code with '#{Regexp.last_match(1)}': #{ln}", idx)
end
# do not read Set-Cookie header (ignore commented lines)
if ln =~ /^(?!\s*#).+\[['"]Set-Cookie['"]\](?!\s*=[^=~]+)/i
warn("Do not read Set-Cookie header directly, use res.get_cookies instead: #{ln}", idx)