VulNyx Load靶机复盘
难度-Easy
VulNyx Load靶机复盘
网段扫描
1
2
3
4
5
6
7
8
9
10
11
12
└─# arp-scan -l
Interface: eth0, type: EN10MB, MAC: 00:0c:29:df:e2:a7, IPv4: 192.168.26.128
WARNING: Cannot open MAC/Vendor file ieee-oui.txt: Permission denied
WARNING: Cannot open MAC/Vendor file mac-vendor.txt: Permission denied
Starting arp-scan 1.10.0 with 256 hosts (https://github.com/royhills/arp-scan)
192.168.26.1 00:50:56:c0:00:08 (Unknown)
192.168.26.2 00:50:56:e8:d4:e1 (Unknown)
192.168.26.166 00:0c:29:36:5f:76 (Unknown)
192.168.26.254 00:50:56:e2:a3:32 (Unknown)
4 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.10.0: 256 hosts scanned in 1.889 seconds (135.52 hosts/sec). 4 responded
端口扫描
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
└─# nmap -p- -sC -sV 192.168.26.166
Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-01-17 03:29 EST
Nmap scan report for 192.168.26.166 (192.168.26.166)
Host is up (0.0032s latency).
Not shown: 65533 closed tcp ports (reset)
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 9.2p1 Debian 2+deb12u2 (protocol 2.0)
| ssh-hostkey:
| 256 a9:a8:52:f3:cd:ec:0d:5b:5f:f3:af:5b:3c:db:76:b6 (ECDSA)
|_ 256 73:f5:8e:44:0c:b9:0a:e0:e7:31:0c:04:ac:7e:ff:fd (ED25519)
80/tcp open http Apache httpd 2.4.57 ((Debian))
| http-robots.txt: 1 disallowed entry
|_/ritedev/
|_http-server-header: Apache/2.4.57 (Debian)
|_http-title: Apache2 Debian Default Page: It works
MAC Address: 00:0C:29:36:5F:76 (VMware)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 62.11 seconds
获取Webshell
这里有一个robots.txt文件,去web上找信息
这里很多的目录,但是访问都是null,只有admin.php是有用的他是登录账号密码的,尝试密码爆破,sql注入等操作
验证了一下不存在sqlmap注入,爆破无果,我猜测万能密码登录或者默认账号密码还有继续大字典爆破
大概我sql不太行,没成功,继续尝试默认账号密码
默认账号密码登录成功,username:admin,passwd:admin
貌似可以进行文件上传操作
尝试上传无果,需要改一下东西
有点蒙圈,需要理清思路。
上传的使用给他加filename就行了
发现busybox拿webshell是好用
提权
没有直接利用的ctfobins需要查看方法了
存在文件读取,就好办了,看看是否有私钥可以获取
不过可以发现确实一部分,可以去其他地方查找
到这里靶场复盘结束
userflag:c08d9e59eb1252c60bf2ec2fd73c87f1
rootflag:85ed9306438d8302cbb4dcbc7c5491b3
This post is licensed under CC BY 4.0 by the author.