当前位置:网站首页>vulnhub之tre1
vulnhub之tre1
2022-07-07 17:53:00 【梅_花_七】
目录
3.Pre-Auth Remote Password Reset
注意:尽量使用vmvare来部署靶机,并且网络模式选择NAT模式。
一、主机发现
二、端口扫描

三、服务版本发现
22 ssh
80 8082 都是开放了一个http服务但是是用了不同的web服务器软件。

四、信息收集
1.80 和 8082
都是开放了http服务,并且部署了相同的一个站点,一样的页面。源码中没有可用的信息。,

2.目录爆破

(1)adminer.php

(2)info.php
知到了一些配置文件路径地址,网站环境等。

(3)system
返回码401,访问站点需要登录,我们尝试了弱口令admin/admin成功进入

(4)返回数据包
在响应数据包中的这条就是用来验证身份的。
Authorization:Basic YWRtaW46YWRtaW4=

五、突破边界
1.尝试利用mantis 的RCE漏洞
cp到本地来,更改exp的rhost ,lhost,mantisloc ,加入验证头部,然后执行

nc -nvlp 4444

2.进阶目录爆破,大量信息收集
就是加上验证头部后进行爆破
dirsearch -u url --header="Authorization:Basic YWRtaW46YWRtaW4="
有很多新的路径。

(1)config
我们拿到了数据的账号密码,名字。结合之前adminer.php界面,尝试登录

(2)登录后收集信息

在这里我们可以发现原有账号和我们注册的账号,在之前的注册中,我们并没有输入密码,所以推断处空的这一栏就是密码。去尝试ssh登录
(3)ssh登录

3.Pre-Auth Remote Password Reset
是一个预授权远程密码修改的漏洞
这里也有介绍用法,就是这个远程密码修改是要hash验证的,但是我们修改为空,直接绕过了


登录到管理员用户状态下,我们也可以看到这个账号密码,然后通过ssh登录。

六、shell脚本提权
1.shell语法
find / -user root -type f -perm -o=rw -ls 2>/dev/null | grep -v "/proc"
check-system不是系统自带命令,可以,去查看。

2 .check-system
启动时启动的程序由systemd , 系统和服务管理器控制。 systemd是启动时运行的第一个进程。 它始终具有进程ID (PID)1。计算机中正在运行的所有其他进程都是由systemd启动的,或者由systemd已经启动的进程启动。结合上面的sudo权限,猜测可能与开机的启动有关

3. 写入反弹shell语句

4.重启触发

边栏推荐
- Throughput
- 杰理之关于 TWS 配对方式配置【篇】
- Nunjuks template engine
- 时间工具类
- torch. nn. functional. Pad (input, pad, mode= 'constant', value=none) record
- 使用高斯Redis实现二级索引
- Solve the problem of remote rviz error reporting
- Matplotlib drawing 3D graphics
- 现在股票开户可以直接在网上开吗?安全吗。
- R language ggplot2 visualization: use the ggstripchart function of ggpubr package to visualize the dot strip plot, set the position parameter, and configure the separation degree of different grouped
猜你喜欢

索引总结(突击版本)

RESTAPI 版本控制策略【eolink 翻译】

Automatic classification of defective photovoltaic module cells in electroluminescence images-论文阅读笔记

8 CAS

Navicat连接2002 - Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘解决

Flink并行度和Slot详解

Kirin Xin'an joins Ningxia commercial cipher Association

开源OA开发平台:合同管理使用手册

小试牛刀之NunJucks模板引擎

The strength index of specialized and new software development enterprises was released, and Kirin Xin'an was honored on the list
随机推荐
九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」
Automatic classification of defective photovoltaic module cells in electroluminescence images-论文阅读笔记
# 欢迎使用Markdown编辑器
Visual Studio 插件之CodeMaid自动整理代码
sql 常用优化
R language uses ggplot2 function to visualize the histogram distribution of counting target variables that need to build Poisson regression model, and analyzes the feasibility of building Poisson regr
Welcome to the markdown editor
ASP.NET幼儿园连锁管理系统源码
怎么在手机上买股票开户 股票开户安全吗
AD域组策略管理
关于自身的一些安排
PMP practice once a day | don't get lost in the exam -7.7
R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化分组点状条带图(dot strip plot)、设置position参数配置不同分组数据点的分离程度
九章云极DataCanvas公司摘获「第五届数字金融创新大赛」最高荣誉!
编译器优化那些事儿(4):归纳变量
Browse the purpose of point setting
J ü rgen schmidhub reviews the 25th anniversary of LSTM papers: long short term memory All computable metaverses. Hierarchical reinforcement learning (RL). Meta-RL. Abstractions in generative adversar
开源OA开发平台:合同管理使用手册
[sword finger offer] sword finger offer II 012 The sum of left and right subarrays is equal
Leetcode force buckle (Sword finger offer 36-39) 36 Binary search tree and bidirectional linked list 37 Serialize binary tree 38 Arrangement of strings 39 Numbers that appear more than half of the tim