Prime 1

https://download.vulnhub.com/prime/Prime_Series_Level-1.rar

靶场IP:192.168.32.212

扫描对外端口服务

┌──(root💀kali)-[/tmp]
└─# nmap -p 1-65535 -sV  192.168.32.212                                                                                                                                                                                                
Starting Nmap 7.92 ( https://nmap.org ) at 2022-09-07 04:57 EDT
Nmap scan report for 192.168.32.212
Host is up (0.00051s latency).
Not shown: 65533 closed tcp ports (reset)
PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 7.2p2 Ubuntu 4ubuntu2.8 (Ubuntu Linux; protocol 2.0)
80/tcp open  http    Apache httpd 2.4.18 ((Ubuntu))
MAC Address: 00:0C:29:5B:79:B9 (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 9.34 seconds

访问80端口

image-20220907165744607

爆破目录

访问/dev目录

image-20220907165934683

访问/wordpress目录

image-20220907170026210

扫描wordpress没有发现有用的东西

再次扫描文本,发现/secret.txt

image-20220907170442554

根据提示访问:https://github.com/hacknpentest/Fuzzing/blob/master/Fuzz_For_Web

爆破参数

image-20220907171006235

爆破参数

image-20220907171158572

查看passwd文件

image-20220907171224943

根据提示访问password文件

使用victor:follow_the_ippsec登录wordpress。并且在主题编辑器那边添加webshell

image-20220907171923631

webshell:/wordpress/wp-content/themes/twentynineteen/secret.php

image-20220907172050644

可以使用CVE-2017-16995进行提权。

查看sudo列表

/opt/backup/server_database/backup_pass找到密码

执行enc命令,生成enc.txtkey.txt

image-20220907172728539

AES解密代码

解密内容

切换到sudo用户

执行undefeated_victor,提示/tmp/challenge不存在

建立challenge文件

提权成功

image-20220907173226175

最后更新于

这有帮助吗?