Sha256: 2c1137cedcf98dd3fb59f33c70b17fcb47dddfcd35de1d97f7abd6f524b368bc

Contents?: true

Size: 878 Bytes

Versions: 43

Compression:

Stored size: 878 Bytes

Contents

#!/usr/bin/env ruby

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

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.65 lib/rex/post/process.rb
librex-0.0.63 lib/rex/post/process.rb
librex-0.0.54 lib/rex/post/process.rb
librex-0.0.53 lib/rex/post/process.rb
librex-0.0.52 lib/rex/post/process.rb
librex-0.0.51 lib/rex/post/process.rb
librex-0.0.50 lib/rex/post/process.rb
librex-0.0.49 lib/rex/post/process.rb
librex-0.0.48 lib/rex/post/process.rb
librex-0.0.47 lib/rex/post/process.rb
librex-0.0.46 lib/rex/post/process.rb
librex-0.0.44 lib/rex/post/process.rb
librex-0.0.43 lib/rex/post/process.rb
librex-0.0.42 lib/rex/post/process.rb
librex-0.0.41 lib/rex/post/process.rb
librex-0.0.40 lib/rex/post/process.rb
librex-0.0.39 lib/rex/post/process.rb
librex-0.0.38 lib/rex/post/process.rb
librex-0.0.37 lib/rex/post/process.rb
librex-0.0.36 lib/rex/post/process.rb