1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Update pattern_offset.rb

This commit is contained in:
x90" * 365 2016-04-14 15:29:57 -04:00
parent 2293047a9e
commit 2a1831f4f2

View File

@ -47,6 +47,8 @@ module PatternOffset
if options.empty?
raise OptionParser::MissingArgument, 'No options set, try -h for usage'
elsif options[:query].blank?
raise OptionParser::MissingArgument, '-q <query> is required'
elsif options[:length].blank? && options[:sets]
raise OptionParser::MissingArgument, '-l <length> is required'
end