<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ilana aminoff</title>
    <description>The latest articles on DEV Community by ilana aminoff (@ilanami).</description>
    <link>https://dev.to/ilanami</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3227635%2Fa0624ee0-749c-46b5-9127-8448b5cd56db.jpg</url>
      <title>DEV Community: ilana aminoff</title>
      <link>https://dev.to/ilanami</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ilanami"/>
    <language>en</language>
    <item>
      <title>How I Built CTF Write-up Builder: Solving My Own Documentation Nightmare with Next.js + AI</title>
      <dc:creator>ilana aminoff</dc:creator>
      <pubDate>Fri, 30 May 2025 19:43:00 +0000</pubDate>
      <link>https://dev.to/ilanami/how-i-built-ctf-write-up-builder-solving-my-own-documentation-nightmare-with-nextjs-ai-36mc</link>
      <guid>https://dev.to/ilanami/how-i-built-ctf-write-up-builder-solving-my-own-documentation-nightmare-with-nextjs-ai-36mc</guid>
      <description>&lt;p&gt;&lt;em&gt;From frustrated pentester to productive developer - the story of automating what I hated most about cybersecurity work.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem That Drove Me Crazy
&lt;/h2&gt;

&lt;p&gt;Picture this: You've just spent 6 hours pwning a challenging CTF machine on HackTheBox. You found the initial foothold, escalated privileges, grabbed both flags, and learned some cool new techniques. You're feeling great!&lt;/p&gt;

&lt;p&gt;Then comes the part I absolutely dreaded: &lt;strong&gt;documentation&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Opening Google Docs (again)&lt;/li&gt;
&lt;li&gt;Copy-pasting command outputs with broken formatting&lt;/li&gt;
&lt;li&gt;Manually organizing screenshots from 3 different folders&lt;/li&gt;
&lt;li&gt;Fighting with tables and bullet points&lt;/li&gt;
&lt;li&gt;Spending 2+ hours on documentation for 6 hours of actual hacking&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After years of this cycle, I realized I was spending &lt;strong&gt;30% of my CTF time on documentation&lt;/strong&gt;. That's when I decided to build my way out of this problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Enter CTF Write-up Builder
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What I built:&lt;/strong&gt; A specialized web application that turns CTF documentation from a chore into a streamlined workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tech stack:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next.js 14 (App Router)&lt;/li&gt;
&lt;li&gt;TypeScript&lt;/li&gt;
&lt;li&gt;Tailwind CSS&lt;/li&gt;
&lt;li&gt;AI Integration (Gemini/ChatGPT APIs)&lt;/li&gt;
&lt;li&gt;Local storage for privacy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;a href="https://ctf-writeup-builder.vercel.app" rel="noopener noreferrer"&gt;ctf-writeup-builder.vercel.app&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/ilanami/ctf_writeup_builder" rel="noopener noreferrer"&gt;github.com/ilanami/ctf_writeup_builder&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Technical Journey
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Architecture Decisions
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Why Next.js?&lt;/strong&gt; I needed a framework that could handle:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Client-side AI API calls (keeping everything private)&lt;/li&gt;
&lt;li&gt;File handling for screenshots and exports&lt;/li&gt;
&lt;li&gt;Responsive design for mobile documentation&lt;/li&gt;
&lt;li&gt;Easy deployment and fast performance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Privacy-First Approach:&lt;/strong&gt;&lt;br&gt;
Everything processes locally. No servers storing your write-ups, no data collection. The only external calls are to AI APIs (optional) and they're made directly from your browser.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Features That Solved Real Pain Points
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;🤖 AI-Powered Content Generation&lt;/strong&gt;&lt;br&gt;
Instead of staring at a blank page, I describe what I found: "nmap showed SSH and HTTP, found admin panel" and the AI suggests structured content, common enumeration commands, and next steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📝 Structured Templates&lt;/strong&gt;&lt;br&gt;
Pre-built sections that mirror real pentesting methodology:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Initial Reconnaissance&lt;/li&gt;
&lt;li&gt;Service Enumeration
&lt;/li&gt;
&lt;li&gt;Web Application Analysis&lt;/li&gt;
&lt;li&gt;Exploitation&lt;/li&gt;
&lt;li&gt;Privilege Escalation&lt;/li&gt;
&lt;li&gt;Lessons Learned&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;📸 Drag &amp;amp; Drop Screenshot Management&lt;/strong&gt;&lt;br&gt;
Screenshots automatically organize by section. No more desktop chaos.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📄 Professional PDF Export&lt;/strong&gt;&lt;br&gt;
Generates clean, professional PDFs perfect for job interview portfolios, client deliverables, and personal documentation archives.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Development Process
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Challenges I Faced
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1. AI Integration Complexity&lt;/strong&gt;&lt;br&gt;
Initially tried server-side AI calls, but realized this broke my privacy-first promise. Refactored to client-side calls while handling API key management securely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. File Handling&lt;/strong&gt;&lt;br&gt;
Browser file APIs are tricky. Had to implement custom drag-and-drop with proper validation and preview generation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. PDF Generation&lt;/strong&gt;&lt;br&gt;
Finding the right balance between file size and quality took several iterations. Ended up with a custom solution using jsPDF with optimized image compression.&lt;/p&gt;

