Election 1

https://download.vulnhub.com/election/election.7z

靶场IP:``

扫描对外端口服务

┌──(root💀kali)-[/tmp]
└─# nmap -p 1-65535 -sV  192.168.32.231                                                                                                                                                                                                                                                                                  1 ⨯
Starting Nmap 7.92 ( https://nmap.org ) at 2022-09-11 10:14 EDT
Nmap scan report for 192.168.32.231
Host is up (0.00067s latency).
Not shown: 65533 closed tcp ports (reset)
PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)
80/tcp open  http    Apache httpd 2.4.29 ((Ubuntu))
MAC Address: 00:0C:29:42:1E:9B (VMware)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 8.11 seconds

访问80端口

image-20220911221402615

爆破目录,发现/election目录

image-20220911221649328

继续爆破

访问card.php,发现一串二进制字符

解码

登录后台

image-20220911222104165

在日志找到账号和密码

image-20220911222143613

ssh登录

在检查 SUID 文件时,/usr/local/Serv-U/Serv-U对我来说似乎很可疑。

我检查了/usr/local/Serv-U目录并找到了 Serv-U 版本

这是我在 searchsploit 上发现的一个漏洞。

我转移47009.c到服务器并通过执行我们获得root访问权限。

image-20230208135007594

最后更新于

这有帮助吗?