@@ -7,7 +7,7 @@ class RPC_Module < RPC_Base
7
7
# Returns a list of exploit names.
8
8
#
9
9
# @return [Hash] A list of exploit names.
10
- # * 'modules' [Array] Exploit names, for example: ['windows/wins/ms04_045_wins']
10
+ # * 'modules' [Array<string> ] Exploit names, for example: ['windows/wins/ms04_045_wins']
11
11
# @example Here's how you would use this from the client:
12
12
# rpc.call('module.exploits')
13
13
def rpc_exploits
@@ -18,7 +18,7 @@ def rpc_exploits
18
18
# Returns a list of auxiliary module names.
19
19
#
20
20
# @return [Hash] A list of auxiliary module names.
21
- # * 'modules' [Array] Auxiliary module names, for example: ['vsploit/pii/web_pii']
21
+ # * 'modules' [Array<string> ] Auxiliary module names, for example: ['vsploit/pii/web_pii']
22
22
# @example Here's how you would use this from the client:
23
23
# rpc.call('module.auxiliary')
24
24
def rpc_auxiliary
@@ -29,7 +29,7 @@ def rpc_auxiliary
29
29
# Returns a list of payload module names.
30
30
#
31
31
# @return [Hash] A list of payload module names.
32
- # * 'modules' [Array] Payload module names, for example: ['windows/x64/shell_reverse_tcp']
32
+ # * 'modules' [Array<string> ] Payload module names, for example: ['windows/x64/shell_reverse_tcp']
33
33
# @example Here's how you would use this from the client:
34
34
# rpc.call('module.payloads')
35
35
def rpc_payloads
@@ -40,7 +40,7 @@ def rpc_payloads
40
40
# Returns a list of encoder module names.
41
41
#
42
42
# @return [Hash] A list of encoder module names.
43
- # * 'modules' [Array] Encoder module names, for example: ['x86/unicode_upper']
43
+ # * 'modules' [Array<string> ] Encoder module names, for example: ['x86/unicode_upper']
44
44
# @example Here's how you would use this from the client:
45
45
# rpc.call('module.encoders')
46
46
def rpc_encoders
@@ -51,7 +51,7 @@ def rpc_encoders
51
51
# Returns a list of NOP module names.
52
52
#
53
53
# @return [Hash] A list of NOP module names.
54
- # * 'modules' [Array] NOP module names, for example: ['x86/single_byte']
54
+ # * 'modules' [Array<string> ] NOP module names, for example: ['x86/single_byte']
55
55
# @example Here's how you would use this from the client:
56
56
# rpc.call('module.nops')
57
57
def rpc_nops
@@ -62,7 +62,7 @@ def rpc_nops
62
62
# Returns a list of post module names.
63
63
#
64
64
# @return [Hash] A list of post module names.
65
- # * 'modules' [Array] Post module names, for example: ['windows/wlan/wlan_profile']
65
+ # * 'modules' [Array<string> ] Post module names, for example: ['windows/wlan/wlan_profile']
66
66
# @example Here's how you would use this from the client:
67
67
# rpc.call('module.post')
68
68
def rpc_post
@@ -280,17 +280,18 @@ def rpc_encode_formats
280
280
# @param [String] data Data to encode.
281
281
# @param [encoder] encoder Encoder module name. For example: 'x86/single_byte'.
282
282
# @param [Hash] options Encoding options, such as:
283
- # * 'format' [String] Encoding format.
284
- # * 'badchars' [String] Bad characters.
285
- # * 'platform' [String] Platform.
286
- # * 'arch' [String] Architecture.
287
- # * 'ecount' [Fixnum] Number of times to encode.
288
- # * 'inject' [TrueClass] To enable injection.
289
- # * 'template' [String] The template file (an executable).
290
- # * 'template_path' [String] Template path.
291
- # * 'addshellcode' [String] Custom shellcode.
292
- # @raise [Msf::RPC::Exception] Invalid format (Error 500).
293
- # @raise [Msf::RPC::Exception] Failure to encode (Error 500).
283
+ # @option options [String] 'format' Encoding format.
284
+ # @option options [String] 'badchars' Bad characters.
285
+ # @option options [String] 'platform' Platform.
286
+ # @option options [String] 'arch' Architecture.
287
+ # @option options [Fixnum] 'ecount' Number of times to encode.
288
+ # @option options [TrueClass] 'inject' To enable injection.
289
+ # @option options [String] 'template' The template file (an executable).
290
+ # @option options [String] 'template_path' Template path.
291
+ # @option options [String] 'addshellcode' Custom shellcode.
292
+ # @raise [Msf::RPC::Exception] Error could be one of these:
293
+ # * 500 Invalid format
294
+ # * 500 Failure to encode
294
295
# @return The encoded data
295
296
# * 'encoded' [String] The encoded data in the format you specify.
296
297
# @example Here's how you would use this from the client:
0 commit comments