Machine / Machines

Base

Public-source handoff exists in research.md. Live evidence has not been recorded yet in this support folder. 1. Enumerate services. 2. Enumerate web paths and confirm /login/ listing. 3. Recover login.php.swp and inspect PHP login

Very EasyPublished 2025-11-15Sanitized local writeup

Scenario

Base attack path

Public-source handoff exists in research.md. Live evidence has not been recorded yet in this support folder. 1. Enumerate services. 2. Enumerate web paths and confirm /login/ listing. 3. Recover login.php.swp and inspect PHP login

Objective

Machine walkthrough focused on Machines evidence, validation, and reusable operator lessons.

Base sanitized attack graph

Walkthrough flow

01

Scope and service discovery

02

Attack surface mapping

03

Initial foothold

04

Privilege escalation

05

Proof captured

Source coverage

Moderate source coverage

Status: partial. This article is generated from 3 sanitized Markdown sources and keeps raw flags, credentials, keys, cookies, and reusable secrets out of the rendered blog.

59% coverage
Evidence verdict

Moderate confidence: the page is useful for review, but it should be treated as partial because the available source material is thinner or less narrative-complete.

  • Base/walkthrough.md
  • HTB/Base/notes.md
  • HTB/_knowledge/exports/ctf-lightrag-latest-203412/documents/machine__<TARGET>-Base__notes.md.8acefe2603.md

Technical Walkthrough

Base Walkthrough

Current State

Public-source handoff exists in research.md. Live evidence has not been recorded yet in this support folder.

Expected Path To Validate

  1. Enumerate services.
  2. Enumerate web paths and confirm /login/ listing.
  3. Recover login.php.swp and inspect PHP login logic.
  4. Validate array-parameter authentication bypass.
  5. Upload and trigger a PHP reverse shell.
  6. Read live config credentials.
  7. Access user john.
  8. Capture user flag.
  9. Validate sudo -l.
  10. Abuse sudo find to become root.
  11. Capture root flag.

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

  • Target: Base
  • Difficulty: Easy / Very Easy
  • OS: Linux
  • Current known IP: Pending
  • Local support folder: <local workspace>

Evidence Rule

Public research in research.md is advisory only. Record only live target evidence in this file after validation.

Evidence Ledger

TimestampCommandOutput fileFindingConfidenceNext action
PendingPendingPendingPublic research handoff created. Live target IP not yet recorded here.HighAdd target IP, run live enumeration, and save outputs under nmap/ and enum/.

Notes

Scope

  • Target: <TARGET> (Base)
  • OS: Linux (Ubuntu)
  • Difficulty: Easy (Starting Point)
  • Pwnbox: <TARGET> (<<secret redacted>>)
  • VPN IP: <TARGET>

Evidence Ledger

TimestampCommandFindingNext Action
2026-05-05 16:00nmap initialSSH 22, HTTP 80 (Apache 2.4.29 Ubuntu)Enumerate web
2026-05-05 16:00curl /login/Directory listing: config.php, login.php, login.php.swpDownload .swp
2026-05-05 16:01strings login.php.swpstrcmp() type juggling vuln in loginAuth bypass
2026-05-05 16: <REDACTED>
2026-05-05 16:01Upload shell.php (field: image)Success - shell at /_uploaded/shell.phpRCE
2026-05-05 16:01RCE as www-datauid=33(www-data)Read config
2026-05-05 16:01cat config.phpadmin / thisisagoodpasswordSSH as john
2026-05-05 16:02SSH john@targetuser.txt: <<secret redacted>>Privesc
2026-05-05 16:02sudo -l(root) /usr/bin/findGTFOBins
2026-05-05 16:02sudo find -exec cat root.txtroot.txt: <<secret redacted>>Done

Credentials

  • admin / thisisagoodpassword (web app + john SSH reuse)

Flags

  • User: <<secret redacted>>
  • Root: <<secret redacted>>