nmap scan report for 192.168.28.10 Host is up (0.00027s latency). MAC Address: 00:0C:29:85:19:D4 (VMware) Nmap scan report for 192.168.28.20 Host is up (0.00043s latency).
信息搜集
失败的尝试(可以不用看这部分)
域成员机器——二零
nmap -sS 192.168.28.20
1 2 3 4 5 6 7 8 9
135/tcp open msrpc 139/tcp open netbios-ssn 445/tcp open microsoft-ds 49152/tcp openunknown 49153/tcp openunknown 49154/tcp openunknown 49155/tcp openunknown 49156/tcp openunknown MAC Address: 00:50:56:28:51:36 (VMware)
Nmap scan report for 192.168.28.20 Host is up (0.00062s latency). Not shown: 992 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 Microsoft Windows Server 2008 R2 - 2012 microsoft-ds 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 MAC Address: 00:50:56:28:51:36 (VMware) Service Info: OSs: Windows, Windows Server 2008 R2 - 2012; CPE: cpe:/o:microsoft:windows
nmap --script safe -p445 192.168.28.20 Pre-scan script results: | broadcast-igmp-discovery: | 192.168.28.1 | Interface: eth0 | Version: 2 | Group: 224.0.0.251 | Description: mDNS (rfc6762) | 192.168.28.10 | Interface: eth0 | Version: 2 | Group: 224.0.0.252 | Description: Link-local Multicast Name Resolution (rfc4795) | 192.168.28.1 | Interface: eth0 | Version: 2 | Group: 239.192.0.0 | Description: Organization-LocalScope (rfc2365) | 192.168.28.1 | Interface: eth0 | Version: 2 | Group: 239.255.255.250 | Description: Organization-LocalScope (rfc2365) |_ Use the newtargets script-arg to add the results as targets | broadcast-listener: | ether | ARP Request | sender ip sender mac target ip | 192.168.28.1000:0C:29:85:19:D4 192.168.28.2 | udp | SSDP | ip uri |_192.168.28.1 urn:dial-multiscreen-org:service:dial:1 |_broadcast-xdmcp-discover: ERROR |_eap-info: please specify an interface with -e | knx-gateway-discover: |_ ERROR: Couldn't get interface for224.0.23.12 | targets-asn: |_ targets-asn.asn is a mandatory parameter Nmap scan report for192.168.28.20 Host is up (0.00080s latency).
PORT STATE SERVICE 445/tcp open microsoft-ds |_smb-enum-services: ERROR: Script execution failed (use -d to debug) MAC Address: 00:50:56:28:51:36 (VMware)
Windows Server2008 R2 - 2012 而且开放了445,这个exp先打一下试试看 use exploit/windows/smb/ms08_067_netapi 失败
53port
nmap -p53 192.168.28.10 -sV
1 2 3 4 5
Starting Nmap 7.70 ( https://nmap.org ) at 2020-07-2322:43 +08 Nmap scan report for 192.168.28.10 Host is up (0.00036s latency). PORT STATE SERVICE VERSION 53/tcp open domain?
smbclient -L 192.168.28.10 WARNING: The "syslog" option is deprecated Enter WORKGROUP\root's password: Anonymous login successful Domain=[TEST] OS=[Windows Server 2012 R2 Standard 9600] Server=[Windows Server 2012 R2 Standard 6.3]
Sharename Type Comment --------- ---- ------- Error returning browselist: NT_STATUS_ACCESS_DENIED Connection to 192.168.28.10 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND) NetBIOS over TCP disabled -- no workgroup available
echo 192.168.28.10 test.local >> /etc/hosts
nmap -p 389 -script ldap-searchtest.local 389/tcp open ldap