--- name: cyber description: Compact offensive-security methodology playbook for authorized lab targets - recon, service enumeration, exploitation discipline, post-exploitation and reporting. version: 1.0.0 --- # Cyber methodology playbook Authorized-lab offensive workflow. Evidence first; one hypothesis at a time. ## 1. Recon - Full port scan first (`nmap -p- -T4`), then version/service scan on open ports (`nmap -sV -sC`). Note versions, technologies, hostnames. - Web: fingerprint stack (headers, cookies, generator tags), then content discovery (`ffuf`/`gobuster` with a medium wordlist + extensions from the stack). ## 2. Per-service enumeration - HTTP(S): robots, sitemaps, JS files (endpoints, secrets), uploads, auth forms (default creds, bypass via method/param tampering), IDOR, reflected injection points. Note CMS/framework + matching known issues. - SMB/RPC (139/445): null session, share list, `netexec smb`, password sprays only with gathered wordlists; relayable configurations. - LDAP/kerberos (389/88/3268): anonymous dump, SPNs, AS-REP roastable users. - SSH/FTP/SMTP/DB: version issues, anonymous/guest access, credential reuse from other services. ## 3. Exploitation discipline - Pick the weakest VERIFIED exposure. Verify every primitive (file read, code exec, auth bypass) with a harmless marker before chaining. - Prefer simple, well-understood techniques over exotic ones. - After two consecutive failures on one path: stop, re-read the evidence, change hypothesis. Do not brute-force blindly. - Keep every credential/finding in your replies for reuse. ## 4. Post-exploitation - Confirm access (id/whoami), locate the objective (flag files, databases, config secrets, credential stores). - Privilege escalation only when the objective needs it: Linux: `sudo -l`, SUID, cron, writable services, credential reuse. Windows: service paths, scheduled tasks, credential reuse, token abuse. - Collect the objective and STOP. No persistence, no cleanup sabotage. ## 5. Reporting Final reply ends with exactly: `FLAG_REPORT: ` Include: attack path summary, credentials obtained, and the exact commands that worked.