Skip to content

Commit aa4489d

Browse files
author
Brent Cook
committed
Land rapid7#5196, fix incorrect yardoc annotations
2 parents 4f59abe + 668961b commit aa4489d

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

lib/msf/core/exploit.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ def reset_session_counts
12241224
# @param reason [String] A constant from Msf::Module::Failure.
12251225
# If the reason does not come from there, then it will default to
12261226
# Msf::Module::Failure::Unknown.
1227-
# @param mssg [String] (Optional) A message about the failure.
1227+
# @param msg [String] (Optional) A message about the failure.
12281228
# @raise [Msf::Exploit::Failed] A custom Msf::Exploit::Failed exception.
12291229
# @return [void]
12301230
# @see Msf::Module::Failure

lib/msf/core/payload/uuid.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ class Msf::Payload::UUID
8686
#
8787
# Generate a raw 16-byte payload UUID given a seed, platform, architecture, and timestamp
8888
#
89-
# @options opts [String] :seed An optional string to use for generated the unique payload ID, deterministic
90-
# @options opts [String] :puid An optional 8-byte string to use as the unique payload ID
91-
# @options opts [String] :arch The hardware architecture for this payload
92-
# @options opts [String] :platform The operating system platform for this payload
93-
# @options opts [String] :timestamp The timestamp in UTC Unix epoch format
94-
# @options opts [Fixnum] :xor1 An optional 8-bit XOR ID for obfuscation
95-
# @options opts [Fixnum] :xor2 An optional 8-bit XOR ID for obfuscation
89+
# @option opts [String] :seed An optional string to use for generated the unique payload ID, deterministic
90+
# @option opts [String] :puid An optional 8-byte string to use as the unique payload ID
91+
# @option opts [String] :arch The hardware architecture for this payload
92+
# @option opts [String] :platform The operating system platform for this payload
93+
# @option opts [String] :timestamp The timestamp in UTC Unix epoch format
94+
# @option opts [Fixnum] :xor1 An optional 8-bit XOR ID for obfuscation
95+
# @option opts [Fixnum] :xor2 An optional 8-bit XOR ID for obfuscation
9696
# @return [String] The encoded payoad UUID as a binary string
9797
#
9898
def self.generate_raw(opts={})

lib/msf/java/rmi/client/jmx/connection/builder.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ def build_jmx_get_object_instance(opts = {})
4141
# Builds an an array of arguments o build a call to
4242
# javax/management/remote/rmi/RMIConnectionImpl_Stub#getObjectInstance()
4343
#
44-
# @param opts [Hash]
45-
# @option opts [String] :name the MBean name
44+
# @param name [String] the MBean name
4645
# @return [Array]
4746
def build_jmx_get_object_instance_args(name = '')
4847
builder = Rex::Java::Serialization::Builder.new
@@ -97,8 +96,7 @@ def build_jmx_create_mbean(opts = {})
9796
# Builds an an array of arguments o build a call to
9897
# javax/management/remote/rmi/RMIConnectionImpl_Stub#createMBean()
9998
#
100-
# @param opts [Hash]
101-
# @option opts [String] :name the MBean name
99+
# @param name [Hash] the MBean name
102100
# @return [Array]
103101
def build_jmx_create_mbean_args(name = '')
104102
arguments = [

lib/msf/java/rmi/util.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def calculate_method_hash(signature)
2222
# Calculates an interface hash to make RMI calls as defined by the JDK 1.1
2323
#
2424
# @param methods [Array] set of method names and their descriptors
25-
# @param exceptions [Array] set of declared exceptions
2625
# @return [Fixnum] The interface hash
2726
# @see http://docs.oracle.com/javase/8/docs/platform/rmi/spec/rmi-stubs24.html The RemoteRef Interface documentation to understand how interface hashes are calculated
2827
def calculate_interface_hash(methods)

0 commit comments

Comments
 (0)