Skip to content

Commit 155836d

Browse files
committed
Adjusted style as per egypt's points
1 parent 73d3ea6 commit 155836d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lib/msf/core/post/windows/reflective_dll_injection.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ module Msf::Post::Windows::ReflectiveDLLInjection
1818
#
1919
# Inject the given shellcode into a target process.
2020
#
21-
# @param process The process to inject the shellcode into.
22-
# @param shellcode The shellcode to inject.
21+
# @param process [Rex::Post::Meterpreter::Extensions::Stdapi::Sys::Process]
22+
# The process to inject the shellcode into.
23+
# @param shellcode [String] The shellcode to inject.
2324
#
2425
# @return [Fixnum] Address of the shellcode in the target process's
25-
# memory.
26+
# memory.
2627
#
2728
def inject_into_process(process, shellcode)
2829
shellcode_size = shellcode.length
@@ -42,11 +43,12 @@ def inject_into_process(process, shellcode)
4243
# Inject a reflectively-injectable DLL into the given process
4344
# using reflective injection.
4445
#
45-
# @param process The process that will have the DLL injected into it.
46-
# @param dll_path Path to the DLL that is to be loaded and injected.
46+
# @param process [Rex::Post::Meterpreter::Extensions::Stdapi::Sys::Process]
47+
# The process to inject the shellcode into.
48+
# @param dll_path [String] Path to the DLL that is to be loaded and injected.
4749
#
4850
# @return [Array] Tuple of allocated memory address and offset to the
49-
# +ReflectiveLoader+ function.
51+
# +ReflectiveLoader+ function.
5052
#
5153
def inject_dll_into_process(process, dll_path)
5254
dll, offset = load_rdi_dll(dll_path)

0 commit comments

Comments
 (0)