@@ -18,11 +18,12 @@ module Msf::Post::Windows::ReflectiveDLLInjection
18
18
#
19
19
# Inject the given shellcode into a target process.
20
20
#
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.
23
24
#
24
25
# @return [Fixnum] Address of the shellcode in the target process's
25
- # memory.
26
+ # memory.
26
27
#
27
28
def inject_into_process ( process , shellcode )
28
29
shellcode_size = shellcode . length
@@ -42,11 +43,12 @@ def inject_into_process(process, shellcode)
42
43
# Inject a reflectively-injectable DLL into the given process
43
44
# using reflective injection.
44
45
#
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.
47
49
#
48
50
# @return [Array] Tuple of allocated memory address and offset to the
49
- # +ReflectiveLoader+ function.
51
+ # +ReflectiveLoader+ function.
50
52
#
51
53
def inject_dll_into_process ( process , dll_path )
52
54
dll , offset = load_rdi_dll ( dll_path )
0 commit comments