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 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