&lt;h3&gt;
  
  
  Code Architecture
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Component Structure:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Editor:&lt;/strong&gt; Markdown editor with live preview&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Templates:&lt;/strong&gt; CTF section templates
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Integration:&lt;/strong&gt; Smart content generation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Export:&lt;/strong&gt; PDF/Markdown export functionality&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;State Management:&lt;/strong&gt;&lt;br&gt;
Used React's built-in state with custom hooks for persistence. Kept it simple - no Redux needed for this use case.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real-World Impact
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Documentation time:&lt;/strong&gt; 2+ hours → 30 minutes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consistency:&lt;/strong&gt; Every write-up follows the same professional structure&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quality:&lt;/strong&gt; AI suggestions help me remember methodology steps I might skip&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Technical Lessons Learned
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Privacy-First Development
&lt;/h3&gt;

&lt;p&gt;Building everything client-side taught me a lot about browser APIs and local data management. It's more complex but worth it for user trust.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. AI Integration Best Practices
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Always make AI optional, never required&lt;/li&gt;
&lt;li&gt;Provide fallbacks when APIs are down&lt;/li&gt;
&lt;li&gt;Let users bring their own API keys&lt;/li&gt;
&lt;li&gt;Design prompts for consistency across different AI models&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. User Experience in Specialized Tools
&lt;/h3&gt;

&lt;p&gt;CTF practitioners have very specific workflows. Generic documentation tools fail because they don't understand the domain. Building for a niche allows for better UX decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Templates by CTF type:&lt;/strong&gt; Web, PWN, Crypto, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integration APIs:&lt;/strong&gt; Direct connection to HackTheBox, TryHackMe&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Team collaboration:&lt;/strong&gt; Shared write-ups for red team exercises&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  For the Developer Community
&lt;/h2&gt;

&lt;p&gt;The entire codebase is open source. I'd love contributions for additional export formats, new AI provider integrations, and performance optimizations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It Yourself
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Demo:&lt;/strong&gt; &lt;a href="https://ctf-writeup-builder.vercel.app" rel="noopener noreferrer"&gt;ctf-writeup-builder.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No registration required&lt;/li&gt;
&lt;li&gt;Works entirely in your browser&lt;/li&gt;
&lt;li&gt;Try the AI features with your own API key&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Questions for the Dev Community:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What documentation pain points do you face in your work?&lt;/li&gt;
&lt;li&gt;How do you handle local-first applications with external APIs?&lt;/li&gt;
&lt;li&gt;What features would make this useful for your field?&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Building tools that solve your own problems is incredibly rewarding. This project turned my biggest workflow frustration into something I actually enjoy. What problems are you building your way out of?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; #cybersecurity #nextjs #typescript #ai #productivity #opensource #ctf #pentesting&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>opensource</category>
      <category>writeup</category>
      <category>ctf</category>
    </item>
  </channel>
</rss>
