当前位置:网站首页>Vulnhub-dc5学习笔记
Vulnhub-dc5学习笔记
2022-07-16 06:19:00 【Zhaohg720】
1.fping发现主机、Nmap扫描端口


2.对仅有的80端口进行测试
首先可以操作的地方仅有一处留言板,试试xss
发现xss没有作用,但是底部的版权信息每次刷新都有变化

使用wufzz爆破一下目录信息
因为爆破的字典比较多,我们把输出的内容保存为一个文档,爆破结束直接操作文档查询

使用grep取反带404的返回内容,或者直接匹配带200的返回内容。
发现目录中有一个footer.php就是一直在变化的版权信息。
这里thankyou.php页面可能存在文件包含可以利用。我们继续用wfuzz来爆破一下文件包含的参数。

这里发现file参数返回内容的长度不一样,所以文件包含的参数为file。
这里我们用file=/etc/issue验证一下,证明存在文件包含可利用
3.文件包含+Nginx日志文件利用
web容器探测为Nginx
Nginx有两个存放日志的文件,为
/var/log/nginx/error.log
/var/log/nginx/access.log
利用文件包含将一句话木马写入日志文件
这里我用web写入应该是浏览器会转码,导致写入日志的一句话不生效,用burpsuit写入之后可以连接
接下来就是按流程提权
4. 提权
首先反弹shell方便我们操作

接下来就是查找具有suid权限的命令,这个我们之前的靶机中有学习过
这里我们看到有一个screen-4.5.0命令
我们直接把第一个sh文件上传到靶机上,/tmp目录是可写的
然后我们修改文件权限,并执行

这里我们成功的获取到了root权限
5.getflag
获取到了root权限,我们进入root的家目录即可cat flag文件
边栏推荐
猜你喜欢

Data agility, HTAP database determines both efficiency and life and death

The first one in the whole network: how to avoid app crash due to calling unimplemented class methods

小程序毕设作品之微信评选投票小程序毕业设计(6)开题答辩PPT

出海已成大势,技术如何赋能?| ArchSummit

What if the self incrementing ID of online MySQL is exhausted?

首届京东科技合作伙伴大会召开,博云携手京东科技共创产业数字化新增长

How to choose databases and tables and newsql?

Wechat selection and voting of finished works of applet graduation project (7) mid term inspection report

2022年G2电站锅炉司炉考试试题模拟考试平台操作
![[C language] printf formatted output and modifier summary](/img/ee/67e393f364d2565b9b7f297c80c8fb.png)
[C language] printf formatted output and modifier summary
随机推荐
Redis is configured to save RDB snapshots, but it is currently not able to persist
ArraysList和LinkedList的区别
I "bring salt" for tdengine! "High price" to recruit photographed developers
Writing a new app with swift5 requires some considerations
全网首发独发:如何避免因为调用了没有实现的类方法而造成APP崩溃
xsslabs通关
STM32应用开发实践教程:基于 CAN 总线的多机通信应用开发
CUDA and cudnn installation tutorial (super detailed) Uninstalling CUDA, installing nsight visual studio edition of CUDA fails, and there is no CUDA option in vs2019+cuda11.1 new project
06 gulimall basic crud function creation
ViewGroup event distribution sorting
Variables in shell scripts
微机原理与技术接口 实验三 循环结构
How to solve the problem of high concurrency? You will understand it completely after reading it.
Redis报错MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist...
Total sequencing problem
How about the income of increased life insurance? Can it be a pension financial product?
Fleet | "background exploration" issue 4: distributed transactions
HMM & MEMM & CRF
AcWing 3433. Eat candy recursively | find rules
03 gulimall development environment configuration