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)
Host script results: | dns-blacklist: | SPAM | bl.spamcop.net - FAIL | sbl.spamhaus.org - FAIL | spam.dnsbl.sorbs.net - FAIL | bl.nszones.com - FAIL | l2.apews.org - FAIL | dnsbl.inps.de - FAIL | all.spamrats.com - FAIL | list.quorum.to - FAIL | PROXY | misc.dnsbl.sorbs.net - FAIL | http.dnsbl.sorbs.net - FAIL | socks.dnsbl.sorbs.net - FAIL | tor.dan.me.uk - FAIL | dnsbl.tornevall.org - FAIL | ATTACK |_ all.bl.blocklist.de - FAIL |_fcrdns: FAIL (No PTR record) |_ipidseq: Unknown |_msrpc-enum: No accounts left to try |_nbstat: NetBIOS name: WIN-BBMAQT15JMD, NetBIOS user: <unknown>, NetBIOS MAC: 00:50:56:28:51:36 (VMware) |_path-mtu: PMTU == 1500 | smb-mbenum: |_ ERROR: Failed to connect to browser service: No accounts left to try | smb-protocols: | dialects: | NT LM 0.12 (SMBv1) [dangerous, but default] | 2.02 | 2.10 | 3.00 |_3.02 | smb-security-mode: | account_used: <blank> | authentication_level: user | challenge_response: supported |_ message_signing: disabled (dangerous, but default) | smb2-capabilities: | 2.02: | DistributedFile System | 2.10: | DistributedFile System | Leasing | Multi-credit operations | 3.00: | DistributedFile System | Leasing | Multi-credit operations | 3.02: | DistributedFile System | Leasing |_ Multi-credit operations | smb2-security-mode: | 2.02: |_ Message signing enabled but not required | smb2-time: | unusual-port: |_ WARNING: this script depends on Nmap's service/version detection (-sV)
Windows Server 2008 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?
nmap –script=discovery 192.168.28.10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
域名 test.local
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