HTB Quick
10.10.10.186 | 40 pts | Synack Track
PART 1 : INITIAL ENUMERATION
1.1 nmap
$ nmap --min-rate 3000 -oN nmap-tcp.initial -p- -v 10.10.10.186
PORT STATE SERVICE
22/tcp open ssh
9001/tcp open tor-orport
$ nmap -oN nmap-tcp -p 22,9001 -sC -sV -v 10.10.10.186
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 2048 fb:b0:61:82:39:50:4b:21:a8:62:98:4c:9c:38:82:70 (RSA)
| 256 ee:bb:4b:72:63:17:10:ee:08:ff:e5:86:71:fe:8f:80 (ECDSA)
|_ 256 80:a6:c2:73:41:f0:35:4e:5f:61:a7:6a:50:ea:b8:2e (ED25519)
9001/tcp open http Apache httpd 2.4.29 ((Ubuntu))
| http-methods:
|_ Supported Methods: GET HEAD POST
|_http-server-header: Apache/2.4.29 (Ubuntu)
|_http-title: Quick | Broadband Services
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
$ sudo nmap -oN nmap-udp.initial -sU -v 10.10.10.186
PORT STATE SERVICE
443/udp open|filtered httpsPART 2 : PORT ENUMERATION
2.1 TCP PORT 9001 : HTTP

2.1.1 Crawling index.php for "href" links:
index.php for "href" links:2.1.2 Directory brute forcing using gobuster
gobuster2.1.3 /login.php -- Login Page

2.1.4 /clients.php -- Client List
2.1.5 /index.php -- Potential Usernames
2.2 UDP PORT 443 : HTTPS
PART 3 : EXPLOITATION
3.1 /login.php
3.2 /home.php

3.3 /ticket.php

3.4 ESI Injection Part 1 (RFI)
3.5 ESI Injection Part 2 (RCE)
PART 4 : GENERATING A SHELL
4.1 Reverse Shell
4.2 Connection via SSH
PART 5 : sam -> srvadm
5.1 Web Service Enumeration
5.1.1 /var/www/html
5.1.2 /var/www/printer
5.2 Cracking srvadm
5.3 Forwarding printerv2
printerv2
5.4 The Printer Service
5.4.1 Figuring out the login credentials

5.4.2 Creating print jobs


5.4.3 Exploiting the Printer Jobs
5.4.4 Reading files with sysadm
sysadm5.5 SSH with sysadm
sysadmPART 6 : PRIVILEGE ESCALATION
PART 7 : REFERENCES
Last updated