@@ -15,7 +15,7 @@ def initialize(*args)
15
15
@console_driver = Msf ::Ui ::Web ::Driver . new ( :framework => framework )
16
16
end
17
17
18
- # Creates a new framework console.
18
+ # Creates a new framework console instance .
19
19
#
20
20
# @param [Hash] opts See Msf::Ui::Web::Driver#create_console
21
21
# @return [Hash] Information about the new console. It contains the following keys:
@@ -58,7 +58,7 @@ def rpc_list
58
58
end
59
59
60
60
61
- # Deletes a framework console.
61
+ # Deletes a framework console instance .
62
62
#
63
63
# @param [Fixnum] cid Framework console ID.
64
64
# @return [Hash] A result indicating whether the action was successful or not.
@@ -74,7 +74,7 @@ def rpc_destroy(cid)
74
74
end
75
75
76
76
77
- # Returns the framework console output.
77
+ # Returns the framework console output in raw form .
78
78
#
79
79
# @param [Fixnum] cid Framework console ID.
80
80
# @return [Hash] There are two different hashes you might get:
@@ -143,15 +143,12 @@ def rpc_tabs(cid, line)
143
143
end
144
144
145
145
146
- # Kills a framework session.
146
+ # Kills a framework session that serves the same purpose as [CTRL]+[C] to abort an interactive session.
147
+ # You might also want to considering using the session API calls instead of this.
147
148
#
148
149
# @param [Fixnum] cid Framework console ID.
149
- # @return [Hash] There are two different hashes you might get:
150
- #
151
- # If the console ID is invalid, you will get a hash like the following:
152
- # * 'result' [String] A value that says 'failure'.
153
- # If the console ID is valid, you will get the following that indicates the action was successful.
154
- # * 'result' [String] A value that says 'success'.
150
+ # @return [Hash] A hash indicating whether the action was successful or not. It contains:
151
+ # * 'result' [String] A message that says 'success' if the console ID is valid (and successfully killed, otherwise 'failed')
155
152
# @example Here's how you would use this from the client:
156
153
# rpc.call('console.session_kill', 4)
157
154
def rpc_session_kill ( cid )
@@ -162,15 +159,11 @@ def rpc_session_kill(cid)
162
159
end
163
160
164
161
165
- # Detaches a framework session.
162
+ # Detaches a framework session that serves the same purpos as [CTRL]+[Z] to background an interactive session .
166
163
#
167
164
# @param [Fixnum] cid Framework console ID.
168
- # @return [Hash] There are two different hashes you might get:
169
- #
170
- # If the console ID is invalid, you will get a hash like the following:
171
- # * 'result' [String] A value that says 'failure'.
172
- # If the console ID is valid, you will get the following that indicates the action was successful.
173
- # * 'result' [String] A value that says 'success'.
165
+ # @return [Hash] A hash indicating whether the action was successful or not. It contains:
166
+ # * 'result' [String] A message that says 'success' if the console ID is valid (and successfully detached, otherwise 'failed')
174
167
# @example Here's how you would use this from the client:
175
168
# rpc.call('console.session_detach', 4)
176
169
def rpc_session_detach ( cid )
0 commit comments