Yarrrrrrrrd
parent
6e1fa05757
commit
f4c805f5d6
|
@ -6,19 +6,15 @@ module Windows
|
||||||
|
|
||||||
module Process
|
module Process
|
||||||
|
|
||||||
##
|
|
||||||
# execute_shellcode(shellcode, shell_addr, pid)
|
|
||||||
#
|
#
|
||||||
# Summary:
|
# Injects shellcode to a process, and executes it.
|
||||||
# Injects shellcode to a process, and executes it
|
|
||||||
#
|
#
|
||||||
# Parameters:
|
# @param shellcode [String] The shellcode to execute
|
||||||
# shellcode - The shellcode to execute
|
# @param base_addr [Fixnum] The base address to allocate memory
|
||||||
# base_addr - Tha base address to allocate memory
|
# @param pid [Fixnum] The process ID to inject to
|
||||||
# pid - The process ID to inject to
|
#
|
||||||
|
# @return [Boolean] True if successful, otherwise false
|
||||||
#
|
#
|
||||||
# Returns:
|
|
||||||
# true if successful, otherwise false
|
|
||||||
##
|
##
|
||||||
def execute_shellcode(shellcode, base_addr, pid=nil)
|
def execute_shellcode(shellcode, base_addr, pid=nil)
|
||||||
pid ||= session.sys.process.getpid
|
pid ||= session.sys.process.getpid
|
||||||
|
|
Loading…
Reference in New Issue