当前位置:网站首页>【vulnhub靶场】-dc2
【vulnhub靶场】-dc2
2022-04-23 12:19:00 【weixin_43446292】
1、环境配置
kali:88.16.153.14
dc-2:88.16.153.6
配置hosts文件:
linux:vi /etv/hosts

2、信息收集
2.1开放端口:80、7744,且7744是ssh服务,一般是22端口,不太正常

2.2浏览网站,得知CMS是wordpress5.9.3,且有个flag1,内容翻译过来大概意思w为我的密码字典不行,需要使用cewl收集密码,且flag可能在不用用户目录下

2.3 cewl http://dc-2/ -w w.txt,收集密码字典

2.4,由于cms是wordpress,可已百度其后台目录,此网站的后台目录为http://dc-2/wp-login.php
3、渗透
3.1 kali中存在工具wpscan,是wordpress扫描工具,使用该工具扫描用户名
wpscan --url dc-2 -e u,得到三个用户名,保存在user.txt中,

使用wpscan进行暴力破解, wpscan --url dc-2 -U user.txt -P w.txt,得到jerry/adipiscing、tom/parturient

3.2 登录该网站,发现flag2,提示为如果我无法利用wordpress漏洞,可以尝试别的切入点

3.3,收集端口时可知7744端口开启了ssh端口,尝试用爆破出来的用户名密码进行ssh登录,使用jerry登录时,报错没有权限,使用tom成功登录

得到flag3


根据flag3的内容判断,需要切换到jerry用户下,使用su切换,但是没有su这个命令,根据报错应该是rbash逃逸,具体不太懂,可自行百度
BASH_CMDS[a]=/bin/sh ;
a #调用/bin/sh命令解释器
/bin/bash #使用bash命令解释器
export PATH=PATH:/bin:/sbin:/usr/bin:/usr/sbin #设置环境变量


查找到flag4,在home/jerry目录下


根据提示是使用git提权,git有root权限

sudo git help config
!/bin/bash


成功找到最后一个flag
版权声明
本文为[weixin_43446292]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43446292/article/details/124272910
边栏推荐
- Pagoda panel command line help tutorial (including resetting password)
- Array---
- 5分钟NLP:Text-To-Text Transfer Transformer (T5)统一的文本到文本任务模型
- Fastjson 2 is coming, the performance continues to improve, and it can fight for another ten years
- 软件测试基础DAY2-用例执行
- 力扣刷题之完全二叉树的节点个数
- 异步时钟亚稳态 的解决方案——多bit信号
- Master slave replication configuration of MySQL
- Optimize connections using connection groups (IM 6)
- 力扣-70.爬楼梯
猜你喜欢

Why is there a wrapper class? By the way, how to convert basic data types, wrapper classes and string classes?

Everything can be expected in the future | one 2022 campus recruitment officially opened

I changed to a programmer at the age of 31. Now I'm 34. Let me talk about my experience and some feelings

力扣刷题之完全二叉树的节点个数

SQL 练习(一)

Qt一个进程运行另一个进程

How do traditional enterprises cope with digital transformation? These books give you the answer

Step function of activation function

Tips for installing MySQL service in windows11: Install / Remove of the Service denied

QT draw text
随机推荐
Introduction to metalama 4 Use fabric to manipulate items or namespaces
QT redraw events and cuts
Step function of activation function
一个平面设计师的异想世界|ONES 人物
IDEA 数据库插件Database Navigator 插件
Lesson 26 static member functions of classes
How to solve the computer system card?
QT draw text
Chapter 4 specifies the attribute of the inmemory column on the no inmemory table for im enabled filling objects: examples (Part IV of im-4.4)
Tan Xiang, CEO of Kechuang · Pera software: the essence of zero trust is digital security. To B should also deeply study the user's mind
对称加密、证书加密
Why is there a wrapper class? By the way, how to convert basic data types, wrapper classes and string classes?
How to switch PHP version in Windows 2008 system
Fabric 1.0 source code analysis (33) implementation of peer channel command and subcommand
Force buckle - 1137 Nth teponacci number
Nativeformysql connects to MySQL 8 prompt: 1251 - client does not support authentication protocol
Qt一个进程运行另一个进程
消息队列概述
在 VSCode 中调试 Jest 的测试用例,VSCode调试Jest测试用例报错basedir=$(dirname “$(echo “$0“ | sed -e ‘s,\\,/,g‘)“)解决
User interface and im expression (IM 5.6)