┌──(root@kali)-[/home/h4m5t/Desktop/HTB/Rental] └─# nmap -sC -sV $(cat ip.txt) Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-09-29 19:58 AEST Nmap scan report for 10.129.96.12 Host is up (0.010s latency). Not shown: 998 closed tcp ports (reset) PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.1 (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 Apache httpd 2.4.41 ((Ubuntu)) |_http-server-header: Apache/2.4.41 (Ubuntu) | http-cookie-flags: | /: | PHPSESSID: |_ httponly flag not set |_http-title: Mixt 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 7.15 seconds
┌──(root@kali)-[/home/h4m5t/Desktop/HTB/Rental] └─# dirsearch -u "http://10.129.96.12" -w /usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt /usr/lib/python3/dist-packages/dirsearch/dirsearch.py:23: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import DistributionNotFound, VersionConflict
www-data@rental:/var/www/html/admin$ mysql -u manager -p'password#1' car_rental_db Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 217 Server version: 10.3.25-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h'forhelp. Type '\c' to clear the current input statement.
MariaDB [car_rental_db]> SHOW GRANTS FOR 'manager'@'localhost'; +---------------------------------------------------------------------------------------------------------------+ | Grants for manager@localhost | +---------------------------------------------------------------------------------------------------------------+ | GRANT FILE ON *.* TO `manager`@`localhost` IDENTIFIED BY PASSWORD '*A778F55EAE542DA23ED0F6351B01262EFFD3BBB0' | | GRANT ALL PRIVILEGES ON `car_rental_db`.* TO `manager`@`localhost` | +---------------------------------------------------------------------------------------------------------------+ 2 rows inset (0.000 sec)