2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby
|
2005-04-17 03:29:12 +00:00
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Post
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
2005-11-15 05:22:13 +00:00
|
|
|
# This class provides generalized user interface manipulation routines that
|
|
|
|
# might be supported by post-exploitation clients.
|
2005-04-17 03:29:12 +00:00
|
|
|
#
|
|
|
|
###
|
|
|
|
class UI
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
#
|
|
|
|
# This method disables the keyboard on the remote machine.
|
|
|
|
#
|
2005-04-17 03:29:12 +00:00
|
|
|
def disable_keyboard
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
#
|
|
|
|
# This method enables the keyboard on the remote machine.
|
|
|
|
#
|
2005-04-17 03:29:12 +00:00
|
|
|
def enable_keyboard
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
#
|
|
|
|
# This method disables the mouse on the remote machine.
|
|
|
|
#
|
2005-04-17 03:29:12 +00:00
|
|
|
def disable_mouse
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
#
|
|
|
|
# This method enables the mouse on the remote machine.
|
|
|
|
#
|
2005-04-17 03:29:12 +00:00
|
|
|
def enable_mouse
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
#
|
|
|
|
# This method gets the number of seconds the user has been idle from input
|
|
|
|
# on the remote machine.
|
|
|
|
#
|
2005-04-17 07:17:52 +00:00
|
|
|
def idle_time
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2005-04-17 03:29:12 +00:00
|
|
|
end
|
|
|
|
|
2008-10-19 21:03:39 +00:00
|
|
|
end; end
|