File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,6 @@ def self.parse(args)
20
20
opt . separator ''
21
21
opt . separator 'Specific options:'
22
22
23
- options [ :badchars ] = ''
24
- options [ :platform ] = 'windows'
25
- options [ :arch ] = ARCH_X86 # 'x86'
26
-
27
23
opt . on ( '-f' , '--format <String>' , "See --list-formats for a list of supported output formats" ) do |v |
28
24
options [ :format ] = v
29
25
end
@@ -47,7 +43,7 @@ def self.parse(args)
47
43
48
44
opt . on ( '--forward' , "(Optional) To search forward" ) do |v |
49
45
# Do not change this key. This should matching the one in Rex::Exploitation::Egghunter
50
- options [ :startreg ] = true
46
+ options [ :searchforward ] = true
51
47
end
52
48
53
49
opt . on ( '--depreg <String>' , "(Optional) The DEP register" ) do |v |
@@ -99,6 +95,10 @@ def self.parse(args)
99
95
raise OptionParser ::InvalidOption , "--depsize must be a Fixnum"
100
96
end
101
97
98
+ options [ :badchars ] = '' unless options [ :badchars ]
99
+ options [ :platform ] = 'windows' unless options [ :platform ]
100
+ options [ :arch ] = ARCH_X86 unless options [ :arch ]
101
+
102
102
options
103
103
end
104
104
end
You can’t perform that action at this time.
0 commit comments