Sha256: 42158c7133f2ae959d44b246ff18e8f9d3fe8b20784b500400c4cb0adf930b5d

Contents?: true

Size: 904 Bytes

Versions: 2

Compression:

Stored size: 904 Bytes

Contents

#!/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)
		raise NotImplementedError
	end

	def Process.euid
		getresuid()[1]
	end
	def Process.euid=(id)
		setresuid(-1, id, -1)
	end
	def Process.uid
		getresuid()[0]
	end
	def Process.uid=(id)
		setresuid(id, -1, -1)
	end

	def Process.egid
		getresgid()[1]
	end
	def Process.egid=(id)
		setresgid(-1, id, -1)
	end
	def Process.gid
		getresgid()[0]
	end
	def Process.gid=(id)
		setresgid(id, -1, -1)
	end

	def Process.pid
		raise NotImplementedError
	end
	def Process.ppid
		raise NotImplementedError
	end

end

end; end # Post/Rex

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/post/process.rb
librex-0.0.66 lib/rex/post/process.rb