@@ -94,13 +94,14 @@ def commands
94
94
"kill" => "Terminate a process" ,
95
95
"ps" => "List running processes" ,
96
96
"reboot" => "Reboots the remote computer" ,
97
- "reg" => "Modify and interact with the remote registry" ,
97
+ "reg" => "Modify and interact with the remote registry" ,
98
98
"rev2self" => "Calls RevertToSelf() on the remote machine" ,
99
99
"shell" => "Drop into a system command shell" ,
100
100
"shutdown" => "Shuts down the remote computer" ,
101
101
"steal_token" => "Attempts to steal an impersonation token from the target process" ,
102
102
"suspend" => "Suspends or resumes a list of processes" ,
103
103
"sysinfo" => "Gets information about the remote system, such as OS" ,
104
+ "localtime" => "Displays the target system's local date and time" ,
104
105
}
105
106
reqs = {
106
107
"clearev" => [ "stdapi_sys_eventlog_open" , "stdapi_sys_eventlog_clear" ] ,
@@ -135,6 +136,7 @@ def commands
135
136
"steal_token" => [ "stdapi_sys_config_steal_token" ] ,
136
137
"suspend" => [ "stdapi_sys_process_attach" ] ,
137
138
"sysinfo" => [ "stdapi_sys_config_sysinfo" ] ,
139
+ "localtime" => [ "stdapi_sys_config_localtime" ] ,
138
140
}
139
141
140
142
all . delete_if do |cmd , desc |
@@ -820,6 +822,14 @@ def cmd_sysinfo(*args)
820
822
return true
821
823
end
822
824
825
+ #
826
+ # Displays the local date and time at the remote system location.
827
+ #
828
+ def cmd_localtime ( *args )
829
+ print_line ( "Local Date/Time: " + client . sys . config . localtime ) ;
830
+ return true
831
+ end
832
+
823
833
#
824
834
# Shuts down the remote computer.
825
835
#
0 commit comments