Walkthrough
Gaining a Foothold
Nmap
┌──(root㉿kali)-[~]
└─# nmap -T4 -p- -A 192.168.88.130
Starting Nmap 7.94 ( https://nmap.org ) at 2023-11-01 02:44 EDT
Nmap scan report for 192.168.88.130
Host is up (0.00055s latency).
Not shown: 65526 closed tcp ports (reset)
PORT STATE SERVICE VERSION
135/tcp open msrpc Microsoft Windows RPC
139/tcp open netbios-ssn Microsoft Windows netbios-ssn
445/tcp open Windows 7 Ultimate 7601 Service Pack 1 microsoft-ds (workgroup: WORKGROUP)
49152/tcp open msrpc Microsoft Windows RPC
49153/tcp open msrpc Microsoft Windows RPC
49154/tcp open msrpc Microsoft Windows RPC
49155/tcp open msrpc Microsoft Windows RPC
49156/tcp open msrpc Microsoft Windows RPC
49157/tcp open msrpc Microsoft Windows RPC
MAC Address: 00:0C:29:67:E0:8C (VMware)
Device type: general purpose
Running: Microsoft Windows 7|2008|8.1
OS CPE: cpe:/o:microsoft:windows_7::- cpe:/o:microsoft:windows_7::sp1 cpe:/o:microsoft:windows_server_2008::sp1 cpe:/o:microsoft:windows_server_2008:r2 cpe:/o:microsoft:windows_8 cpe:/o:microsoft:windows_8.1
OS details: Microsoft Windows 7 SP0 - SP1, Windows Server 2008 SP1, Windows Server 2008 R2, Windows 8, or Windows 8.1 Update 1
Network Distance: 1 hop
Service Info: Host: WIN-845Q99OO4PP; OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
| smb2-security-mode:
| 2:1:0:
|_ Message signing enabled but not required
| smb-security-mode:
| account_used: guest
| authentication_level: user
| challenge_response: supported
|_ message_signing: disabled (dangerous, but default)
|_clock-skew: mean: -1d03h07m44s, deviation: 2h18m33s, median: -1d04h27m44s
|_nbstat: NetBIOS name: WIN-845Q99OO4PP, NetBIOS user: <unknown>, NetBIOS MAC: 00:0c:29:67:e0:8c (VMware)
| smb2-time:
| date: 2023-10-31T02:18:37
|_ start_date: 2023-10-31T02:13:56
| smb-os-discovery:
| OS: Windows 7 Ultimate 7601 Service Pack 1 (Windows 7 Ultimate 6.1)
| OS CPE: cpe:/o:microsoft:windows_7::sp1
| Computer name: WIN-845Q99OO4PP
| NetBIOS computer name: WIN-845Q99OO4PP\x00
| Workgroup: WORKGROUP\x00
|_ System time: 2023-10-30T22:18:37-04:00
TRACEROUTE
HOP RTT ADDRESS
1 0.55 ms 192.168.88.130
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 87.09 seconds
┌──(root㉿kali)-[~]
└─# nmap --script smb-vuln* -p 445 192.168.88.130
Starting Nmap 7.94 ( https://nmap.org ) at 2023-11-01 02:57 EDT
Nmap scan report for 192.168.88.130
Host is up (0.00052s latency).
PORT STATE SERVICE
445/tcp open microsoft-ds
MAC Address: 00:0C:29:67:E0:8C (VMware)
Host script results:
| smb-vuln-ms17-010:
| VULNERABLE:
| Remote Code Execution vulnerability in Microsoft SMBv1 servers (ms17-010)
| State: VULNERABLE
| IDs: CVE:CVE-2017-0143
| Risk factor: HIGH
| A critical remote code execution vulnerability exists in Microsoft SMBv1
| servers (ms17-010).
|
| Disclosure date: 2017-03-14
| References:
| https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-0143
| https://blogs.technet.microsoft.com/msrc/2017/05/12/customer-guidance-for-wannacrypt-attacks/
|_ https://technet.microsoft.com/en-us/library/security/ms17-010.aspx
|_smb-vuln-ms10-061: NT_STATUS_OBJECT_NAME_NOT_FOUND
|_smb-vuln-ms10-054: false
Nmap done: 1 IP address (1 host up) scanned in 5.35 seconds
Remote Code Execution vulnerability
192.168.88.130 vulnerable to remote code execution in Microsoft SMBv1 servers (ms17-010)
EternalBlue SMB Remote Windows Kernel Pool Corruption
https://www.rapid7.com/db/modules/exploit/windows/smb/ms17_010_eternalblue/
This can lead to WannaCrypt attacks
https://msrc.microsoft.com/blog/2017/05/customer-guidance-for-wannacrypt-attacks/
Undetected Malicious Activity
Scanning, SMB Brute Force
Exploitation
SMB - eternalblue
192.168.88.130
Manual - AutoBlue MS17-010
192.168.88.132 is not patched
Autoblue launched but it blue-screened 192.168.88.132
A perfect example of why you don’t run this in a real environment
If it was a hospital system, this could be have a life-threatening impact
Video
When you click the link below, it will start from the Blue Walkthrough.