PermX (Linux · Easy)
CVE-2023-4220 + sudo提权(符号链接)
枚举
nmap
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| nmap -sC -sV -sT -T4 10.10.11.23
Nmap scan report for permx.htb (10.10.11.23) Host is up (0.10s latency). Not shown: 998 closed tcp ports (conn-refused) PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.9p1 Ubuntu 3ubuntu0.10 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 256 e2:5c:5d:8c:47:3e:d8:72:f7:b4:80:03:49:86:6d:ef (ECDSA) |_ 256 1f:41:02:8e:6b:17:18:9c:a0:ac:54:23:e9:71:30:17 (ED25519) 80/tcp open http Apache httpd 2.4.52 |_http-title: eLEARNING |_http-server-header: Apache/2.4.52 (Ubuntu) Service Info: Host: 127.0.1.1; OS: Linux; CPE: cpe:/o:linux:linux_kernel
|
ffuf
1 2 3 4 5 6 7 8
| hosts绑定: 10.10.11.23 permx.htb
ffuf -c -u 'http://permx.htb' -H 'host: FUZZ.permx.htb' -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt -fc 301,302 -mc all __________________________________________________ www [Status: 200, Size: 36182, Words: 12829, Lines: 587, Duration: 1716ms] lms [Status: 200, Size: 19347, Words: 4910, Lines: 353, Duration: 120ms]
lms绑一下hosts
|
dirsearch
1 2 3
| dirsearch -u http://permx.htb Nothing dirsearch -u http://lms.permx.htb
|
permx.htb
Read More