---
# System prepended metadata

title: LEGACY

---

# LEGACY

[TOC]

## RECON

Carlos:
`sudo nmap -sS --min-rate 5000 -Pn --open -n -vvv -p- 10.10.10.4 -oG ports.gp`

`sudo nmap -sS --min-rate 5000 -p139,445 -Pn -n -vvv -sV -sC 10.10.10.4 -oN ports_recon.txt`

`sudo nmap -p139,445 --min-rate 5000 --script vuln 10.10.10.4 -oN vuln_scan.txt`

```
|_samba-vuln-cve-2012-1182: NT_STATUS_ACCESS_DENIED
| smb-vuln-ms08-067: 
|   VULNERABLE:
|   Microsoft Windows system vulnerable to remote code execution (MS08-067)
|     State: LIKELY VULNERABLE
|     IDs:  CVE:CVE-2008-4250
|           The Server service in Microsoft Windows 2000 SP4, XP SP2 and SP3, Server 2003 SP1 and SP2,
|           Vista Gold and SP1, Server 2008, and 7 Pre-Beta allows remote attackers to execute arbitrary
|           code via a crafted RPC request that triggers the overflow during path canonicalization.
|           
|     Disclosure date: 2008-10-23
|     References:
|       https://technet.microsoft.com/en-us/library/security/ms08-067.aspx
|_      https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4250
|_smb-vuln-ms10-054: false
|_smb-vuln-ms10-061: ERROR: Script execution failed (use -d to debug)
| 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://technet.microsoft.com/en-us/library/security/ms17-010.aspx
|       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/

```

## Explotacion

Carlos:
> Eternalblue
https://www.exploit-db.com/exploits/42315
https://redteamzone.com/EternalBlue/


## Post-Explotacion

Carlos:

Al explotar la vulnerabilidad consigues acceso como SYSTEM directamente