Merge branch 'msftidy-loadcheck' of git://github.com/todb-r7/metasploit-framework into todb-r7-msftidy-loadcheck

unstable
sinn3r 2012-10-29 10:01:15 -05:00
commit 2664fc83fa
1 changed files with 4 additions and 0 deletions

View File

@ -208,6 +208,10 @@ class Msftidy
end
end
if ln =~/^[ \t]*load[ \t]+[\x22\x27]/
error("Loading (not requiring) a file: #{ln.inspect}", idx)
end
# The rest of these only count if it's not a comment line
next if ln =~ /[[:space:]]*#/