主机端口扫描:

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough

 

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_02

 

尝试SQL注入,未发现有注入漏洞,就注册创建于一账户

http://10.10.202.160/userpage.php

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_03

 

漏洞库搜索下:

XuezhuLi FileSharing - Directory Traversal

https://www.exploit-db.com/exploits/40009

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_04

 

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_05

 

我们爆破下目录看下

╰─ sudo python3 dirsearch.py -u http://10.10.202.160/ -e .php

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_06

 

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_07

 

我们尝试包含下Apache的认证文件看看

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_08

 

aiweb2admin:$apr1$VXqmVvDD$otU1gx4nwCgsAOA7Wi.aU/

╰─ john  --wordlist=/usr/share/wordlists/rockyou.txt  htpwd

aiweb2admin:c.ronaldo

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_09

 

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_10

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_11

 

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_12

 

 

 

经过尝试&& ; | 发现| 可以绕过执行命令

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_13

 

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_14

 

访问:http://10.10.202.160/webadmin/H05Tpin9555/php-reverse.php

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_15

接下来进行提权操作:

find / -perm -u=s -type f 2>/dev/null

find / -perm -g=s -type f 2>/dev/null

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_16

 

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_17

 

n0nr00tuser@aiweb2host:/tmp$ ./LinEnum.sh

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_18

 

╰─ searchsploit lxd

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_19

 

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_20

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_21

 

创建hack.sh 文件,拷贝如下链接的脚本内容到hack.sh

https://www.exploit-db.com/exploits/46978

 

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_22

 

AI: Web: 2 Vulnhub Walkthrough_Vulnhub Walkthrough_23

 

 OVER !!