I took the Hack the Box CBBH exam recently, and failed miserably, lol. I got like 2 out…
- User
I took the Hack the Box CBBH exam recently, and failed miserably, lol. I got like 2 out of the at least 8 flags I would've needed to pass. Still, I wrote my report, and actually got somewhat nice feedback on that part.
Now my next attempt is around the corner, and I found my methodology severely lacking, in the first ever exam environment. I tried to setup a structure in Obsidian, but basically just ended up dumping everything in the daily notes. I had subfolders for every part of the target, and put some notes with specific scan results in those, nmap, ffuf, wpscan, SQLMap etc.
Do you have any recommendations for an Obsidian note structure?
Also, while I felt like I started strong with the reconnaissance, thoroughly looking through the website, I feel like I might not have been super targeted. Any advice on how to note down "possible points of interest" better?
Assistant
First off, don’t be too hard on yourself—failing an exam like this is a great learning opportunity, and the fact that you got good feedback on your report shows you’re on the right track! Let’s break this down into two parts: Obsidian note structure and targeted reconnaissance methodology.
1. Obsidian Note Structure for HTB Exams
A well-organized Obsidian vault can make a huge difference in efficiency. Here’s a structure I recommend:
Folder Structure
📁 CBBH-Exam-Attempt-2/ ├── 📄 00-Overview.md (High-level summary, IP, scope, goals) ├── 📁 01-Recon/ │ ├── 📄 nmap.md (Full scan results, filtered by service) │ ├── 📄 ffuf.md (Directory brute-forcing findings) │ ├── 📄 wpscan.md (WordPress scans) │ └── 📄 other-scans.md (SQLMap, Gobuster, etc.) ├── 📁 02-Web/ │ ├── 📄 web-notes.md (Manual findings, interesting pages) │ ├── 📄 endpoints.md (List of discovered endpoints) │ └── 📄 vulnerabilities.md (Potential issues like XSS, SQLi, etc.) ├── 📁 03-Exploitation/ │ ├── 📄 initial-access.md (How you got in) │ ├── 📄 post-exploitation.md (Privilege escalation steps) │ └── 📄 flags.md (Where you found them) ├── 📁 04-Report/ │ └── 📄 draft.md (Report structure, findings, screenshots) └── 📁 Attachments/ (Screenshots, raw scan files, etc.)Key Features
- Use templates for consistency (e.g., a
Scan Resultstemplate with headers forCommand,Findings,Next Steps). - Link between notes (e.g., if
nmap.mdshows port 80, link toweb-notes.md). - Tag important findings (e.g.,
#vulnerability,#flag,#todo). - Daily notes can still be useful, but keep them as a log of actions rather than a dumping ground. Example:
- [ ] 10:00 AM: Ran Nmap full scan on 10.10.10.10 → [[01-Recon/nmap]] - [ ] 11:30 AM: Found /admin panel → [[02-Web/web-notes]]
2. Targeted Reconnaissance Methodology
Your recon phase should be structured and iterative. Here’s how to improve:
A. Systematic Scanning
-
Nmap First
- Run a quick scan (
-sV -sC -T4), then a full scan (-p- -A). - Note down:
- Open ports → What services are running?
- Versions → Are they outdated/vulnerable?
- Script results → Any interesting findings?
- Run a quick scan (
-
Web Enumeration
- Manual Browsing:
- Check every link, form, and parameter.
- Look for hidden paths (
/robots.txt,/backup,/admin).
- Automated Tools:
ffuf/gobusterfor directories.wpscanif WordPress is detected.niktofor common web misconfigurations.
- Note down:
- Interesting endpoints (e.g.,
/login.php?debug=true). - Potential vulnerabilities (e.g.,
?id=1→ SQLi?).
- Interesting endpoints (e.g.,
- Manual Browsing:
-
Service-Specific Checks
- If you find FTP/SMB, check for anonymous access.
- If you find MySQL/PostgreSQL, try default creds.
- If you find RPC/NetBIOS, look for SMB exploits.
B. Tracking "Points of Interest"
- Use a checklist (e.g., in Obsidian):
## Points of Interest - [ ] /admin/login.php (Possible weak creds) - [ ] Port 445 (SMB, check for anonymous access) - [ ] WordPress 5.2 (Check for known exploits) - Prioritize findings (e.g., "Low-hanging fruit" like default creds first).
- Screenshots + Annotations (Use Obsidian plugins like
Paste ImageorExcalidrawfor visual notes).
C. Mindset Shift
- Think like an attacker: "How would I break in if I were defending this?"
- Don’t get stuck: If a path isn’t working after 30 mins, move on and revisit later.
- Document everything: Even dead ends (e.g., "Tried SQLi on /search.php, no luck").
Final Tips
- Practice under exam conditions (e.g., HTB machines with a 24-hour timer).
- Use Obsidian plugins like
Dataviewto auto-generate tables of findings. - Review past reports (e.g., HTB write-ups) to see how others structure their notes.
You’ve got this! The fact that you’re refining your methodology means you’ll do much better next time. Good luck on your next attempt! 🚀
- Use templates for consistency (e.g., a
- User
ok, thank you.
Lets focus some more on the note taking. There are five main sections of this target web page, like "shop" and "HR" etc. I would suggest to do a folder for each of them, and then setup a similar structure, what would you think? Like the first time around, I did an nmap scan of each section, a ffuf, a nikto scan. I want the raw results for each.
Where I started straying away is when I was trying to make up my mind if ideas such as "try this testimonials form for injection vulns" should go into the "shop" directory, a separate "ideas" note, a "SQL" note...you know what I mean?
Assistant
Absolutely! Your idea of organizing notes by section (e.g., "Shop," "HR") is solid—it keeps things modular and makes it easier to track findings per component. However, the challenge is where to put actionable ideas (like testing the testimonials form for SQLi). Let’s refine this.
Revised Obsidian Structure for Web Sections
📁 CBBH-Exam-Attempt-2/ ├── 📁 01-Recon/ │ ├── 📄 nmap.md (Full scan) │ └── 📄 service-scans.md (Other scans like SMB, RPC) ├── 📁 02-Web/ │ ├── 📁 Shop/ │ │ ├── 📄 scans.md (Nmap, ffuf, nikto for Shop) │ │ ├── 📄 endpoints.md (List of Shop URLs) │ │ ├── 📄 findings.md (Vulns, interesting behavior) │ │ └── 📄 ideas.md (Tests to try, e.g., "Test testimonials form for SQLi") │ ├── 📁 HR/ │ │ ├── 📄 scans.md │ │ ├── 📄 endpoints.md │ │ ├── 📄 findings.md │ │ └── 📄 ideas.md │ └── 📄 global-ideas.md (Cross-section ideas, e.g., "Check all forms for XSS") ├── 📁 03-Exploitation/ │ ├── 📄 initial-access.md │ └── 📄 flags.md └── 📁 Attachments/ (Raw scan files, screenshots)
Where to Put Ideas?
-
Section-Specific Ideas (e.g., "Test Shop’s testimonials form for SQLi")
- File:
02-Web/Shop/ideas.md - Why? Keeps it scoped to the Shop section, easy to reference when working on that part.
- File:
-
Cross-Section Ideas (e.g., "Check all login forms for default creds")
- File:
02-Web/global-ideas.md - Why? Some tests apply to multiple sections (e.g., XSS, CSRF).
- File:
-
Vulnerability-Specific Notes (e.g., "SQLi techniques to try")
- File:
02-Web/SQLi-notes.md(or a subfolder02-Web/Vulnerabilities/SQLi.md) - Why? If you’re researching a specific attack, it’s nice to have a dedicated note.
- File:
How to Link Ideas to Findings
- Use Obsidian’s
[[wikilinks]]to connect ideas to findings. Example:- In
Shop/ideas.md:- [ ] Test testimonials form for SQLi → [[Shop/findings#Testimonials Form]] - In
Shop/findings.md:## Testimonials Form - Located at `/shop/testimonials.php` - Parameters: `id`, `message` - Possible SQLi vector? (See [[Shop/ideas#SQLi Tests]])
- In
Workflow Example
- Scan the Shop section → Save raw results in
Shop/scans.md. - Find
/testimonials.php→ Add it toShop/endpoints.md. - Notice a form → Add to
Shop/ideas.md:- [ ] Test `id` parameter for SQLi (e.g., `' OR 1=1 -- -`) - [ ] Try XSS in `message` field (`<script>alert(1)</script>`) - Test the idea → If successful, document in
Shop/findings.mdand link back.
Key Benefits
- No duplication: Raw scans stay in
scans.md, ideas inideas.md, findings infindings.md. - Easy to track progress: Checkboxes in
ideas.mdlet you mark what’s been tested. - Quick navigation: Wikilinks let you jump between related notes instantly.
Bonus: Obsidian Plugins to Help
- Dataview: Auto-generate tables of open tasks (e.g.,
TASK FROM "Shop/ideas"). - Templates: Pre-format notes for scans, findings, and ideas.
- Excalidraw: Sketch attack paths visually.
This way, you’re structured but flexible—no more wondering where to put notes, and everything stays connected. Would this work for your workflow?
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.