#!/usr/bin/env ruby
# -*- coding: binary -*-
module Rex
module Post
###
#
# This class performs basic process operations against a process running on a
# remote machine via the post-exploitation mechanisms. Refer to the Ruby
# documentation for expected behaviors.
class Process
def Process.getresuid
raise NotImplementedError
end
def Process.setresuid(a, b, c)
def Process.euid
getresuid()[1]
def Process.euid=(id)
setresuid(-1, id, -1)
def Process.uid
getresuid()[0]
def Process.uid=(id)
setresuid(id, -1, -1)
def Process.egid
getresgid()[1]
def Process.egid=(id)
setresgid(-1, id, -1)
def Process.gid
getresgid()[0]
def Process.gid=(id)
setresgid(id, -1, -1)
def Process.pid
def Process.ppid
end; end # Post/Rex