Post

VulNyx Bola靶机复盘

难度-Medium

VulNyx Bola靶机复盘

网段扫描

1
2
3
4
5
6
7
8
9
10
11
12
root@LingMj:/home/lingmj# 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.206  00:0c:29:ef:43:73       (Unknown)
192.168.26.254  00:50:56:f7:38:63       (Unknown)

4 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.10.0: 256 hosts scanned in 1.885 seconds (135.81 hosts/sec). 4 responded

端口扫描

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
root@LingMj:/home/lingmj# nmap -p- -sC -sV 192.168.26.206
Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-02-07 21:49 EST
Nmap scan report for bola.nyx (192.168.26.206)
Host is up (0.0012s latency).
Not shown: 65532 closed tcp ports (reset)
PORT    STATE SERVICE VERSION
22/tcp  open  ssh     OpenSSH 9.2p1 Debian 2+deb12u4 (protocol 2.0)
| ssh-hostkey: 
|   256 65:bb:ae:ef:71:d4:b5:c5:8f:e7:ee:dc:0b:27:46:c2 (ECDSA)
|_  256 ea:c8:da:c8:92:71:d8:8e:08:47:c0:66:e0:57:46:49 (ED25519)
80/tcp  open  http    Apache httpd 2.4.62 ((Debian))
|_http-server-header: Apache/2.4.62 (Debian)
|_http-title: VulNyx | Offensive Security Playground
873/tcp open  rsync   (protocol version 32)
MAC Address: 00:0C:29:EF:43:73 (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 88.34 seconds

获取webshell

图 0
图 1
图 2
图 3
图 4
图 5

登录没用

图 8

图 6
图 7
图 9

到这里web目前的信息就没了,看看873

图 10
图 11

没有东西爆破一手

图 12
图 13
图 14
图 15

思考一下怎么拿下来

图 17

图 16
图 18

有用户密码了

图 19
图 20
图 21
图 22
图 23
图 24
图 25

一个pdf

图 26 图 28

图 27
图 29

好了拿到密码了,不过用户名是:d4t4s3c:VulNyxtestinglogin123

提权

图 30
图 31

一开始我以为是mysql,但是不是什么都没有里面

图 32
图 33
图 34
图 35
图 36
图 37
图 38

结束

userflag:4e62a268197ebd869b7bafe859e35d00

rootflag:8930fba2c5f4da4e76ceb626f8f5454a

This post is licensed under CC BY 4.0 by the author.