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:
parent
2293047a9e
commit
2a1831f4f2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user