2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby
|
2005-04-10 08:09:25 +00:00
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Post
|
|
|
|
module Meterpreter
|
|
|
|
|
2005-04-12 05:37:11 +00:00
|
|
|
###
|
|
|
|
#
|
|
|
|
# Base class for all extensions that holds a reference to the
|
2005-11-15 05:22:13 +00:00
|
|
|
# client context that they are part of. Each extension also has a defined
|
|
|
|
# name through which it is referenced.
|
2005-04-12 05:37:11 +00:00
|
|
|
#
|
|
|
|
###
|
2005-04-10 08:09:25 +00:00
|
|
|
class Extension
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
#
|
|
|
|
# Initializes the client and name attributes.
|
|
|
|
#
|
2005-04-10 08:09:25 +00:00
|
|
|
def initialize(client, name)
|
|
|
|
self.client = client
|
|
|
|
self.name = name
|
|
|
|
end
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
#
|
|
|
|
# The name of the extension.
|
|
|
|
#
|
2005-04-10 08:09:25 +00:00
|
|
|
attr_accessor :name
|
2005-04-12 05:37:11 +00:00
|
|
|
protected
|
2005-11-15 05:22:13 +00:00
|
|
|
attr_accessor :client # :nodoc:
|
2005-04-10 08:09:25 +00:00
|
|
|
end
|
|
|
|
|
2008-10-19 21:03:39 +00:00
|
|
|
end; end; end
|