@@ -25,9 +25,9 @@ class EXE
25
25
# Generates a default template
26
26
#
27
27
# @param opts [Hash] The options hash
28
- # @option opts [Hash ] :template, the template type for the executable
29
- # @option opts [Hash ] :template_path, the path for the template
30
- # @option opts [Hash ] :fallback, If there are no options set, default options will be used
28
+ # @option opts [String ] :template, the template type for the executable
29
+ # @option opts [String ] :template_path, the path for the template
30
+ # @option opts [Bool ] :fallback, If there are no options set, default options will be used
31
31
# @param exe [String] Template type. If undefined, will use the default.
32
32
# @param path [String] Where you would like the template to be saved.
33
33
def self . set_template_default ( opts , exe = nil , path = nil )
@@ -66,7 +66,7 @@ def self.set_template_default(opts, exe = nil, path = nil)
66
66
# self.read_replace_script_template
67
67
#
68
68
# @param filename [String] Name of the file
69
- # @param hash_sub [String ]
69
+ # @param hash_sub [Hash ]
70
70
def self . read_replace_script_template ( filename , hash_sub )
71
71
template_pathname = File . join ( Msf ::Config . data_directory , "templates" ,
72
72
"scripts" , filename )
@@ -77,8 +77,7 @@ def self.read_replace_script_template(filename, hash_sub)
77
77
78
78
# Executable generators
79
79
#
80
- #
81
- # @param arch [String] The architecture of the system (i.e x86, x64)
80
+ # @param arch [Array<String>] The architecture of the system (i.e :x86, :x64)
82
81
# @param plat [String] The platform (i.e Linux, Windows, OSX)
83
82
# @param code [String]
84
83
# @param opts [Hash] The options hash
@@ -189,7 +188,7 @@ def self.clear_dynamic_base(exe, pe)
189
188
# @option opts [String] :sub_method
190
189
# @option opts [String] :inject, Code to inject into the exe
191
190
# @option opts [String] :template
192
- # @option opts [String ] :arch, Set to x86 by default
191
+ # @option opts [Symbol ] :arch, Set to : x86 by default
193
192
# @return [String]
194
193
def self . to_win32pe ( framework , code , opts = { } )
195
194
@@ -932,7 +931,7 @@ def self.to_osx_app(exe, opts = {})
932
931
# segments as writable and overwrites the entrypoint (usually _start) with
933
932
# the payload.
934
933
# @param framework [Msf::Framework] The framework of you want to use
935
- # @param opt [Hash]
934
+ # @param opts [Hash]
936
935
# @option [String] :template
937
936
# @param template [String]
938
937
# @param code [String]
0 commit comments