Remote Windows PC Enumeration using PSTools

PS Tools Kit is a collection of 13 tools developed by Mark Russinovich. These tools are a command-line tool that lets you execute processes on remote systems and redirect console applications’ output to the local system so that these applications appear to be running locally. All of these are special tools that are compatible with the NT windows version or later. Being a console application, these tools can work on both the local computer and a remote host. These tools require no manual installation of software on the remote system, and they let you specify alternative credentials to access the remote system. The “Ps” prefix in PsList relates to the fact that the standard UNIX process listing command-line tool is named “ps”, so this prefix has been adopted for all the tools in order to tie them together into a suite of tools named PsTools.

You can download PSTool Kit from –> //technet.microsoft.com/en-us/sysinternals/pstools.aspx

Listed below are all tools in the said tool kit:

  • PsExec – execute processes remotely
  • PsFile – shows files opened remotely
  • PsGetSid – display the SID of a computer or a user
  • PsInfo – list information about a system
  • PsPing – measure network performance
  • PsKill – kill processes by name or process ID
  • PsList – list detailed information about processes
  • PsLoggedOn – see who’s logged on locally and via resource sharing (full source is included)
  • PsLogList – dump event log records
  • PsPasswd – changes account passwords
  • PsService – view and control services
  • PsShutdown – shuts down and optionally reboots a computer
  • PsSuspend – suspends processes

Let us now learn how we will use these through command prompt one by one

Firstly, let us open the PSTool Kit and to do so open your command prompt and open PSTool kit using the cd command as shown below :

Get SID

Once you have open PSTool kit, run dir command so that you can see the list of all tools.

Now, we run a command that will help us use the PSGetsid tool in the Tool Kit. The command is:

Here,

System Information

Executing these commands for system information of remote PC.

Next, we will learn about the psinfo.exe tool which gives us all the necessary information on the remote PC. To make this tool work type:

Share Folder

After this command has been run, it will give you the information as you can see above.

Moving forward, we will now make the psfile tool work by typing the following command:

Process Information

Execution of this command will help us to see every file and directories that are remotely open on the PC of the victim.

Our next tool is pslist and to make it work type:

Services

This command lets us see the list of all the files on our remote PC as seen above.

Our next command is Psservice.exe which lets us know about all the services running on our victims’ PC. The command is:

Log List

You can result in the above pic.

One of these tools helps us to see the logs of the victim PC. That tool is psloglist.exe and the command to run this tool is:

Change Password

So, like this, our command is successful as we have our desired result.

Now, pspasswd64.exe is the most important tool as it lets us to change the password of a PC. And the command to achieve this is:

Administrator –-> username (which we have to give again to specify that which user’s password we want to change)

This can successfully change the password as shown in the above image.

Remote Connect Shell

Another important tool is PsExec64.exe which takes us directly in the shell of the victim’s PC. Its command is:

Shutdown

Lastly, our next tool helps us to shut down the remote PC. And for that just type:

And as shown in the image above the remote PC will shut down in 20 seconds.

So, these were tools in the PSTool kit and the commands to run them. These tools make our work a lot easy and come in handy.

PS –> If you come across such dialogue box then always click on AGREE or else the above commands will not work. The image of the dialogue box is shown below

Author: Yashika Dhir is a passionate Researcher and Technical Writer at Hacking Articles. She is a hacking enthusiast. contact here

Leave a Reply

Your email address will not be published. Required fields are marked *