mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-29 18:07:27 +01:00
whitespace and remove useless comments
This commit is contained in:
parent
c3e618ad37
commit
7b83b06ad5
@ -1,7 +1,4 @@
|
||||
#!/usr/bin/env ruby
|
||||
#
|
||||
# $Id$
|
||||
# $Revision$
|
||||
|
||||
msfbase = __FILE__
|
||||
while File.symlink?(msfbase)
|
||||
@ -25,11 +22,11 @@ module PatternCreate
|
||||
opt.banner = "Usage: #{__FILE__} [options]\nExample: #{__FILE__} -l 50 -s ABC,def,123\nAd1Ad2Ad3Ae1Ae2Ae3Af1Af2Af3Bd1Bd2Bd3Be1Be2Be3Bf1Bf"
|
||||
opt.separator ''
|
||||
opt.separator 'Options:'
|
||||
opt.on('-l', '--length <length>', Integer, "The length of the pattern") do |len|
|
||||
opt.on('-l', '--length <length>', Integer, "The length of the pattern") do |len|
|
||||
options[:length] = len
|
||||
end
|
||||
|
||||
opt.on('-s', '--sets <ABC,def,123>', Array, "Custom Pattern Sets") do |sets|
|
||||
opt.on('-s', '--sets <ABC,def,123>', Array, "Custom Pattern Sets") do |sets|
|
||||
options[:sets] = sets
|
||||
end
|
||||
|
||||
@ -62,7 +59,7 @@ class Driver
|
||||
exit
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def run
|
||||
pattern = Rex::Text.pattern_create(@opts[:length], @opts[:sets])
|
||||
puts pattern
|
||||
|
@ -1,7 +1,4 @@
|
||||
#!/usr/bin/env ruby
|
||||
#
|
||||
# $Id$
|
||||
# $Revision$
|
||||
|
||||
msfbase = __FILE__
|
||||
while File.symlink?(msfbase)
|
||||
@ -29,14 +26,14 @@ module PatternOffset
|
||||
options[:query] = query
|
||||
end
|
||||
|
||||
opt.on('-l', '--length <length>', Integer, "The length of the pattern") do |len|
|
||||
opt.on('-l', '--length <length>', Integer, "The length of the pattern") do |len|
|
||||
options[:length] = len
|
||||
end
|
||||
|
||||
opt.on('-s', '--sets <ABC,def,123>', Array, "Custom Pattern Sets") do |sets|
|
||||
opt.on('-s', '--sets <ABC,def,123>', Array, "Custom Pattern Sets") do |sets|
|
||||
options[:sets] = sets
|
||||
end
|
||||
|
||||
|
||||
opt.on_tail('-h', '--help', 'Show this message') do
|
||||
$stdout.puts opt
|
||||
exit
|
||||
@ -55,7 +52,7 @@ module PatternOffset
|
||||
|
||||
options[:sets] = nil unless options[:sets]
|
||||
options[:length] = 1024 unless options[:length]
|
||||
|
||||
|
||||
options
|
||||
end
|
||||
end
|
||||
@ -69,7 +66,7 @@ class Driver
|
||||
exit
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def run
|
||||
query = (@opts[:query])
|
||||
pattern = Rex::Text.pattern_create(@opts[:length], @opts[:sets])
|
||||
|
Loading…
Reference in New Issue
Block a user