Skip to content

thehusnain/writeupforge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

WriteupForge

WriteupForge is a tool that converts your raw notes into professional, structured cybersecurity writeups using AI. Whether you're writing learning notes, CTF solutions, lab writeups, or research documentation, WriteupForge automatically detects the type and structures your content accordingly.

It works on Windows, Linux, and macOS, and generates outputs in Markdown, PDF, and includes GitHub-ready README files.

✨ v1.1.0 Features

  • πŸ€– Automatic Type Detection - AI detects writeup type (CTF, Lab, Learning, Research, Exploitation, Tool Guide)
  • πŸ“‹ Adaptive Structuring - Content organized based on detected type
  • πŸ“Š Auto Table Generation - Creates tables where appropriate
  • πŸ“‘ GitHub-Ready Output - Professional README and organized folder structure
  • πŸ“ One-Click Push to GitHub - All files organized and ready to commit

πŸ› οΈ Step 1: Getting Your Free AI API Key

WriteupForge uses Groq's super-fast AI to write the reports. It is completely free!

  1. Go to console.groq.com/keys
  2. Click Create API Key
  3. Copy the key (it starts with gsk_...)
  4. Save it somewhere safeβ€”you'll need it during installation!

πŸ’» Step 2: Installation

⭐ Quick Install from Organization Repository

For all users (Linux, macOS, Windows with WSL):

# Clone from organization repository
git clone https://github.com/fsociety-pk/writeupforge.git
cd writeupforge

# Install with pip
pip install -e .

Or install directly without cloning:

pip install git+https://github.com/fsociety-pk/writeupforge.git

For Linux Users (Traditional Method)

  1. Open your terminal.
  2. Clone this folder and go into it:
    git clone https://github.com/fsociety-pk/writeupforge.git
    cd writeupforge
  3. Run the installer script:
    sudo bash install.sh
    Note: During installation, it will ask you to paste the Groq API key you just copied.
  4. Done! Open a new terminal and just type:
    fgwrite

For Windows Users

  1. Download and extract this project folder.
  2. Search for PowerShell in the Start Menu, right-click it, and select Run as Administrator.
  3. Go to the extracted folder in PowerShell:
    cd path\to\writeupforge
  4. Run the installer:
    powershell -ExecutionPolicy Bypass -File scripts\install-wizard.ps1
    Note: Just like Linux, it will ask for your Groq API key.
  5. Done! Check your Desktop for the new WriteupForge icon. Double-click it to start!

πŸ”„ Updating WriteupForge

WriteupForge is actively maintained. Users can update to the latest version using:

If you installed with pip:

pip install --upgrade git+https://github.com/fsociety-pk/writeupforge.git

If you cloned the repository:

cd writeupforge
git pull origin main
pip install -e .

Check your current version:

fgwrite --version

πŸ“¦ Latest Releases

  • v1.2.1 - Fixed writeup structure preservation (preserves raw notes exactly)
  • v1.2.0 - Automatic spell & grammar checking
  • v1.1.0 - Automatic writeup type detection and GitHub-ready output

πŸ‘‰ View all releases


🎯 What's New in v1.1.0?

Automatic Writeup Type Detection

WriteupForge now intelligently detects what type of writeup you're creating:

  • CTF Challenges - Challenge writeups from Capture The Flag competitions
  • Lab/Machine Writeups - Writeups from platforms like HackTheBox, TryHackMe
  • Learning Notes - Raw notes from learning videos, courses, or tutorials
  • Research - Technical research and vulnerability analysis
  • Exploitation - Exploitation techniques and proof of concepts
  • Tool Guides - Tool usage guides and documentation

GitHub-Ready Output

Every writeup now generates a complete, ready-to-push project:

output/
└── Your_Project_Name/
    β”œβ”€β”€ README.md       βœ… GitHub documentation
    β”œβ”€β”€ writeup.md      βœ… Structured document
    └── writeup.pdf     βœ… PDF format

Automatic Structure Adaptation

Based on the detected type, the AI creates the perfect structure with appropriate sections like:

  • Reconnaissance, Enumeration, Exploitation (for labs)
  • Challenge Description, Solution (for CTFs)
  • Core Concepts, Examples, Takeaways (for learning notes)
  • And more tailored to your content!

Better Formatting

  • πŸ“Š Automatic table generation for data comparisons
  • πŸ”§ Proper code block formatting with language tags
  • πŸ“Έ Smart screenshot and diagram placeholders
  • πŸ“ Professional markdown throughout

πŸ“ How to Use

Linux (Terminal Mode)

Just type fgwrite in any terminal folder. It will ask you a few simple questions:

  • Title (e.g., "Network Protocols Basics" or "HTB Nmap Writeup")
  • Author (Your name)
  • Platform (HackTheBox, TryHackMe, Personal Learning, etc.)
  • Difficulty (Beginner, Intermediate, etc.)
  • Your Notes (Paste your rough notes and type DONE on an empty line)

The tool will:

  1. πŸ€– Analyze your notes and detect the writeup type
  2. πŸ“‹ Structure the content appropriately
  3. 🎨 Format everything professionally
  4. πŸ“ Create a folder with README.md, writeup.md, and writeup.pdf
  5. βœ… Display the organized output ready to push!

Windows (Graphic Interface)

Open the app from your Desktop icon. You will see a clean, simple window where you can type your Title, Name, select options, and paste your notes. Click the Generate Professional Report button and your complete project will be created!

After Generation

Your project is ready to go to GitHub:

cd output/Your_Project_Name
git init
git add .
git commit -m "Initial commit: Project writeup"
git push origin main

βš™οΈ Available Commands

Check Version

fgwrite --version
# or
fgwrite -v

Shows the installed WriteupForge version.

Force CLI Mode (Linux/macOS)

fgwrite --cli

Launch in terminal mode even on systems that default to GUI.

Force GUI Mode

fgwrite --gui

Launch the graphical interface.

Generate Writeup (Default)

fgwrite

Start the interactive writeup generation process.


πŸ—‘οΈ How to Uninstall

If you ever want to remove it:

Linux: Run sudo bash scripts/uninstall.sh inside the project folder.

Windows: Run scripts\uninstall.bat from the project folder. This will safely remove the virtual environment, cache files, and the shortcuts it created.


License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors