The VikiD Truth

Knowledge base / Computing / Security

Computing | Computer Security | Linux Security | Industrial Control Systems Security | Penetration Testing Exploitation | Social Engineering | Metasploit

Penetration Testing

Here is the truth about penetration testing: it is authorised breaking, done carefully, so the real breakers have a harder time. Without a clear scope and written permission it is just hacking; with them it is engineering.

What it is, in plain words

A penetration test (pentest) is a structured engagement where an operator attempts to find and exploit vulnerabilities in a system, within agreed rules, and then reports what they found and how to fix it. It answers a sharper question than a vulnerability scan: not “what might be wrong?” but “what can an attacker actually do?”

Typical phases (the names vary; the ideas don’t):

  1. Permission & scoping – whose systems, which IPs, what’s off-limits, when.
  2. Reconnaissance – public info, DNS, whois, tech fingerprints.
  3. Scanning & enumeration – open ports, services, users, shares. See Enumeration.
  4. Exploitation – gaining a foothold. See Exploitation.
  5. Post-exploitation – privilege escalation, lateral movement, data access; always within scope.
  6. Reporting & remediation – clear findings, severity, evidence, fixes. The report is the product.
  7. Retest – did the fixes work?

Why it matters

Defenders invent models; attackers invent paths. A pentest is how you borrow an attacker’s eyes for a week. Done well, it finds the missing patch, the reused password, the forgotten staging server, the “temporary” firewall hole – before someone uninvited does. Done badly (or without permission), it causes outages and lawsuits.

An everyday analogy: a red-team fire drill

A fire drill isn’t arson. You schedule it, warn the people who need to know, set off the alarm, and watch what fails – which door sticks, who doesn’t hear it. Then you write down what to fix. A pentest is a fire drill for security.

flowchart LR
  Auth[Written authorisation] --> Recon
  Recon --> Enum[Enumeration]
  Enum --> Exploit
  Exploit --> Post[Post-exploitation]
  Post --> Report
  Report --> Fix --> Retest

A hands-on example: a home lab, not a stranger’s Wi-Fi

Build a disposable lab in VirtualBox or KVM: an attacker VM (Kali, Parrot or a plain Debian with tools) and a target VM (a deliberately vulnerable image such as OWASP Juice Shop, DVWA, or an old Metasploitable – isolated on a host-only network).

# on the attacker VM, only against lab targets
sudo nmap -sV -sC 192.168.56.10
sudo nmap --script vuln 192.168.56.10

# web app basics
ffuf -u http://192.168.56.10/FUZZ -w /usr/share/wordlists/dirb/common.txt
nikto -h http://192.168.56.10

When you find something exploitable, document:

Frameworks and toolkits you’ll meet: Metasploit, Burp Suite, nmap, ffuf/gobuster, sqlmap, BloodHound (AD), Ettercap/Bettercap for LAN MITM. Certifications (OSCP, eJPT, etc.) teach a disciplined version of this loop; they’re optional, the discipline isn’t.

Rules that are not optional

ActivityGoal
Vulnerability scanFind known issues automatically
Penetration testExploit and demonstrate impact, within scope
Red teamEmulate a real adversary, often with stealth goals
Bug bountyOngoing invitations for outsiders to report bugs
Purple teamAttackers and defenders working together to improve detection

Most organisations need scanning continuously, a pentest around big changes, and a red-team exercise only once the basics are solid.

Common misconceptions

Connections

The are a few things you want to start pentesting:

Last edited · 4 revisions

Tags: #Computing