Class: Rex::Post::Process

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/post/process.rb

Overview

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 Method Summary collapse

Class Method Details

.egidObject



36
37
38
# File 'lib/rex/post/process.rb', line 36

def Process.egid
	getresgid()[1]
end

.egid=(id) ⇒ Object



39
40
41
# File 'lib/rex/post/process.rb', line 39

def Process.egid=(id)
	setresgid(-1, id, -1)
end

.euidObject



23
24
25
# File 'lib/rex/post/process.rb', line 23

def Process.euid
	getresuid()[1]
end

.euid=(id) ⇒ Object



26
27
28
# File 'lib/rex/post/process.rb', line 26

def Process.euid=(id)
	setresuid(-1, id, -1)
end

.getresuidObject



16
17
18
# File 'lib/rex/post/process.rb', line 16

def Process.getresuid
	raise NotImplementedError
end

.gidObject



42
43
44
# File 'lib/rex/post/process.rb', line 42

def Process.gid
	getresgid()[0]
end

.gid=(id) ⇒ Object



45
46
47
# File 'lib/rex/post/process.rb', line 45

def Process.gid=(id)
	setresgid(id, -1, -1)
end

.pidObject



49
50
51
# File 'lib/rex/post/process.rb', line 49

def Process.pid
	raise NotImplementedError
end

.ppidObject



52
53
54
# File 'lib/rex/post/process.rb', line 52

def Process.ppid
	raise NotImplementedError
end

.setresuid(a, b, c) ⇒ Object



19
20
21
# File 'lib/rex/post/process.rb', line 19

def Process.setresuid(a, b, c)
	raise NotImplementedError
end

.uidObject



29
30
31
# File 'lib/rex/post/process.rb', line 29

def Process.uid
	getresuid()[0]
end

.uid=(id) ⇒ Object



32
33
34
# File 'lib/rex/post/process.rb', line 32

def Process.uid=(id)
	setresuid(id, -1, -1)
end