Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 3.95 KB

basic-pentesting-1.md

File metadata and controls

65 lines (39 loc) · 3.95 KB

Basic Pentesting 1

Details reconstructed from memory of my own completed walkthrough — exact commands/outputs may be paraphrased.

Platform: VulnHub
Difficulty: Easy
Category: Web enumeration, Linux privilege escalation


Overview

Basic Pentesting 1 is a beginner-friendly VulnHub machine designed to walk through the fundamentals of a simple Linux penetration test. I treated it as a structured exercise in the classic pattern: scan, enumerate web and ancillary services, gain a foothold through a web-facing weakness or exposed service, then escalate locally. It was one of the boxes that helped me build confidence in repeating a methodology without relying on walkthroughs for every step.


Reconnaissance

I started with nmap, using a standard service detection scan to identify what the host exposed. On beginner VulnHub boxes like this, I typically find HTTP on port 80, sometimes FTP or other common services, and SSH for post-exploitation access.

My enumeration workflow:

  • gobuster / dirb against the web root to discover hidden directories, admin panels, or backup files.
  • Manual inspection of anything interesting — login forms, upload functionality, default pages.
  • nikto for quick web vulnerability hints.
  • If FTP or similar file services appeared in the scan, I checked for anonymous access and readable content before moving on.
  • enum4linux or basic SMB checks if the scan suggested Windows-adjacent or Samba services (less common on this specific box, but part of my default checklist).

The objective was to build a short list of plausible entry points ranked by likelihood, not to exhaust every tool before acting on the first lead.


Exploitation

Initial access on a box at this difficulty usually comes from a web-facing misconfiguration or weak credential pattern uncovered during enumeration — for example, a hidden administrative path, a service leaking useful information, or credentials recoverable from an exposed channel.

My approach:

  1. Follow the strongest enumeration lead first (hidden directory, default credentials, injectable parameter).
  2. Confirm the vulnerability manually with minimal, targeted requests.
  3. Translate that access into usable credentials or command execution on the host.
  4. Establish an interactive shell — most often through SSH once I had valid user credentials.

I avoided jumping to public exploit code until I understood what the box was actually running. Beginner machines reward reading what you find over spraying Metasploit modules.


Privilege Escalation

With a low-privileged shell, I ran my standard local enumeration pass:

  • sudo -l to identify passwordless or misconfigured sudo rules.
  • Search for SUID binaries and cross-reference unusual entries.
  • Inspect cron jobs and writable paths in scheduled tasks.
  • Look for password reuse, readable shadow-adjacent files, or private keys in home directories.

Basic Pentesting 1 typically teaches a straightforward privesc lesson — often a simple sudo misconfiguration, a known SUID pattern, or credentials that work at a higher privilege level. I validated each finding before attempting escalation and confirmed root access once the technique succeeded.


Lessons Learned

This box reinforced the value of a repeatable baseline methodology. When every step follows scan → enumerate → exploit → privesc, even unfamiliar machines feel manageable. It also reminded me that beginner boxes intentionally place useful artifacts in places directory brute force will find — training me to trust gobuster output and actually visit the paths it reports.

Basic Pentesting 1 connects to the broader skill stack I am building: web enumeration habits from TryHackMe coursework, local privesc checklists from Linux-focused rooms, and the discipline of documenting what worked so the next box starts faster. It is not glamorous, but that is the point — most real engagements begin exactly this simply.