File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def cmd_idletime(*args)
89
89
def cmd_uictl ( *args )
90
90
if ( args . length < 2 )
91
91
print_line (
92
- "Usage: uictl [enable/disable] [keyboard/mouse]" )
92
+ "Usage: uictl [enable/disable] [keyboard/mouse/all ]" )
93
93
return true
94
94
end
95
95
@@ -102,6 +102,10 @@ def cmd_uictl(*args)
102
102
when 'mouse'
103
103
print_line ( "Enabling mouse..." )
104
104
client . ui . enable_mouse
105
+ when 'all'
106
+ print_line ( "Enabling all..." )
107
+ client . ui . enable_keyboard
108
+ client . ui . enable_mouse
105
109
else
106
110
print_error ( "Unsupported user interface device: #{ args [ 1 ] } " )
107
111
end
@@ -113,6 +117,10 @@ def cmd_uictl(*args)
113
117
when 'mouse'
114
118
print_line ( "Disabling mouse..." )
115
119
client . ui . disable_mouse
120
+ when 'all'
121
+ print_line ( "Disabling all..." )
122
+ client . ui . disable_keyboard
123
+ client . ui . disable_mouse
116
124
else
117
125
print_error ( "Unsupported user interface device: #{ args [ 1 ] } " )
118
126
end
You can’t perform that action at this time.
0 commit comments