HTB CTF
10.10.10.122 | 50 pts | Synack Track | Ticket Master Badge
PART 1 : Initial Recon
1.1 NMAP SCAN
$ nmap --min-rate 700 -p- -v 10.10.10.122
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
$ nmap -oN ctf.nmap -p22,80 -sC -sV -v 10.10.10.122
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.4 (protocol 2.0)
| ssh-hostkey:
| 2048 fd:ad:f7:cb:dc:42:1e:43:7d:b3:d5:8b:ce:63:b9:0e (RSA)
| 256 3d:ef:34:5c:e5:17:5e:06:d7:a4:c8:86:ca:e2:df:fb (ECDSA)
|_ 256 4c:46:e2:16:8a:14:f6:f0:aa:39:6c:97:46:db:b4:40 (ED25519)
80/tcp open http Apache httpd 2.4.6 ((CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16)
| http-methods:
| Supported Methods: GET HEAD POST OPTIONS TRACE
|_ Potentially risky methods: TRACE
|_http-server-header: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16
|_http-title: CTFPART 2 : Port Enumeration
2.1 TCP PORT 80 : HTTP


PART 3 : EXPLOITATION
3.1 LDAP Blind Injection
3.2 OTP Generation

PART 4 : Generate User Shell
4.1 Reverse Shell as apache
4.2 SSH as ldapuser
PART 5 : Privilege Escalation (ldapuser -> root)
5.1 honeypot.sh
5.2 7za listfiles
Last updated