Yarrrrrrrrd

unstable
sinn3r 2013-06-28 15:42:56 -05:00
parent 6e1fa05757
commit f4c805f5d6
1 changed files with 6 additions and 10 deletions

View File

@ -6,19 +6,15 @@ module Windows
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:
# shellcode - The shellcode to execute
# base_addr - Tha base address to allocate memory
# pid - The process ID to inject to
# @param shellcode [String] The shellcode to execute
# @param base_addr [Fixnum] The base address to allocate memory
# @param pid [Fixnum] 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)
pid ||= session.sys.process.getpid