Included
Completed. 1. Run initial recon from the fresh Pwnbox and identify exposed services. 2. Load the matching HTB methodology memory based on the discovered surface. 3. Research the machine name and service pattern as requested, treating outside information as...
Scenario
Included attack path
Completed. 1. Run initial recon from the fresh Pwnbox and identify exposed services. 2. Load the matching HTB methodology memory based on the discovered surface. 3. Research the machine name and service pattern as requested, treating outside information as...
Objective
Machine walkthrough focused on Machines evidence, validation, and reusable operator lessons.
Walkthrough flow
This box is a short service-led chain rather than a...
The intended path is web include abuse to local code...
Once mike is reached, lxd is the root path.
Source coverage
High source coverage
Status: complete. This article is generated from 3 sanitized Markdown sources and keeps raw flags, credentials, keys, cookies, and reusable secrets out of the rendered blog.
High confidence: the page is reconstructed from a primary walkthrough plus multiple supporting notes or evidence sources. Treat the chain as source-backed, while still checking the listed source files for sensitive values.
- <TARGET>-Included/walkthrough.md
- HTB/<TARGET>-Included/notes.md
- HTB/_knowledge/exports/ctf-lightrag-latest-203412/documents/machine__<TARGET>-Included__notes.md.c679128ba8.md
Technical Walkthrough
Included - Walkthrough
Status
Completed.
Plan
- Run initial recon from the fresh Pwnbox and identify exposed services.
- Load the matching HTB methodology memory based on the discovered surface.
- Research the machine name and service pattern as requested, treating outside information as advisory only.
- Continue with exploitation and capture live flags.
Executed Chain
- TCP recon showed only
80/tcp, Apache2.4.29, and a redirect into/?file=home.php. - Verified LFI by reading
/etc/passwd, which exposed:
- user mike
- TFTP root /var/lib/tftpboot
- Uploaded a small PHP command shell to the target over TFTP and executed it through the
fileinclude path. - Used the web shell to read:
- /var/www/html/index.php
- /var/www/html/.htpasswd
- Reused the disclosed
mikecredential after upgrading to an interactive reverse shell. - Confirmed
mikebelonged tolxd. - Staged an Alpine LXD image from Pwnbox because the target had no DNS access to the public image server.
- Imported the image, launched a privileged container, mounted
/from the host, and readroot.txt.
Artifacts
- User flag: [loot/user.txt](<local workspace><TARGET>-Included/loot/user.txt)
- Root flag: [loot/root.txt](<local workspace><TARGET>-Included/loot/root.txt)
- Interactive proof log: [loot/revshell-4444.log](<local workspace><TARGET>-Included/loot/revshell-4444.log)
- Research summary: [enum/research-links.md](<local workspace><TARGET>-Included/enum/research-links.md)
Evidence Handling
- Keep raw flags and secrets under
loot/. - Keep notes and walkthrough sanitized.
Source-Backed Dossier
The sections below are merged from companion Markdown notes for the same case. They are rendered after sanitization so the article stays precise without publishing raw flags, credentials, or target-specific secrets.
Notes
Scope
- Platform: Hack The Box
- Machine: Included
- Difficulty: Easy
- Target IP:
<TARGET> - Domain: unknown
- Pwnbox SSH:
profex0r@<TARGET> - Pwnbox hostname:
htb-oeqgummbq1 - Attacker VPN IP:
<TARGET> - Session start:
2026-05-05 18:24:19 AEST
Local Workspace
- Local dir:
<local workspace><TARGET>-Included - Remote dir:
/home/profex0r/Desktop/<TARGET>-Included
Evidence Ledger
| Time (local) | Command | Output file | Finding | Confidence | Next action |
|---|---|---|---|---|---|
| 2026-05-05 18:24 AEST | sed -n '1,220p' AGENTS.md | in-console | Loaded HTB project workflow and confirmed AGENTS.md is authoritative for Codex in this repo | High | Follow Pwnbox-first workflow |
| 2026-05-05 18:24 AEST | sed -n '1,220p' CODEX.md | in-console | CODEX.md is a compatibility pointer back to AGENTS.md | High | Use AGENTS.md as the source of truth |
| 2026-05-05 18:24 AEST | sshpass -p '***' ssh profex0r@<TARGET> 'hostname; pwd; ip -brief addr show tun0' | in-console | New Pwnbox is reachable and VPN IP is <TARGET> | High | Create remote target workspace and start recon |
| 2026-05-05 18:26 AEST | TCP discovery and service scan from Pwnbox | [nmap/all-tcp.nmap](<local workspace><TARGET>-Included/nmap/all-tcp.nmap), [nmap/service-scan.nmap](<local workspace><TARGET>-Included/nmap/service-scan.nmap) | Only 80/tcp is open; Apache 2.4.29 redirects to /?file=home.php | High | Treat file as the main attack surface |
| 2026-05-05 18:28 AEST | Targeted UDP check plus LFI verification | [nmap/udp-69.nmap](<local workspace><TARGET>-Included/nmap/udp-69.nmap), [enum/etc-passwd.txt](<local workspace><TARGET>-Included/enum/etc-passwd.txt) | 69/udp is `open | filtered; ?file=../../../../../../etc/passwd works; /var/lib/tftpboot and user mike` confirmed | High |
| 2026-05-05 18:30 AEST | Source and config review through web-exec | [enum/index_php.txt](<local workspace><TARGET>-Included/enum/index_php.txt), [loot/htpasswd.txt](<local workspace><TARGET>-Included/loot/htpasswd.txt) | index.php blindly includes $_GET['file']; a reusable mike credential exists in .htpasswd | High | Get a proper tty shell and validate credential reuse |
| 2026-05-05 18:31 AEST | External research pass after initial recon | [enum/research-links.md](<local workspace><TARGET>-Included/enum/research-links.md) | Official and third-party sources all pointed to the same chain: LFI -> TFTP web shell -> mike -> lxd | Medium | Use research only as guidance; verify each step live |
| 2026-05-05 18:34 AEST | Reverse shell via TFTP-staged PHP payload | [loot/revshell-4444.log](<local workspace><TARGET>-Included/loot/revshell-4444.log) | Interactive shell as www-data established from target to Pwnbox | High | Use tty to pivot to mike |
| 2026-05-05 18:35 AEST | Interactive pivot and LXD escalation | [loot/revshell-4444.log](<local workspace><TARGET>-Included/loot/revshell-4444.log) | Live mike access confirmed; mike is in group lxd; privileged container mount of / succeeded | High | Recover live root flag and clean artifacts |
Recon Synthesis
- Only
80/tcpis exposed on TCP. The application redirects intoindex.php?file=home.php. - The
fileparameter is a directinclude()sink, so path traversal is immediately exploitable as LFI. - A justified targeted UDP check found
69/udpreachable enough to use as TFTP staging. - Live enumeration confirmed a local user
mike, a TFTP root at/var/lib/tftpboot, and LXD installed for anlxd-group escalation path.
Working Hypotheses
- This box is a short service-led chain rather than a broad multi-service pivot.
- The intended path is web include abuse to local code execution, then a user pivot using a credential disclosed in web content.
- Once
mikeis reached,lxdis the root path.
Outcome
- Live
user.txtcaptured and stored at [loot/user.txt](<local workspace><TARGET>-Included/loot/user.txt) - Live
root.txtcaptured and stored at [loot/root.txt](<local workspace><TARGET>-Included/loot/root.txt) - Full interactive proof, including the
www-datashell,mikepivot, and LXD container mount, is stored at [loot/revshell-4444.log](<local workspace><TARGET>-Included/loot/revshell-4444.log)
Notes
Scope
- Platform: Hack The Box
- Machine: Included
- Difficulty: Easy
- Target IP:
<TARGET> - Domain: unknown
- Pwnbox SSH:
<<secret redacted>>@<TARGET> - Pwnbox hostname:
htb-oeqgummbq1 - Attacker VPN IP:
<TARGET> - Session start:
2026-05-05 18:24:19 AEST
Local Workspace
- Local dir:
<local workspace><TARGET>-Included - Remote dir:
/home/<<secret redacted>>/Desktop/<TARGET>-Included
Evidence Ledger
| Time (local) | Command | Output file | Finding | Confidence | Next action |
|---|---|---|---|---|---|
| 2026-05-05 18:24 AEST | sed -n '1,220p' AGENTS.md | in-console | Loaded HTB project workflow and confirmed AGENTS.md is authoritative for Codex in this repo | High | Follow Pwnbox-first workflow |
| 2026-05-05 18:24 AEST | sed -n '1,220p' CODEX.md | in-console | CODEX.md is a compatibility pointer back to AGENTS.md | High | Use AGENTS.md as the source of truth |
| 2026-05-05 18:24 AEST | sshpass -p '<REDACTED>' ssh <<secret redacted>>@<TARGET> 'hostname; pwd; ip -brief addr show tun0' | in-console | New Pwnbox is reachable and VPN IP is <TARGET> | High | Create remote target workspace and start recon |
| 2026-05-05 18:26 AEST | TCP discovery and service scan from Pwnbox | [nmap/all-tcp.nmap](<local workspace><TARGET>-Included/nmap/all-tcp.nmap), [nmap/service-scan.nmap](<local workspace><TARGET>-Included/nmap/service-scan.nmap) | Only 80/tcp is open; Apache 2.4.29 redirects to /?file=home.php | High | Treat file as the main attack surface |
| 2026-05-05 18: <REDACTED>, [enum/etc-passwd.txt](<local workspace><TARGET>-Included/enum/etc-passwd.txt) | 69/udp is `open | filtered; ?file= <REDACTED> | |||
| 2026-05-05 18: <REDACTED>, [loot/htpasswd.txt](<local workspace><TARGET>-Included/loot/htpasswd.txt) | index.php blindly includes $_GET['file']; a reusable mike credential exists in .htpasswd | High | Get a proper tty shell and validate credential reuse | ||
| 2026-05-05 18:31 AEST | External research pass after initial recon | [enum/research-links.md](<local workspace><TARGET>-Included/enum/research-links.md) | Official and third-party sources all pointed to the same chain: LFI -> TFTP web shell -> mike -> lxd | Medium | Use research only as guidance; verify each step live |
| 2026-05-05 18:34 AEST | Reverse shell via TFTP-staged PHP payload | [loot/revshell-4444.log](<local workspace><TARGET>-Included/loot/revshell-4444.log) | Interactive shell as www-data established from target to Pwnbox | High | Use tty to pivot to mike |
| 2026-05-05 18: <REDACTED> |
Recon Synthesis
- Only
80/tcpis exposed on TCP. The application redirects intoindex.php?file=home.php. - The
fileparameter is a directinclude()sink, so path traversal is immediately exploitable as LFI. - A justified targeted UDP check found
69/udpreachable enough to use as TFTP staging. - Live enumeration confirmed a local user
mike, a TFTP root at/var/lib/tftpboot, and LXD installed for anlxd-group escalation path.
Working Hypotheses
- This box is a short service-led chain rather than a broad multi-service pivot.
- The intended path is web include abuse to local code execution, then a user pivot using a credential disclosed in web content.
- Once
mikeis reached,lxdis the root path.
Outcome
- Live
user.txtcaptured and stored at [loot/user.txt](<local workspace><TARGET>-Included/loot/user.txt) - Live
root.txtcaptured and stored at [loot/root.txt](<local workspace><TARGET>-Included/loot/root.txt) - Full interactive proof, including the
www-datashell,mikepivot, and LXD container mount, is stored at [loot/revshell-4444.log](<local workspace><TARGET>-Included/loot/revshell-4444.log)