Sha256: c1133b3e49320a60c1f1662f224df16070c29d3543525d46e1bed325599ad6fc

Contents?: true

Size: 932 Bytes

Versions: 15

Compression:

Stored size: 932 Bytes

Contents

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

15 entries across 15 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/post/process.rb
rex-2.0.12 lib/rex/post/process.rb
rex-2.0.11 lib/rex/post/process.rb
rex-2.0.10 lib/rex/post/process.rb
rex-2.0.9 lib/rex/post/process.rb
rex-2.0.8 lib/rex/post/process.rb
rex-2.0.7 lib/rex/post/process.rb
rex-2.0.5 lib/rex/post/process.rb
rex-2.0.4 lib/rex/post/process.rb
dstruct-0.0.1 lib/rex/post/process.rb
rex-2.0.3 lib/rex/post/process.rb
librex-0.0.999 lib/rex/post/process.rb
rex-2.0.2 lib/rex/post/process.rb
librex-0.0.71 lib/rex/post/process.rb
librex-0.0.70 lib/rex/post/process.rb