Watson is a C# implementation of a tool to quickly identify missing software patches for local privesc vulnerabilities. We’ll download the zip from the GitHub page and double click Watson.sln in our Windows machine to open it in Visual Studio. (https://github.com/rasta-mouse/Watson)

For information about installing Visual Studio, visit Microsoft official site. (https://docs.microsoft.com/en-us/visualstudio/install/install-visual-studio?view=vs-2019)

Compile and run the application

1. Download the script as ZIP in a Windows machine, and extract its contents

2. Open Visual Studio after getting installed, and open the Watson.sln file

  • Visual Studio - Open Project/Solution - Watson.sln
  • Solution Explorer - Watson - Properties

3. In “Target framework” we need to set the .NET version in the remote server, to find that out we use

  • reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"

Note: This server is using version 4.0

4. We set the “Target framework” to that

5. Now go to Build - Configuration

6. We need to find the Platform architecture. So, in the remote server run

  • systeminfo

Note: The remote PC is x64 based PC

7. Change the platform type in Build

8. Now at the top visit Build - Build Solution

9. It created an EXE file at D:\Users\Downloads\Watson-master\Watson\bin\Debug\Watson.exe

10. We can now transfer this file to the remote server and execute it

  • watson.exe

Note: Luckily our machine has no vulnerabilities

Extra

If there were any vulnerabilities it should show the result as