- Practical Windows Forensics
- Ayman Shaaban Konstantin Sapronov
- 229字
- 2021-07-14 11:28:06
Remote live response
However, as mentioned earlier, it is often necessary to carry out the collection of information remotely. On Windows systems, this is often done using the SysInternals PsExec utility. PsExec lets you execute commands on remote computers and does not require the installation of the system.
How the program works is a psexec.exe
resource executable is another PsExecs executable. This file runs the Windows service on a particular target machine. Before executing the command, PsExec unpacks this hidden resource in the administrative sphere of the remote computer at Admin$
(C:\Windows
) file Admin$\system32\psexecsvc.exe
.
After copying this, PsExec installs and runs the service using the API functions of the Windows management services. Then, after starting psexesvc, a data connection (input commands and getting results) between psexesvc and psexec is established. Upon completion of the work, psexec stops the service and removes it from the target computer.
If the remote collection of information is necessary, a working machine running UNIX OS can use the Winexe utility.
Winexe is a GNU/Linux-based application that allows users to execute commands remotely on WindowsNT/2000/XP/2003/Vista/7/8 systems. It installs a service on the remote system, executes the command, and uninstalls the service. Winexe allows execution of most of the Windows shell commands:
winexe -U [Domain/]User%Password //host command
To launch a Windows shell from inside your Linux system, use the following command:
winexe -U HOME/Administrator%Pass123 //192.168.0.1 "cmd.exe"