用Virtualbox导入靶机时出现错误Implementation of the USB 2.0 controller not found!,到官网安装Oracle VM VirtualBox Extension Pack即可解决。
使用了virtualbox中的kali。
信息收集
靶机和kali都用桥接模式,在同一局域网中。使用ip a查看Kali的IP地址和子网掩码
1 2 3 4 5 6 7 8 9 10 11 12
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:b5:85:ee brd ff:ff:ff:ff:ff:ff inet192.168.1.101/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0 valid_lft86120sec preferred_lft 86120sec inet6 fe80::a00:27ff:feb5:85ee/64 scope link noprefixroute valid_lft forever preferred_lft forever
用nmap查看同一局域网的存活主机。nmap -sP 192.168.1.101/24
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Starting Nmap 7.70 ( https://nmap.org ) at 2020-01-1717:32 CST Nmap scan report for 192.168.1.1 (192.168.1.1) Host is up (0.0015s latency). MAC Address: B4:DE:DF:5D:FE:70 (Unknown) Nmap scan report for 192.168.1.2 (192.168.1.2) Host is up (0.0030s latency). MAC Address: FC:7C:02:9C:00:59 (Unknown) Nmap scan report for laptop-lkst0l6r (192.168.1.3) Host is up (0.00040s latency). MAC Address: 00:0E:C6:BB:D2:3F (Asix Electronics) Nmap scan report for wakanda1 (192.168.1.4) Host is up (0.00073s latency). MAC Address: 08:00:27:3C:1E:DB (Oracle VirtualBox virtual NIC) Nmap scan report for k (192.168.1.101) Host is up. Nmap done: 256 IP addresses (5 hosts up) scanned in 1.97 seconds
nmap -sS -p- 192.168.1.4 Starting Nmap 7.70 ( https://nmap.org ) at 2020-01-1715:18 CST Nmap scan report for wakanda1 (192.168.1.4) Host is up (0.00020s latency). Not shown: 65531 closed ports PORT STATE SERVICE 80/tcp open http 111/tcp open rpcbind 3333/tcp open dec-notes 44362/tcp open unknown MAC Address: 08:00:27:3C:1E:DB (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 3.80 seconds
nikto -h http://192.168.1.4 - Nikto v2.1.6 --------------------------------------------------------------------------- + Target IP: 192.168.1.4 + Target Hostname: 192.168.1.4 + Target Port: 80 + StartTime: 2020-01-1715:30:03 (GMT8) --------------------------------------------------------------------------- + Server: Apache/2.4.10 (Debian) + The anti-clickjacking X-Frame-Optionsheaderisnot present. + The X-XSS-Protection headerisnot defined. This header can hint to the user agent to protect against some forms of XSS + The X-Content-Type-Optionsheaderisnotset. This could allow the user agent to render the content of the site in a different fashion to the MIME type + No CGI Directories found (use '-C all'to force checkall possible dirs) + Apache/2.4.10 appears to be outdated (currentis at least Apache/2.4.37). Apache 2.2.34is the EOL for the 2.x branch. + Web Serverreturns a valid response with junk HTTP methods, this may cause false positives. + OSVDB-3233: /icons/README: Apache default file found. + 7915 requests: 0 error(s) and6 item(s) reported on remote host + EndTime: 2020-01-1715:30:55 (GMT8) (52 seconds) --------------------------------------------------------------------------- + 1 host(s) tested