Land #3198, msftidy disclosure date fix

bug/bundler_fix
William Vu 2014-04-07 14:30:30 -05:00
commit e0966f7a46
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
1 changed files with 2 additions and 2 deletions

View File

@ -324,7 +324,7 @@ class Msftidy
end
def check_disclosure_date
return if @source =~ /Generic Payload Handler/ or @source !~ / \< Msf::Exploit/
return if @source =~ /Generic Payload Handler/
# Check disclosure date format
if @source =~ /["']DisclosureDate["'].*\=\>[\x0d\x20]*['\"](.+)['\"]/
@ -343,7 +343,7 @@ class Msftidy
error('Incorrect disclosure date format')
end
else
error('Exploit is missing a disclosure date')
error('Exploit is missing a disclosure date') if @source =~ / \< Msf::Exploit/
end
end