Merge pull request #1 from andwati/dev

Dev
This commit is contained in:
2026-03-08 19:42:58 +03:00
committed by GitHub
66 changed files with 3943 additions and 562 deletions
+154
View File
@@ -0,0 +1,154 @@
---
applyTo: "**/*"
---
# Copilot Instructions for pwnforfunandprofit.xyz
## 0. Mission
Produce production-grade changes that are correct, verifiable, maintainable, and aligned with this Zola blog site's architecture, leveraging high-end premium design aesthetics.
---
## 1. Project Context
### Workspace Structure
- **Framework**: Zola (Rust-based static site generator)
- **Templates**: Tera templates (`templates/`)
- **Styling**: SCSS (`sass/`)
- **Content**: Markdown (`content/`)
- **Static Assets**: JavaScript and CSS (`static/`)
- **Scripts**: Python auxiliary scripts (`scripts/`)
- **Skill Instructions**: High-level AI design rules (`llms/`)
### Key Dependencies & Tools
- **Zola**: Static Site Generator (v0.22.1)
- **Template Engine**: Tera (Django/Jinja2-like)
- **Styling**: Vanilla SCSS (No Tailwind or external CSS themes allowed)
- **SEO/Metadata**: Built-in JSON-LD schemas
- **Syntax Highlighting**: Zola built-in (Catppuccin Mocha theme)
- **Math**: KaTeX via CDN
- **Diagrams**: Mermaid.js via CDN
- **Comments**: Utterances (GitHub issues based)
### Runtime & Commands
- **Serve Locally**: `zola serve`
- **Build**: `zola build`
- **Check/Lint**: `zola check`
- **Scripting**: Python 3 + `venv` for data manipulation (e.g. RSS migrations)
---
## 2. Rule Priority and Conflict Resolution
When instructions conflict, follow this order:
1. Safety, correctness, and premium design rules
2. User-requested behavior
3. This repository instruction file
4. The custom `llms/` guidelines (`taste-skill.md` and `redesign-skill.md`)
5. Existing codebase patterns and conventions
---
## 3. Operational Mode
- Execute end-to-end without pausing for non-blocking confirmations.
- Keep responses concise during execution; provide one complete summary at the end.
- Do not claim completion until `zola check` confirms zero validation errors.
- Ensure all styling upgrades strictly adhere to the internal bespoke CSS variables.
---
## 4. Definition of Done (Mandatory)
A task is complete only when all applicable items pass:
1. ✓ Requested behavior implemented.
2. ✓ `zola check` detects no orphaned links or missing taxonomies.
3. ✓ `zola build` outputs seamlessly in less than a second.
4. ✓ Code changes reflect the high-end `design-taste-frontend` specifics (no generic "AI-slop" designs, no Tailwind injections).
5. ✓ Modified templates remain semantic HTML5.
---
## 5. Mandatory Execution Workflow
### Initialization
1. Check existing implementations in `templates/` and `sass/`.
2. Use absolute URLs (`get_url()`) inside templates instead of relative paths.
### Implementation
3. Implement in small, verifiable increments.
4. If modifying SCSS variables or structural Tera blocks, verify via:
```bash
zola check
```
### Verification
5. Spin up the server to verify visual cadence:
```bash
zola serve
```
6. Ensure any new categories or tags are explicitly defined in `zola.toml`.
---
## 6. Code Purity and Output Rules
- Generate raw executable code only.
- **Forbidden**: commented-out code, generic placeholder names (e.g. "John Doe", "Acme"), emojis in code or text (unless explicitly requested).
- **Allowed**: required comments explaining non-obvious logic.
- Keep SCSS deterministic: Rely on global variables rather than arbitrary hardcoded hexs.
- Never use emojis in code, documentation, commit messages, or alt texts.
---
## 7. Frontend Rules (Zola + SCSS)
### 7.1 Architecture
- Use `{% extends "base.html" %}` to establish layout inheritance.
- Leverage `{% block %}` elements for page-specific overrides.
- Use `config.extra.*` for user-defined configuration toggles.
- Never write JS SPAs inside this structure: interactivity resides in targeted Vanilla JS files in `static/js/`.
### 7.2 Styling Constraints
- Rely exclusively on internal SCSS architecture. Do not suggest or install TailwindCSS.
- Follow `llms/taste-skill.md` requirements:
- Dark Mode overrides inside `html.dark`.
- Prefer `Outfit` or high-quality sans-serif text.
- No default flexbox percentage math (use CSS grid).
- No arbitrary `100vh`; use `100dvh`.
- Ensure focus rings and accessible outlines exist.
### 7.3 Content Constraints
- All Markdown files must be prefixed with valid TOML frontmatter (`+++`).
- Frontmatter must include: `title`, `date`.
- Do not utilize unsupported Markdown extensions (Zola relies on CommonMark + specific extensions configurable in `zola.toml`).
---
## 8. Debugging Commands Reference
```bash
zola serve # Live preview server on http://127.0.0.1:1111
zola build # Build static site into public/
zola check # Validate internal links and config mappings
python3 scripts/migrate.py # Re-run Substack migration script if testing feeds
```
## 9. Quick Help
### "My template is failing to build with a parse error"
→ Zola's Tera engine uses `{{ variable }}` for printing and `{% expression %}` for logic. Check your variable structures.
### "Styles updates aren't applying"
→ Ensure `compile_sass` is enabled in `zola.toml` and you are modifying valid `.scss` assets inside `sass/`.
### "My taxonomy doesn't work or throws an error"
→ If you see `Tried to render taxonomy_list.html`, ensure you created the taxonomy view templates and registered the taxonomy array in `zola.toml`.
---
**Last Updated**: March 8, 2026
**Site Generator**: Zola
**Styling Paradigm**: Bespoke SCSS
+1 -61
View File
@@ -1,61 +1 @@
# Created by https://www.toptal.com/developers/gitignore/api/go,hugo,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=go,hugo,visualstudiocode
### Go ###
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
go.work
### Hugo ###
# Generated files by hugo
/public/
/resources/_gen/
/assets/jsconfig.json
hugo_stats.json
# Executable may be added to repository
hugo.exe
hugo.darwin
hugo.linux
# Temporary lock file while building
/.hugo_build.lock
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
# End of https://www.toptal.com/developers/gitignore/api/go,hugo,visualstudiocode
/public
-3
View File
@@ -1,3 +0,0 @@
[submodule "themes/DoIt"]
path = themes/DoIt
url = https://github.com/HEIGE-PCloud/DoIt.git
+5
View File
@@ -0,0 +1,5 @@
{
"chat.tools.terminal.autoApprove": {
"zola": true
}
}
+39
View File
@@ -1 +1,40 @@
# pwnforfunandprofit.xyz
# features
## Performance and SEO
- [ ] Optimized for performance: 99/100 on mobile and 100/100 on desktop in Google PageSpeed Insights
- [ ] Optimized SEO performance with a correct SEO SCHEMA based on JSON-LD
- [ ] Google Analytics supported
- [ ] Search engine verification supported (Google, Bind, Yandex and Baidu)
- [ ] CDN for third-party libraries supported
## Appearance and Layout
- [ ] Responsive layout
- [ ] Light/Dark mode
- [ ] Globally consistent design language
- [ ] Pagination supported
- [ ] Easy-to-use and self-expanding table of contents
- [ ] Beautiful CSS animation
- [ ] Brand new Page Layout optimized for wide screens
- [ ] Social and Comment Systems
- [ ] Local Avatar supported
- [ ] social links supported
- [ ] share sites supported
- [ ] Utterances comment system supported by Utterances
## Extended Features
- [ ] Search support
- [ ] Twemoji supported
- [ ] Automatically highlighting code
- [ ] Copy code to clipboard with one click
- [ ] Mathematical formula supported by KaTeX
- [ ] Diagrams shortcode supported by mermaid
- [ ] Interactive data visualization shortcode supported by ECharts
- [ ] Dynamic scroll supported by native CSS
- [ ] Cookie consent banner supported by cookieconsent
- [ ] Option to cache remote images
Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 169 KiB

-68
View File
@@ -1,68 +0,0 @@
#!/usr/bin/env bash
#------------------------------------------------------------------------------
# @file
# Builds a Hugo site hosted on a Cloudflare Worker.
#
# The Cloudflare Worker automatically installs Node.js dependencies.
#------------------------------------------------------------------------------
main() {
DART_SASS_VERSION=1.93.2
GO_VERSION=1.25.3
HUGO_VERSION=0.152.2
NODE_VERSION=22.20.0
export TZ=Europe/Oslo
# Install Dart Sass
echo "Installing Dart Sass ${DART_SASS_VERSION}..."
curl -sLJO "https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz"
tar -C "${HOME}/.local" -xf "dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz"
rm "dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz"
export PATH="${HOME}/.local/dart-sass:${PATH}"
# Install Go
echo "Installing Go ${GO_VERSION}..."
curl -sLJO "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz"
tar -C "${HOME}/.local" -xf "go${GO_VERSION}.linux-amd64.tar.gz"
rm "go${GO_VERSION}.linux-amd64.tar.gz"
export PATH="${HOME}/.local/go/bin:${PATH}"
# Install Hugo
echo "Installing Hugo ${HUGO_VERSION}..."
curl -sLJO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
mkdir "${HOME}/.local/hugo"
tar -C "${HOME}/.local/hugo" -xf "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
rm "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
export PATH="${HOME}/.local/hugo:${PATH}"
# Install Node.js
echo "Installing Node.js ${NODE_VERSION}..."
curl -sLJO "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz"
tar -C "${HOME}/.local" -xf "node-v${NODE_VERSION}-linux-x64.tar.xz"
rm "node-v${NODE_VERSION}-linux-x64.tar.xz"
export PATH="${HOME}/.local/node-v${NODE_VERSION}-linux-x64/bin:${PATH}"
# Configure Git
echo "Configuring Git..."
git config core.quotepath false
if [ "$(git rev-parse --is-shallow-repository)" = "true" ]; then
git fetch --unshallow
fi
# clone theme
echo "Cloning theme..."
git submodule update --init --recursive
# Build the site
echo "Building the site..."
hugo --gc --minify
}
set -euo pipefail
main "$@"
+4
View File
@@ -0,0 +1,4 @@
+++
template = "index.html"
page_template = "page.html"
+++
+12
View File
@@ -0,0 +1,12 @@
+++
title = "About"
template = "page.html"
+++
I believe this is the start of something great.
Welcome to **pwnforfunandprofit**, your home for all things binary exploitation, reverse engineering, and offensive security. If you've ever felt the thrill of solving a complex puzzle, the satisfaction of understanding how something truly works, or the urge to peek behind the digital curtain, then you're in the right place.
In a world increasingly built on code, understanding its vulnerabilities is not just a niche skill; it's a superpower. Here, we're not just reading about exploits; we're *crafting* them. We're not just looking at binaries; we're *disassembling* them. And we're not just talking about offensive security; we're *doing* it.
My mission is simple yet ambitious: to transform the daunting landscapes of low-level security into accessible, engaging, and ultimately, empowering knowledge. Whether you're aiming to land that dream cybersecurity role, dominate CTF leaderboards, uncover critical bugs, or satisfy a deep intellectual curiosity, I'm here to guide you.
+4
View File
@@ -0,0 +1,4 @@
+++
title = "Archive"
template = "archive.html"
+++
+7
View File
@@ -0,0 +1,7 @@
+++
title = "Pwn For Fun And Profit"
sort_by = "date"
template = "posts.html"
page_template = "page.html"
paginate_by = 10
+++
+9 -28
View File
@@ -1,34 +1,15 @@
---
title: "Hello World"
subtitle: ""
date: 2025-09-03
lastmod: 2025-09-03
draft: false
authors: []
description: "Hello World"
tags: ["pilot", "rev"]
categories: []
series: []
hiddenFromHomePage: false
hiddenFromSearch: false
featuredImage: ""
featuredImagePreview: ""
toc:
enable: true
math:
enable: false
lightgallery: false
license: ""
---
+++
title = "Hello World"
date = 2025-09-03
description = "Hacking the Narrative, One Byte at a Time"
[taxonomies]
tags = ["blog"]
+++
I believe this is the start of something great.
Welcome to **pwnforfunandprofit**, your new home for all things binary exploitation, reverse engineering, and offensive security. If you've ever felt the thrill of solving a complex puzzle, the satisfaction of understanding how something truly works, or the urge to peek behind the digital curtain, then you're in the right place.
In a world increasingly built on code, understanding its vulnerabilities is not just a niche skill; it's a superpower. Here, we're not just reading about exploits; we're crafting them. We're not just looking at binaries; we're disassembling them. And we're not just talking about offensive security; we're doing it.
In a world increasingly built on code, understanding its vulnerabilities is not just a niche skill; it's a superpower. Here, we're not just reading about exploits; we're *crafting* them. We're not just looking at binaries; we're *disassembling* them. And we're not just talking about offensive security; we're *doing* it.
My mission is simple yet ambitious: to transform the daunting landscapes of low-level security into accessible, engaging, and ultimately, empowering knowledge. Whether you're aiming to land that dream cybersecurity role, dominate CTF leaderboards, uncover critical bugs, or satisfy a deep intellectual curiosity, we're here to guide you
My mission is simple yet ambitious: to transform the daunting landscapes of low-level security into accessible, engaging, and ultimately, empowering knowledge. Whether you're aiming to land that dream cybersecurity role, dominate CTF leaderboards, uncover critical bugs, or satisfy a deep intellectual curiosity, we're here to guide you.
@@ -0,0 +1,78 @@
+++
title = "The Single Byte That Kills Your Exploit: Understanding Endianness"
date = 2025-11-09
description = "Problem: Computers speak different languages, like people"
[taxonomies]
tags = ["blog"]
+++
If you’ve ever crafted a perfect shellcode and ROP chain only to have your exploit immediately crash with a SIGSEGV(a signal sent by the operating system to a program when it attempts to access a protected or invalid memory location) or EIP(a 32-bit CPU register in the x86 architecture that holds the memory address of the next machine instruction to be executed) pointing to garbage, you’ve likely met the silent killer of beginners: Endianness.
Endianness is fundamental; it defines the order in which a multi-byte value (like a 4-byte integer or an 8-byte memory address) is stored in a machine’s memory. For us in the pwn game, this translates directly to whether the addresses we pack into our exploit payloads are interpreted correctly by the target program. A single misplaced byte means the difference between a shell and a stack smash(stack buffer overflow**)**.
## Little vs. Big: The Two Orders
There are two primary byte orders
Little-Endian (LE): The Least Significant Byte (LSB) is stored first, at the lowest memory address. This is the byte order used by the vast majority of personal computers, including all modern Intel/AMD (x86/x64) architectures.
Big-Endian (BE): The Most Significant Byte (MSB) is stored first, at the lowest memory address. This is often called Network Byte Order (NBO) and is common in network protocols, as well as some older or embedded architectures like PowerPC, MIPS, and SPARC.
## Cross-architecture exploitation (LE <-> BE)
If you’re attacking an embedded device, router, or IoT target, it might be Big-Endian. Always confirm the target architecture and ABI. Common mistakes when cross-compiling or reusing gadgets:
Using x86/x86\_64 gadgets and packers on a MIPS/PowerPC target (different endianness and instruction set) will not work.
pwntools and other frameworks allow you to set `context.arch` and `context.endian` So packers and disassemblers behave correctly.
## How to detect the target’s endianness quickly
Run the small C program above on the target if you have code execution. Use `readelf`, `file`, or `objdump` On binaries from the target filesystem, some formats indicate endianness.
In GDB, examine the memory representation of a known constant or pointer. Put a known value in a register or memory, and inspect the byte order with `x/4xb address`.
```
(gdb) p/x 0x41424344
$1 = 0x41424344
(gdb) set {int}0x601000 = 0x41424344
(gdb) x/4xb 0x601000
0x601000: 0x44 0x43 0x42 0x41 # little-endian: ‘DCBA’
```
# Debugging tips when an exploit “looks right” but crashes
Print the raw payload bytes you are sending, compare with what the target receives (packet capture or logging), and what the target’s memory shows in a debugger.
Verify pointer size. Are you packing 32-bit or 64-bit addresses?
Check alignment and padding. Are there extra bytes inserted by the protocol or `scanf`/`fgets` behavior?
Confirm endianness on the target; don’t assume x86 for embedded devices.
Use tool packing (`struct.pack`, `pwntools`) instead of hand-reversing where possible.
If attacking over the network, confirm whether fields are consumed in network byte order.
# Short checklist for exploit authors
* Confirm target architecture (x86, x86\_64, MIPS, ARM, PowerPC).
* Confirm endianness (LE or BE).
* Use correct pointer width (`p32` vs `p64`) and pack accordingly.
* Use library packing (`struct`, `pwntools`) to avoid manual reversal mistakes.
* For network services, encode multi-byte protocol fields in network (big-endian) byte order unless the protocol documentation says otherwise.
* Check struct padding and alignment on the target.
* Inspect the target’s memory with a debugger to verify the actual byte layout.
# Final thoughts
Endianness is simple in concept but vital in practice. For most modern exploit work, you’ll be on x86\_64 (Little-Endian), so make it a habit to pack addresses in reverse byte order relative to how you read them in a disassembler. Use `pwntools`, `struct`, or equivalent to do the packing for you, but keep in mind *why* bytes are reversed; that understanding is what will let you debug the next crash quickly and confidently.
Recommended reading:
* <https://betterexplained.com/articles/understanding-big-and-little-endian-byte-order/>
* <https://medium.com/coderscorner/byte-ordering-e4737416d906>
* <https://devopedia.org/byte-ordering>
* <https://www.geeksforgeeks.org/dsa/little-and-big-endian-mystery/>
Disclaimer: This article was written with AI assistance, for a bit of brainstorming and proofreading.
+98 -120
View File
@@ -1,171 +1,149 @@
---
title: "What Is Pwn"
subtitle: ""
date: 2025-09-03
lastmod: 2025-09-03
draft: false
description: "What Is Pwn"
+++
title = "What is pwn?"
date = 2025-09-03
description = "No not that one"
[taxonomies]
tags = ["blog"]
+++
tags: ["rev", "pwn"]
categories: []
series: []
hiddenFromHomePage: false
hiddenFromSearch: false
featuredImage: ""
featuredImagePreview: ""
toc:
enable: true
math:
enable: false
lightgallery: false
license: ""
---
> [!NOTE]
> Binary Exploitation is a broad topic within Cyber Security which really comes down to finding a vulnerability in the program and exploiting it to gain control of a shell or modifying the program's functions ~ctf101
<p>
In most challenges, you’ll be given a Linux binary to exploit, and occasionally a Windows executable. The goal is to find a way to get the program to run in a way that was not intended.
</p>
<p>
Over the course of this series, we will look at the basics of a binary from simple to advanced concepts. This will be a multipart post covering the concepts over a couple of months. I’ll also use it as a reference to track my own progress.
</p>
> [!IMPORTANT]
> This assumes that the reader has some significant experience with programming, i will not be explaining how to write software. The tutorial will be in C, simple enough while being low level for some of the things well do. I recommend reading : <a href="https://www.amazon.com/Programming-Language-2nd-Brian-Kernighan/dp/0131103628">The C Programming Language, 2nd Edition, by Brian W. Kernighan and Dennis M. Ritchie (Prentice Hall, 1988).</a>
> This assumes that the reader has some significant experience with programming, i will not be explaining how to write software. The tutotials will be in C, simple enough while being low level for some of the things well do. I recommend reading :
>
> *[The C Programming Language](https://www.amazon.com/Programming-Language-2nd-Brian-Kernighan/dp/0131103628)*[, 2nd Edition, by Brian W. Kernighan and Dennis M. Ritchie (Prentice Hall, 1988).](https://www.amazon.com/Programming-Language-2nd-Brian-Kernighan/dp/0131103628)
---
# Concepts to Cover
## Concepts to Cover
This roadmap will take you from *“I don’t know how the stack works”* to *“I can write exploits for CTFs and understand real-world CVEs.”*
### Episode 1: Getting Started
- Why binary exploitation matters (CTFs, real-world, research).
### **Episode 1: Getting Started**
- Computer architecture basics (x86/x64 registers, stack vs heap, memory layout).
* Why binary exploitation matters (CTFs, real-world, research).
* Computer architecture basics (x86/x64 registers, stack vs heap, memory layout).
* Compiling and running simple C programs.
* Intro to ELF binaries.
- Compiling and running simple C programs.
---
- Intro to ELF binaries.
### **Episode 2: Assembly & Tools Crash Course**
### Episode 2: Assembly & Tools Crash Course
- Function calls in assembly (prologue/epilogue, stack frames).
* Function calls in assembly (prologue/epilogue, stack frames).
* Common instructions (`mov`, `call`, `jmp`, `ret`).
* Debugging with `gdb`, `gef`/`pwndbg`.
* Disassembly with `objdump`, `radare2`, and `Ghidra`.
- Common instructions (mov, call, jmp, ret).
---
- Debugging with gdb, gef/pwndbg.
### **Episode 3: Memory Corruption 101**
- Disassembly with objdump, radare2, and Ghidra.
* What is a segmentation fault?
* Stack buffer overflows (first crashes).
* Off-by-one errors.
* Writing your first shellcode and executing it locally.
### Episode 3: Memory Corruption 101
- What is a segmentation fault?
---
- Stack buffer overflows (first crashes).
### **Episode 4: Exploiting Control Flow**
- Off-by-one errors.
* Overwriting return addresses.
* NOP sleds and shellcode execution.
* Return-to-libc attacks (ret2libc).
* Environment variables and argument tricks.
- Writing your first shellcode and executing it locally.
---
### Episode 4: Exploiting Control Flow
- Overwriting return addresses.
### **Episode 5: Format String Vulnerabilities**
- NOP sleds and shellcode execution.
* How `printf` becomes an exploit primitive.
* Memory leaks via format strings.
* Overwriting memory using `%n`.
- Return-to-libc attacks (ret2libc).
---
- Environment variables and argument tricks.
### **Episode 6: Modern Protections & Bypasses (Part 1)**
### Episode 5: Format String Vulnerabilities
- How printf becomes an exploit primitive.
* NX (non-executable stack) and its bypass with ROP.
* Intro to ROP gadgets and building small chains.
* Automating with Pwntools and ROPgadget.
- Memory leaks via format strings.
---
- Overwriting memory using %n.
### **Episode 7: Modern Protections & Bypasses (Part 2)**
### Episode 6: Modern Protections & Bypasses (Part 1)
- NX (non-executable stack) and its bypass with ROP.
* ASLR: how randomization works.
* Leaking addresses to defeat ASLR.
* Stack canaries and partial overwrites.
- Intro to ROP gadgets and building small chains.
---
- Automating with Pwntools and ROPgadget.
### **Episode 8: Heap Exploitation (Basics)**
### Episode 7: Modern Protections & Bypasses (Part 2)
- ASLR: how randomization works.
* Understanding malloc/free and heap metadata.
* Classic heap overflows.
* Use-after-free and double free.
* Simple heap exploitation demos.
- Leaking addresses to defeat ASLR.
---
- Stack canaries and partial overwrites.
### **Episode 9: Heap Exploitation (Advanced)**
### Episode 8: Heap Exploitation (Basics)
- Understanding malloc/free and heap metadata.
* Unlink attacks and unsafe unlink.
* Fastbin dup tricks.
* The “House of” techniques:
- Classic heap overflows.
+ House of Force
+ House of Spirit
+ House of Lore
+ House of Einherjar
* Tcache poisoning in modern glibc.
- Use-after-free and double free.
---
- Simple heap exploitation demos.
### **Episode 10: Advanced Exploitation Techniques**
### Episode 9: Heap Exploitation (Advanced)
- Unlink attacks and unsafe unlink.
* GOT/PLT overwrites.
* Ret2dlresolve.
* Sigreturn-oriented programming (SROP).
* JOP (Jump-Oriented Programming).
- Fastbin dup tricks.
---
- The “House of” techniques:
### **Episode 11: Kernel & Windows Exploitation (Intro)**
- House of Force
* Userland vs kernel space.
* Exploiting syscalls for privilege escalation.
* Windows basics: SEH overwrites, DEP/ASLR bypass.
* Kernel driver exploitation.
- House of Spirit
---
- House of Lore
### **Episode 12: Modern Defenses & Mitigations**
- House of Einherjar
* Control-Flow Integrity (CFI).
* Shadow stacks & CET.
* Hardened malloc and allocator security.
* Sandboxing & seccomp-bpf.
- Tcache poisoning in modern glibc.
---
### Episode 10: Advanced Exploitation Techniques
- GOT/PLT overwrites.
### **Episode 13: Exploit Workflow in Practice**
- Ret2dlresolve.
* Solving a CTF challenge step-by-step.
* Remote exploitation (exploiting over sockets).
* Exploit reliability (stability, bruteforcing).
* Post-exploitation steps (getting a shell, escalating privileges).
- Sigreturn-oriented programming (SROP).
---
- JOP (Jump-Oriented Programming).
### **Episode 14: Beyond the Basics**
### Episode 11: Kernel & Windows Exploitation (Intro)
- Userland vs kernel space.
- Exploiting syscalls for privilege escalation.
- Windows basics: SEH overwrites, DEP/ASLR bypass.
- Kernel driver exploitation.
### Episode 12: Modern Defenses & Mitigations
- Control-Flow Integrity (CFI).
- Shadow stacks & CET.
- Hardened malloc and allocator security.
- Sandboxing & seccomp-bpf.
### Episode 13: Exploit Workflow in Practice
- Solving a CTF challenge step-by-step.
- Remote exploitation (exploiting over sockets).
- Exploit reliability (stability, bruteforcing).
- Post-exploitation steps (getting a shell, escalating privileges).
### Episode 14: Beyond the Basics
- Automating exploit discovery with fuzzing (AFL, honggfuzz).
- Symbolic execution with angr.
- Real-world case studies (Heartbleed, Dirty COW, Shellshock).
- Writing weaponized exploits responsibly.
* Automating exploit discovery with fuzzing (AFL, honggfuzz).
* Symbolic execution with angr.
* Real-world case studies (Heartbleed, Dirty COW, Shellshock).
* Writing weaponized exploits responsibly.
-230
View File
@@ -1,230 +0,0 @@
baseURL = "https://pwnforfunandprofit.xyz"
defaultContentLanguage = "en"
# language code
languageCode = "en"
title = "pwnforfunandprofit"
description = "A blog about pwn for fun and profit"
theme = "DoIt"
keywords = ["reverse engineering", "pwn"]
defaultTheme = "auto"
enablePWA = true
cacheRemoteImages = true
optimizeImages = true
summaryLength = 0
# Change the default theme to be use when building the site with Hugo
[params]
# DoIt theme version
version = "0.4.X"
[params.author]
name = "mockingspectre"
[params.search]
enable = true
# type of search engine ("algolia", "fuse")
type = "fuse"
# max index length of the chunked content
contentLength = 4000
# placeholder of the search bar
placeholder = ""
# DoIt NEW | 0.2.1 max number of results length
maxResultLength = 10
# DoIt NEW | 0.2.3 snippet length of the result
snippetLength = 30
# DoIt NEW | 0.2.1 HTML tag name of the highlight part in results
highlightTag = "em"
# DoIt NEW | 0.2.4 whether to use the absolute URL based on the baseURL in search index
absoluteURL = false
[params.search.fuse]
# DoIt NEW | 0.2.12 https://fusejs.io/api/options.html
isCaseSensitive = false
minMatchCharLength = 2
findAllMatches = false
location = 0
threshold = 0.3
distance = 100
ignoreLocation = false
useExtendedSearch = false
ignoreFieldNorm = false
[params.image]
# cache remote images for better optimisations
cacheRemote = true
# Image resizing and optimisation
optimise = true
[params.home]
# DoIt NEW | 0.2.0 amount of RSS pages
rss = 10
# Home page profile
[params.home.profile]
enable = true
# Gravatar Email for preferred avatar in home page
gravatarEmail = ""
# URL of avatar shown in home page
# Place your avatar file under static or assets directory
# The filepath is relative to the static or assets directory
avatarURL = "/images/avatar.webp"
# URL the avatar links to
avatarLinkURL = ""
# DoIt CHANGED | 0.2.7 title shown in home page (HTML format is supported)
title = ""
# subtitle shown in home page
subtitle = "offending binaries"
# whether to use typeit animation for subtitle
typeit = true
# whether to show social links
social = true
# DoIt NEW | 0.2.0 disclaimer (HTML format is supported)
disclaimer = ""
# Home page posts
[params.home.posts]
enable = true
# special amount of posts in each home posts page
paginate = 6
# DoIt DELETED | 0.2.0 replaced with hiddenFromHomePage in params.page
# default behavior when you don't set "hiddenFromHomePage" in front matter
defaultHiddenFromHomePage = false
[menu]
[[menu.main]]
identifier = "posts"
# you can add extra information before the name (HTML format is supported), such as icons
pre = ""
# you can add extra information after the name (HTML format is supported), such as icons
post = ""
name = "Posts"
url = "/posts/"
# title will be shown when you hover on this menu link
title = ""
weight = 1
[[menu.main]]
identifier = "tags"
pre = ""
post = ""
name = "Tags"
url = "/tags/"
title = ""
weight = 2
# Markup related configuration in Hugo
[markup]
# Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting)
[markup.highlight]
# false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158)
noClasses = false
codeFences = true
guessSyntax = true
lineNos = true
[markup.goldmark]
[markup.goldmark.extensions]
definitionList = true
footnote = true
linkify = true
strikethrough = true
table = true
taskList = true
typographer = true
[markup.goldmark.renderer]
# whether to use HTML tags directly in the document
unsafe = true
# Table Of Contents settings
[markup.tableOfContents]
startLevel = 2
endLevel = 6
[params.analytics]
enable = false
[params.analytics.cloudflare]
token = ""
[params.verification]
google = ""
bing = ""
yandex = ""
pinterest = ""
baidu = ""
so = "" # 360 search
sogou = ""
[params.sponsor]
enable = false
bio = "If you find this post helpful, please consider sponsoring."
link = "https://www.buymeacoffee.com"
[params.footer]
enable = true
# DoIt NEW | 0.2.0 Custom content (HTML format is supported)
custom = ''
# DoIt NEW | 0.2.0 whether to show Hugo and theme info
hugo = false
# DoIt NEW | 0.2.14 Hosted on (HTML format is supported)
# DoIt NEW | 0.2.0 whether to show copyright info
copyright = true
# DoIt NEW | 0.2.0 whether to show the author
author = true
# Site creation time
since = 2025
# The link to your sponsor page
[params.social]
GitHub = "xxxx"
Linkedin = ""
Twitter = "xxxx"
RSS = true
[params.page.comment]
enable = true
[params.page.comment.utterances]
enable = true
# owner/repo
repo = "andwati/pwnforfunandprofit.xyz"
issueTerm = "pathname"
label = ""
lightTheme = "github-light"
darkTheme = "github-dark"
# Options to make output .md files
[mediaTypes]
[mediaTypes."text/plain"]
suffixes = ["md"]
[outputFormats.MarkDown]
mediaType = "text/plain"
isPlainText = true
isHTML = false
[Permalinks]
posts = ":year/:month/:contentbasename"
[sitemap]
changefreq = "weekly"
filename = "sitemap.xml"
priority = 0.5
# Options to make hugo output files
[outputs]
# DoIt CHANGED | 0.2.0
home = ["HTML", "RSS", "JSON"]
page = ["HTML", "MarkDown"]
section = ["HTML", "RSS"]
taxonomy = ["HTML", "RSS"]
[taxonomies]
author = "authors"
category = "categories"
tag = "tags"
series = "series"
+49
View File
@@ -0,0 +1,49 @@
---
name: full-output-enforcement
description: Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
---
# Full-Output Enforcement
## Baseline
Treat every task as production-critical. A partial output is a broken output. Do not optimize for brevity — optimize for completeness. If the user asks for a full file, deliver the full file. If the user asks for 5 components, deliver 5 components. No exceptions.
## Banned Output Patterns
The following patterns are hard failures. Never produce them:
**In code blocks:** `// ...`, `// rest of code`, `// implement here`, `// TODO`, `/* ... */`, `// similar to above`, `// continue pattern`, `// add more as needed`, bare `...` standing in for omitted code
**In prose:** "Let me know if you want me to continue", "I can provide more details if needed", "for brevity", "the rest follows the same pattern", "similarly for the remaining", "and so on" (when replacing actual content), "I'll leave that as an exercise"
**Structural shortcuts:** Outputting a skeleton when the request was for a full implementation. Showing the first and last section while skipping the middle. Replacing repeated logic with one example and a description. Describing what code should do instead of writing it.
## Execution Process
1. **Scope** — Read the full request. Count how many distinct deliverables are expected (files, functions, sections, answers). Lock that number.
2. **Build** — Generate every deliverable completely. No partial drafts, no "you can extend this later."
3. **Cross-check** — Before output, re-read the original request. Compare your deliverable count against the scope count. If anything is missing, add it before responding.
## Handling Long Outputs
When a response approaches the token limit:
- Do not compress remaining sections to squeeze them in.
- Do not skip ahead to a conclusion.
- Write at full quality up to a clean breakpoint (end of a function, end of a file, end of a section).
- End with:
```
[PAUSED — X of Y complete. Send "continue" to resume from: next section name]
```
On "continue", pick up exactly where you stopped. No recap, no repetition.
## Quick Check
Before finalizing any response, verify:
- No banned patterns from the list above appear anywhere in the output
- Every item the user requested is present and finished
- Code blocks contain actual runnable code, not descriptions of what code would do
- Nothing was shortened to save space
+178
View File
@@ -0,0 +1,178 @@
---
name: redesign-existing-projects
description: Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.
---
# Redesign Skill
## How This Works
When applied to an existing project, follow this sequence:
1. **Scan** — Read the codebase. Identify the framework, styling method (Tailwind, vanilla CSS, styled-components, etc.), and current design patterns.
2. **Diagnose** — Run through the audit below. List every generic pattern, weak point, and missing state you find.
3. **Fix** — Apply targeted upgrades working with the existing stack. Do not rewrite from scratch. Improve what's there.
## Design Audit
### Typography
Check for these problems and fix them:
- **Browser default fonts or Inter everywhere.** Replace with a font that has character. Good options: `Geist`, `Outfit`, `Cabinet Grotesk`, `Satoshi`. For editorial/creative projects, pair a serif header with a sans-serif body.
- **Headlines lack presence.** Increase size for display text, tighten letter-spacing, reduce line-height. Headlines should feel heavy and intentional.
- **Body text too wide.** Limit paragraph width to roughly 65 characters. Increase line-height for readability.
- **Only Regular (400) and Bold (700) weights used.** Introduce Medium (500) and SemiBold (600) for more subtle hierarchy.
- **Numbers in proportional font.** Use a monospace font or enable tabular figures (`font-variant-numeric: tabular-nums`) for data-heavy interfaces.
- **Missing letter-spacing adjustments.** Use negative tracking for large headers, positive tracking for small caps or labels.
- **All-caps subheaders everywhere.** Try lowercase italics, sentence case, or small-caps instead.
- **Orphaned words.** Single words sitting alone on the last line. Fix with `text-wrap: balance` or `text-wrap: pretty`.
### Color and Surfaces
- **Pure `#000000` background.** Replace with off-black, dark charcoal, or tinted dark (`#0a0a0a`, `#121212`, or a dark navy).
- **Oversaturated accent colors.** Keep saturation below 80%. Desaturate accents so they blend with neutrals instead of screaming.
- **More than one accent color.** Pick one. Remove the rest. Consistency beats variety.
- **Mixing warm and cool grays.** Stick to one gray family. Tint all grays with a consistent hue (warm or cool, not both).
- **Purple/blue "AI gradient" aesthetic.** This is the most common AI design fingerprint. Replace with neutral bases and a single, considered accent.
- **Generic `box-shadow`.** Tint shadows to match the background hue. Use colored shadows (e.g., dark blue shadow on a blue background) instead of pure black at low opacity.
- **Flat design with zero texture.** Add subtle noise, grain, or micro-patterns to backgrounds. Pure flat vectors feel sterile.
- **Perfectly even gradients.** Break the uniformity with radial gradients, noise overlays, or mesh gradients instead of standard linear 45-degree fades.
- **Inconsistent lighting direction.** Audit all shadows to ensure they suggest a single, consistent light source.
- **Random dark sections in a light mode page (or vice versa).** A single dark-background section breaking an otherwise light page looks like a copy-paste accident. Either commit to a full dark mode or keep a consistent background tone throughout. If contrast is needed, use a slightly darker shade of the same palette — not a sudden jump to `#111` in the middle of a cream page.
- **Empty, flat sections with no visual depth.** Sections that are just text on a plain background feel unfinished. Add high-quality background imagery (blurred, overlaid, or masked), subtle patterns, or ambient gradients. Use reliable placeholder sources like `https://picsum.photos/seed/{name}/1920/1080` when real assets are not available. Experiment with background images behind hero sections, feature blocks, or CTAs — even a subtle full-width photo at low opacity adds presence.
### Layout
- **Everything centered and symmetrical.** Break symmetry with offset margins, mixed aspect ratios, or left-aligned headers over centered content.
- **Three equal card columns as feature row.** This is the most generic AI layout. Replace with a 2-column zig-zag, asymmetric grid, horizontal scroll, or masonry layout.
- **Using `height: 100vh` for full-screen sections.** Replace with `min-height: 100dvh` to prevent layout jumping on mobile browsers (iOS Safari viewport bug).
- **Complex flexbox percentage math.** Replace with CSS Grid for reliable multi-column structures.
- **No max-width container.** Add a container constraint (around 1200-1440px) with auto margins so content doesn't stretch edge-to-edge on wide screens.
- **Cards of equal height forced by flexbox.** Allow variable heights or use masonry when content varies in length.
- **Uniform border-radius on everything.** Vary the radius: tighter on inner elements, softer on containers.
- **No overlap or depth.** Elements sit flat next to each other. Use negative margins to create layering and visual depth.
- **Symmetrical vertical padding.** Top and bottom padding are always identical. Adjust optically — bottom padding often needs to be slightly larger.
- **Dashboard always has a left sidebar.** Try top navigation, a floating command menu, or a collapsible panel instead.
- **Missing whitespace.** Double the spacing. Let the design breathe. Dense layouts work for data dashboards, not for marketing pages.
- **Buttons not bottom-aligned in card groups.** When cards have different content lengths, CTAs end up at random heights. Pin buttons to the bottom of each card so they form a clean horizontal line regardless of content above.
- **Feature lists starting at different vertical positions.** In pricing tables or comparison cards, the list of features should start at the same Y position across all columns. Use consistent spacing above the list or fixed-height title/price blocks.
- **Inconsistent vertical rhythm in side-by-side elements.** When placing cards, columns, or panels next to each other, align shared elements (titles, descriptions, prices, buttons) across all items. Misaligned baselines make the layout look broken.
- **Mathematical alignment that looks optically wrong.** Centering by the math doesn't always look centered to the eye. Icons next to text, play buttons in circles, or text in buttons often need 1-2px optical adjustments to feel right.
### Interactivity and States
- **No hover states on buttons.** Add background shift, slight scale, or translate on hover.
- **No active/pressed feedback.** Add a subtle `scale(0.98)` or `translateY(1px)` on press to simulate a physical click.
- **Instant transitions with zero duration.** Add smooth transitions (200-300ms) to all interactive elements.
- **Missing focus ring.** Ensure visible focus indicators for keyboard navigation. This is an accessibility requirement, not optional.
- **No loading states.** Replace generic circular spinners with skeleton loaders that match the layout shape.
- **No empty states.** An empty dashboard showing nothing is a missed opportunity. Design a composed "getting started" view.
- **No error states.** Add clear, inline error messages for forms. Do not use `window.alert()`.
- **Dead links.** Buttons that link to `#`. Either link to real destinations or visually disable them.
- **No indication of current page in navigation.** Style the active nav link differently so users know where they are.
- **Scroll jumping.** Anchor clicks jump instantly. Add `scroll-behavior: smooth`.
- **Animations using `top`, `left`, `width`, `height`.** Switch to `transform` and `opacity` for GPU-accelerated, smooth animation.
### Content
- **Generic names like "John Doe" or "Jane Smith".** Use diverse, realistic-sounding names.
- **Fake round numbers like `99.99%`, `50%`, `$100.00`.** Use organic, messy data: `47.2%`, `$99.00`, `+1 (312) 847-1928`.
- **Placeholder company names like "Acme Corp", "Nexus", "SmartFlow".** Invent contextual, believable brand names.
- **AI copywriting cliches.** Never use "Elevate", "Seamless", "Unleash", "Next-Gen", "Game-changer", "Delve", "Tapestry", or "In the world of...". Write plain, specific language.
- **Exclamation marks in success messages.** Remove them. Be confident, not loud.
- **"Oops!" error messages.** Be direct: "Connection failed. Please try again."
- **Passive voice.** Use active voice: "We couldn't save your changes" instead of "Mistakes were made."
- **All blog post dates identical.** Randomize dates to appear real.
- **Same avatar image for multiple users.** Use unique assets for every distinct person.
- **Lorem Ipsum.** Never use placeholder latin text. Write real draft copy.
- **Title Case On Every Header.** Use sentence case instead.
### Component Patterns
- **Generic card look (border + shadow + white background).** Remove the border, or use only background color, or use only spacing. Cards should exist only when elevation communicates hierarchy.
- **Always one filled button + one ghost button.** Add text links or tertiary styles to reduce visual noise.
- **Pill-shaped "New" and "Beta" badges.** Try square badges, flags, or plain text labels.
- **Accordion FAQ sections.** Use a side-by-side list, searchable help, or inline progressive disclosure.
- **3-card carousel testimonials with dots.** Replace with a masonry wall, embedded social posts, or a single rotating quote.
- **Pricing table with 3 towers.** Highlight the recommended tier with color and emphasis, not just extra height.
- **Modals for everything.** Use inline editing, slide-over panels, or expandable sections instead of popups for simple actions.
- **Avatar circles exclusively.** Try squircles or rounded squares for a less generic look.
- **Light/dark toggle always a sun/moon switch.** Use a dropdown, system preference detection, or integrate it into settings.
- **Footer link farm with 4 columns.** Simplify. Focus on main navigational paths and legally required links.
### Iconography
- **Lucide or Feather icons exclusively.** These are the "default" AI icon choice. Use Phosphor, Heroicons, or a custom set for differentiation.
- **Rocketship for "Launch", shield for "Security".** Replace cliche metaphors with less obvious icons (bolt, fingerprint, spark, vault).
- **Inconsistent stroke widths across icons.** Audit all icons and standardize to one stroke weight.
- **Missing favicon.** Always include a branded favicon.
- **Stock "diverse team" photos.** Use real team photos, candid shots, or a consistent illustration style instead of uncanny stock imagery.
### Code Quality
- **Div soup.** Use semantic HTML: `<nav>`, `<main>`, `<article>`, `<aside>`, `<section>`.
- **Inline styles mixed with CSS classes.** Move all styling to the project's styling system.
- **Hardcoded pixel widths.** Use relative units (`%`, `rem`, `em`, `max-width`) for flexible layouts.
- **Missing alt text on images.** Describe image content for screen readers. Never leave `alt=""` or `alt="image"` on meaningful images.
- **Arbitrary z-index values like `9999`.** Establish a clean z-index scale in the theme/variables.
- **Commented-out dead code.** Remove all debug artifacts before shipping.
- **Import hallucinations.** Check that every import actually exists in `package.json` or the project dependencies.
- **Missing meta tags.** Add proper `<title>`, `description`, `og:image`, and social sharing meta tags.
### Strategic Omissions (What AI Typically Forgets)
- **No legal links.** Add privacy policy and terms of service links in the footer.
- **No "back" navigation.** Dead ends in user flows. Every page needs a way back.
- **No custom 404 page.** Design a helpful, branded "page not found" experience.
- **No form validation.** Add client-side validation for emails, required fields, and format checks.
- **No "skip to content" link.** Essential for keyboard users. Add a hidden skip-link.
- **No cookie consent.** If required by jurisdiction, add a compliant consent banner.
## Upgrade Techniques
When upgrading a project, pull from these high-impact techniques to replace generic patterns:
### Typography Upgrades
- **Variable font animation.** Interpolate weight or width on scroll or hover for text that feels alive.
- **Outlined-to-fill transitions.** Text starts as a stroke outline and fills with color on scroll entry or interaction.
- **Text mask reveals.** Large typography acting as a window to video or animated imagery behind it.
### Layout Upgrades
- **Broken grid / asymmetry.** Elements that deliberately ignore column structure — overlapping, bleeding off-screen, or offset with calculated randomness.
- **Whitespace maximization.** Aggressive use of negative space to force focus on a single element.
- **Parallax card stacks.** Sections that stick and physically stack over each other during scroll.
- **Split-screen scroll.** Two halves of the screen sliding in opposite directions.
### Motion Upgrades
- **Smooth scroll with inertia.** Decouple scrolling from browser defaults for a heavier, cinematic feel.
- **Staggered entry.** Elements cascade in with slight delays, combining Y-axis translation with opacity fade. Never mount everything at once.
- **Spring physics.** Replace linear easing with spring-based motion for a natural, weighty feel on all interactive elements.
- **Scroll-driven reveals.** Content entering through expanding masks, wipes, or draw-on SVG paths tied to scroll progress.
### Surface Upgrades
- **True glassmorphism.** Go beyond `backdrop-filter: blur`. Add a 1px inner border and a subtle inner shadow to simulate edge refraction.
- **Spotlight borders.** Card borders that illuminate dynamically under the cursor.
- **Grain and noise overlays.** A fixed, pointer-events-none overlay with subtle noise to break digital flatness.
- **Colored, tinted shadows.** Shadows that carry the hue of the background rather than using generic black.
## Fix Priority
Apply changes in this order for maximum visual impact with minimum risk:
1. **Font swap** — biggest instant improvement, lowest risk
2. **Color palette cleanup** — remove clashing or oversaturated colors
3. **Hover and active states** — makes the interface feel alive
4. **Layout and spacing** — proper grid, max-width, consistent padding
5. **Replace generic components** — swap cliche patterns for modern alternatives
6. **Add loading, empty, and error states** — makes it feel finished
7. **Polish typography scale and spacing** — the premium final touch
## Rules
- Work with the existing tech stack. Do not migrate frameworks or styling libraries.
- Do not break existing functionality. Test after every change.
- Before importing any new library, check the project's dependency file first.
- If the project uses Tailwind, check the version (v3 vs v4) before modifying config.
- If the project has no framework, use vanilla CSS.
- Keep changes reviewable and focused. Small, targeted improvements over big rewrites.
+226
View File
@@ -0,0 +1,226 @@
---
name: design-taste-frontend
description: Senior UI/UX Engineer. Architect digital interfaces overriding default LLM biases. Enforces metric-based rules, strict component architecture, CSS hardware acceleration, and balanced design engineering.
---
# High-Agency Frontend Skill
## 1. ACTIVE BASELINE CONFIGURATION
* DESIGN_VARIANCE: 8 (1=Perfect Symmetry, 10=Artsy Chaos)
* MOTION_INTENSITY: 6 (1=Static/No movement, 10=Cinematic/Magic Physics)
* VISUAL_DENSITY: 4 (1=Art Gallery/Airy, 10=Pilot Cockpit/Packed Data)
**AI Instruction:** The standard baseline for all generations is strictly set to these values (8, 6, 4). Do not ask the user to edit this file. Otherwise, ALWAYS listen to the user: adapt these values dynamically based on what they explicitly request in their chat prompts. Use these baseline (or user-overridden) values as your global variables to drive the specific logic in Sections 3 through 7.
## 2. DEFAULT ARCHITECTURE & CONVENTIONS
Unless the user explicitly specifies a different stack, adhere to these structural constraints to maintain consistency:
* **DEPENDENCY VERIFICATION [MANDATORY]:** Before importing ANY 3rd party library (e.g. `framer-motion`, `lucide-react`, `zustand`), you MUST check `package.json`. If the package is missing, you MUST output the installation command (e.g. `npm install package-name`) before providing the code. **Never** assume a library exists.
* **Framework & Interactivity:** React or Next.js. Default to Server Components (`RSC`).
* **RSC SAFETY:** Global state works ONLY in Client Components. In Next.js, wrap providers in a `"use client"` component.
* **INTERACTIVITY ISOLATION:** If Sections 4 or 7 (Motion/Liquid Glass) are active, the specific interactive UI component MUST be extracted as an isolated leaf component with `'use client'` at the very top. Server Components must exclusively render static layouts.
* **State Management:** Use local `useState`/`useReducer` for isolated UI. Use global state strictly for deep prop-drilling avoidance.
* **Styling Policy:** Use Tailwind CSS (v3/v4) for 90% of styling.
* **TAILWIND VERSION LOCK:** Check `package.json` first. Do not use v4 syntax in v3 projects.
* **T4 CONFIG GUARD:** For v4, do NOT use `tailwindcss` plugin in `postcss.config.js`. Use `@tailwindcss/postcss` or the Vite plugin.
* **ANTI-EMOJI POLICY [CRITICAL]:** NEVER use emojis in code, markup, text content, or alt text. Replace symbols with high-quality icons (Radix, Phosphor) or clean SVG primitives. Emojis are BANNED.
* **Responsiveness & Spacing:**
* Standardize breakpoints (`sm`, `md`, `lg`, `xl`).
* Contain page layouts using `max-w-[1400px] mx-auto` or `max-w-7xl`.
* **Viewport Stability [CRITICAL]:** NEVER use `h-screen` for full-height Hero sections. ALWAYS use `min-h-[100dvh]` to prevent catastrophic layout jumping on mobile browsers (iOS Safari).
* **Grid over Flex-Math:** NEVER use complex flexbox percentage math (`w-[calc(33%-1rem)]`). ALWAYS use CSS Grid (`grid grid-cols-1 md:grid-cols-3 gap-6`) for reliable structures.
* **Icons:** You MUST use exactly `@phosphor-icons/react` or `@radix-ui/react-icons` as the import paths (check installed version). Standardize `strokeWidth` globally (e.g., exclusively use `1.5` or `2.0`).
## 3. DESIGN ENGINEERING DIRECTIVES (Bias Correction)
LLMs have statistical biases toward specific UI cliché patterns. Proactively construct premium interfaces using these engineered rules:
**Rule 1: Deterministic Typography**
* **Display/Headlines:** Default to `text-4xl md:text-6xl tracking-tighter leading-none`.
* **ANTI-SLOP:** Discourage `Inter` for "Premium" or "Creative" vibes. Force unique character using `Geist`, `Outfit`, `Cabinet Grotesk`, or `Satoshi`.
* **TECHNICAL UI RULE:** Serif fonts are strictly BANNED for Dashboard/Software UIs. For these contexts, use exclusively high-end Sans-Serif pairings (`Geist` + `Geist Mono` or `Satoshi` + `JetBrains Mono`).
* **Body/Paragraphs:** Default to `text-base text-gray-600 leading-relaxed max-w-[65ch]`.
**Rule 2: Color Calibration**
* **Constraint:** Max 1 Accent Color. Saturation < 80%.
* **THE LILA BAN:** The "AI Purple/Blue" aesthetic is strictly BANNED. No purple button glows, no neon gradients. Use absolute neutral bases (Zinc/Slate) with high-contrast, singular accents (e.g. Emerald, Electric Blue, or Deep Rose).
* **COLOR CONSISTENCY:** Stick to one palette for the entire output. Do not fluctuate between warm and cool grays within the same project.
**Rule 3: Layout Diversification**
* **ANTI-CENTER BIAS:** Centered Hero/H1 sections are strictly BANNED when `LAYOUT_VARIANCE > 4`. Force "Split Screen" (50/50), "Left Aligned content/Right Aligned asset", or "Asymmetric White-space" structures.
**Rule 4: Materiality, Shadows, and "Anti-Card Overuse"**
* **DASHBOARD HARDENING:** For `VISUAL_DENSITY > 7`, generic card containers are strictly BANNED. Use logic-grouping via `border-t`, `divide-y`, or purely negative space. Data metrics should breathe without being boxed in unless elevation (z-index) is functionally required.
* **Execution:** Use cards ONLY when elevation communicates hierarchy. When a shadow is used, tint it to the background hue.
**Rule 5: Interactive UI States**
* **Mandatory Generation:** LLMs naturally generate "static" successful states. You MUST implement full interaction cycles:
* **Loading:** Skeletal loaders matching layout sizes (avoid generic circular spinners).
* **Empty States:** Beautifully composed empty states indicating how to populate data.
* **Error States:** Clear, inline error reporting (e.g., forms).
* **Tactile Feedback:** On `:active`, use `-translate-y-[1px]` or `scale-[0.98]` to simulate a physical push indicating success/action.
**Rule 6: Data & Form Patterns**
* **Forms:** Label MUST sit above input. Helper text is optional but should exist in markup. Error text below input. Use a standard `gap-2` for input blocks.
## 4. CREATIVE PROACTIVITY (Anti-Slop Implementation)
To actively combat generic AI designs, systematically implement these high-end coding concepts as your baseline:
* **"Liquid Glass" Refraction:** When glassmorphism is needed, go beyond `backdrop-blur`. Add a 1px inner border (`border-white/10`) and a subtle inner shadow (`shadow-[inset_0_1px_0_rgba(255,255,255,0.1)]`) to simulate physical edge refraction.
* **Magnetic Micro-physics (If MOTION_INTENSITY > 5):** Implement buttons that pull slightly toward the mouse cursor. **CRITICAL:** NEVER use React `useState` for magnetic hover or continuous animations. Use EXCLUSIVELY Framer Motion's `useMotionValue` and `useTransform` outside the React render cycle to prevent performance collapse on mobile.
* **Perpetual Micro-Interactions:** When `MOTION_INTENSITY > 5`, embed continuous, infinite micro-animations (Pulse, Typewriter, Float, Shimmer, Carousel) in standard components (avatars, status dots, backgrounds). Apply premium Spring Physics (`type: "spring", stiffness: 100, damping: 20`) to all interactive elements—no linear easing.
* **Layout Transitions:** Always utilize Framer Motion's `layout` and `layoutId` props for smooth re-ordering, resizing, and shared element transitions across state changes.
* **Staggered Orchestration:** Do not mount lists or grids instantly. Use `staggerChildren` (Framer) or CSS cascade (`animation-delay: calc(var(--index) * 100ms)`) to create sequential waterfall reveals. **CRITICAL:** For `staggerChildren`, the Parent (`variants`) and Children MUST reside in the identical Client Component tree. If data is fetched asynchronously, pass the data as props into a centralized Parent Motion wrapper.
## 5. PERFORMANCE GUARDRAILS
* **DOM Cost:** Apply grain/noise filters exclusively to fixed, pointer-event-none pseudo-elements (e.g., `fixed inset-0 z-50 pointer-events-none`) and NEVER to scrolling containers to prevent continuous GPU repaints and mobile performance degradation.
* **Hardware Acceleration:** Never animate `top`, `left`, `width`, or `height`. Animate exclusively via `transform` and `opacity`.
* **Z-Index Restraint:** NEVER spam arbitrary `z-50` or `z-10` unprompted. Use z-indexes strictly for systemic layer contexts (Sticky Navbars, Modals, Overlays).
## 6. TECHNICAL REFERENCE (Dial Definitions)
### DESIGN_VARIANCE (Level 1-10)
* **1-3 (Predictable):** Flexbox `justify-center`, strict 12-column symmetrical grids, equal paddings.
* **4-7 (Offset):** Use `margin-top: -2rem` overlapping, varied image aspect ratios (e.g., 4:3 next to 16:9), left-aligned headers over center-aligned data.
* **8-10 (Asymmetric):** Masonry layouts, CSS Grid with fractional units (e.g., `grid-template-columns: 2fr 1fr 1fr`), massive empty zones (`padding-left: 20vw`).
* **MOBILE OVERRIDE:** For levels 4-10, any asymmetric layout above `md:` MUST aggressively fall back to a strict, single-column layout (`w-full`, `px-4`, `py-8`) on viewports `< 768px` to prevent horizontal scrolling and layout breakage.
### MOTION_INTENSITY (Level 1-10)
* **1-3 (Static):** No automatic animations. CSS `:hover` and `:active` states only.
* **4-7 (Fluid CSS):** Use `transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1)`. Use `animation-delay` cascades for load-ins. Focus strictly on `transform` and `opacity`. Use `will-change: transform` sparingly.
* **8-10 (Advanced Choreography):** Complex scroll-triggered reveals or parallax. Use Framer Motion hooks. NEVER use `window.addEventListener('scroll')`.
### VISUAL_DENSITY (Level 1-10)
* **1-3 (Art Gallery Mode):** Lots of white space. Huge section gaps. Everything feels very expensive and clean.
* **4-7 (Daily App Mode):** Normal spacing for standard web apps.
* **8-10 (Cockpit Mode):** Tiny paddings. No card boxes; just 1px lines to separate data. Everything is packed. **Mandatory:** Use Monospace (`font-mono`) for all numbers.
## 7. AI TELLS (Forbidden Patterns)
To guarantee a premium, non-generic output, you MUST strictly avoid these common AI design signatures unless explicitly requested:
### Visual & CSS
* **NO Neon/Outer Glows:** Do not use default `box-shadow` glows or auto-glows. Use inner borders or subtle tinted shadows.
* **NO Pure Black:** Never use `#000000`. Use Off-Black, Zinc-950, or Charcoal.
* **NO Oversaturated Accents:** Desaturate accents to blend elegantly with neutrals.
* **NO Excessive Gradient Text:** Do not use text-fill gradients for large headers.
* **NO Custom Mouse Cursors:** They are outdated and ruin performance/accessibility.
### Typography
* **NO Inter Font:** Banned. Use `Geist`, `Outfit`, `Cabinet Grotesk`, or `Satoshi`.
* **NO Oversized H1s:** The first heading should not scream. Control hierarchy with weight and color, not just massive scale.
* **Serif Constraints:** Use Serif fonts ONLY for creative/editorial designs. **NEVER** use Serif on clean Dashboards.
### Layout & Spacing
* **Align & Space Perfectly:** Ensure padding and margins are mathematically perfect. Avoid floating elements with awkward gaps.
* **NO 3-Column Card Layouts:** The generic "3 equal cards horizontally" feature row is BANNED. Use a 2-column Zig-Zag, asymmetric grid, or horizontal scrolling approach instead.
### Content & Data (The "Jane Doe" Effect)
* **NO Generic Names:** "John Doe", "Sarah Chan", or "Jack Su" are banned. Use highly creative, realistic-sounding names.
* **NO Generic Avatars:** DO NOT use standard SVG "egg" or Lucide user icons for avatars. Use creative, believable photo placeholders or specific styling.
* **NO Fake Numbers:** Avoid predictable outputs like `99.99%`, `50%`, or basic phone numbers (`1234567`). Use organic, messy data (`47.2%`, `+1 (312) 847-1928`).
* **NO Startup Slop Names:** "Acme", "Nexus", "SmartFlow". Invent premium, contextual brand names.
* **NO Filler Words:** Avoid AI copywriting clichés like "Elevate", "Seamless", "Unleash", or "Next-Gen". Use concrete verbs.
### External Resources & Components
* **NO Broken Unsplash Links:** Do not use Unsplash. Use absolute, reliable placeholders like `https://picsum.photos/seed/{random_string}/800/600` or SVG UI Avatars.
* **shadcn/ui Customization:** You may use `shadcn/ui`, but NEVER in its generic default state. You MUST customize the radii, colors, and shadows to match the high-end project aesthetic.
* **Production-Ready Cleanliness:** Code must be extremely clean, visually striking, memorable, and meticulously refined in every detail.
## 8. THE CREATIVE ARSENAL (High-End Inspiration)
Do not default to generic UI. Pull from this library of advanced concepts to ensure the output is visually striking and memorable. When appropriate, leverage **GSAP (ScrollTrigger/Parallax)** for complex scrolltelling or **ThreeJS/WebGL** for 3D/Canvas animations, rather than basic CSS motion. **CRITICAL:** Never mix GSAP/ThreeJS with Framer Motion in the same component tree. Default to Framer Motion for UI/Bento interactions. Use GSAP/ThreeJS EXCLUSIVELY for isolated full-page scrolltelling or canvas backgrounds, wrapped in strict useEffect cleanup blocks.
### The Standard Hero Paradigm
* Stop doing centered text over a dark image. Try asymmetric Hero sections: Text cleanly aligned to the left or right. The background should feature a high-quality, relevant image with a subtle stylistic fade (darkening or lightening gracefully into the background color depending on if it is Light or Dark mode).
### Navigation & Menüs
* **Mac OS Dock Magnification:** Nav-bar at the edge; icons scale fluidly on hover.
* **Magnetic Button:** Buttons that physically pull toward the cursor.
* **Gooey Menu:** Sub-items detach from the main button like a viscous liquid.
* **Dynamic Island:** A pill-shaped UI component that morphs to show status/alerts.
* **Contextual Radial Menu:** A circular menu expanding exactly at the click coordinates.
* **Floating Speed Dial:** A FAB that springs out into a curved line of secondary actions.
* **Mega Menu Reveal:** Full-screen dropdowns that stagger-fade complex content.
### Layout & Grids
* **Bento Grid:** Asymmetric, tile-based grouping (e.g., Apple Control Center).
* **Masonry Layout:** Staggered grid without fixed row heights (e.g., Pinterest).
* **Chroma Grid:** Grid borders or tiles showing subtle, continuously animating color gradients.
* **Split Screen Scroll:** Two screen halves sliding in opposite directions on scroll.
* **Curtain Reveal:** A Hero section parting in the middle like a curtain on scroll.
### Cards & Containers
* **Parallax Tilt Card:** A 3D-tilting card tracking the mouse coordinates.
* **Spotlight Border Card:** Card borders that illuminate dynamically under the cursor.
* **Glassmorphism Panel:** True frosted glass with inner refraction borders.
* **Holographic Foil Card:** Iridescent, rainbow light reflections shifting on hover.
* **Tinder Swipe Stack:** A physical stack of cards the user can swipe away.
* **Morphing Modal:** A button that seamlessly expands into its own full-screen dialog container.
### Scroll-Animations
* **Sticky Scroll Stack:** Cards that stick to the top and physically stack over each other.
* **Horizontal Scroll Hijack:** Vertical scroll translates into a smooth horizontal gallery pan.
* **Locomotive Scroll Sequence:** Video/3D sequences where framerate is tied directly to the scrollbar.
* **Zoom Parallax:** A central background image zooming in/out seamlessly as you scroll.
* **Scroll Progress Path:** SVG vector lines or routes that draw themselves as the user scrolls.
* **Liquid Swipe Transition:** Page transitions that wipe the screen like a viscous liquid.
### Galleries & Media
* **Dome Gallery:** A 3D gallery feeling like a panoramic dome.
* **Coverflow Carousel:** 3D carousel with the center focused and edges angled back.
* **Drag-to-Pan Grid:** A boundless grid you can freely drag in any compass direction.
* **Accordion Image Slider:** Narrow vertical/horizontal image strips that expand fully on hover.
* **Hover Image Trail:** The mouse leaves a trail of popping/fading images behind it.
* **Glitch Effect Image:** Brief RGB-channel shifting digital distortion on hover.
### Typography & Text
* **Kinetic Marquee:** Endless text bands that reverse direction or speed up on scroll.
* **Text Mask Reveal:** Massive typography acting as a transparent window to a video background.
* **Text Scramble Effect:** Matrix-style character decoding on load or hover.
* **Circular Text Path:** Text curved along a spinning circular path.
* **Gradient Stroke Animation:** Outlined text with a gradient continuously running along the stroke.
* **Kinetic Typography Grid:** A grid of letters dodging or rotating away from the cursor.
### Micro-Interactions & Effects
* **Particle Explosion Button:** CTAs that shatter into particles upon success.
* **Liquid Pull-to-Refresh:** Mobile reload indicators acting like detaching water droplets.
* **Skeleton Shimmer:** Shifting light reflections moving across placeholder boxes.
* **Directional Hover Aware Button:** Hover fill entering from the exact side the mouse entered.
* **Ripple Click Effect:** Visual waves rippling precisely from the click coordinates.
* **Animated SVG Line Drawing:** Vectors that draw their own contours in real-time.
* **Mesh Gradient Background:** Organic, lava-lamp-like animated color blobs.
* **Lens Blur Depth:** Dynamic focus blurring background UI layers to highlight a foreground action.
## 9. THE "MOTION-ENGINE" BENTO PARADIGM
When generating modern SaaS dashboards or feature sections, you MUST utilize the following "Bento 2.0" architecture and motion philosophy. This goes beyond static cards and enforces a "Vercel-core meets Dribbble-clean" aesthetic heavily reliant on perpetual physics.
### A. Core Design Philosophy
* **Aesthetic:** High-end, minimal, and functional.
* **Palette:** Background in `#f9fafb`. Cards are pure white (`#ffffff`) with a 1px border of `border-slate-200/50`.
* **Surfaces:** Use `rounded-[2.5rem]` for all major containers. Apply a "diffusion shadow" (a very light, wide-spreading shadow, e.g., `shadow-[0_20px_40px_-15px_rgba(0,0,0,0.05)]`) to create depth without clutter.
* **Typography:** Strict `Geist`, `Satoshi`, or `Cabinet Grotesk` font stack. Use subtle tracking (`tracking-tight`) for headers.
* **Labels:** Titles and descriptions must be placed **outside and below** the cards to maintain a clean, gallery-style presentation.
* **Pixel-Perfection:** Use generous `p-8` or `p-10` padding inside cards.
### B. The Animation Engine Specs (Perpetual Motion)
All cards must contain **"Perpetual Micro-Interactions."** Use the following Framer Motion principles:
* **Spring Physics:** No linear easing. Use `type: "spring", stiffness: 100, damping: 20` for a premium, weighty feel.
* **Layout Transitions:** Heavily utilize the `layout` and `layoutId` props to ensure smooth re-ordering, resizing, and shared element state transitions.
* **Infinite Loops:** Every card must have an "Active State" that loops infinitely (Pulse, Typewriter, Float, or Carousel) to ensure the dashboard feels "alive".
* **Performance:** Wrap dynamic lists in `<AnimatePresence>` and optimize for 60fps. **PERFORMANCE CRITICAL:** Any perpetual motion or infinite loop MUST be memoized (React.memo) and completely isolated in its own microscopic Client Component. Never trigger re-renders in the parent layout.
### C. The 5-Card Archetypes (Micro-Animation Specs)
Implement these specific micro-animations when constructing Bento grids (e.g., Row 1: 3 cols | Row 2: 2 cols split 70/30):
1. **The Intelligent List:** A vertical stack of items with an infinite auto-sorting loop. Items swap positions using `layoutId`, simulating an AI prioritizing tasks in real-time.
2. **The Command Input:** A search/AI bar with a multi-step Typewriter Effect. It cycles through complex prompts, including a blinking cursor and a "processing" state with a shimmering loading gradient.
3. **The Live Status:** A scheduling interface with "breathing" status indicators. Include a pop-up notification badge that emerges with an "Overshoot" spring effect, stays for 3 seconds, and vanishes.
4. **The Wide Data Stream:** A horizontal "Infinite Carousel" of data cards or metrics. Ensure the loop is seamless (using `x: ["0%", "-100%"]`) with a speed that feels effortless.
5. **The Contextual UI (Focus Mode):** A document view that animates a staggered highlight of a text block, followed by a "Float-in" of a floating action toolbar with micro-icons.
## 10. FINAL PRE-FLIGHT CHECK
Evaluate your code against this matrix before outputting. This is the **last** filter you apply to your logic.
- [ ] Is global state used appropriately to avoid deep prop-drilling rather than arbitrarily?
- [ ] Is mobile layout collapse (`w-full`, `px-4`, `max-w-7xl mx-auto`) guaranteed for high-variance designs?
- [ ] Do full-height sections safely use `min-h-[100dvh]` instead of the bugged `h-screen`?
- [ ] Do `useEffect` animations contain strict cleanup functions?
- [ ] Are empty, loading, and error states provided?
- [ ] Are cards omitted in favor of spacing where possible?
- [ ] Did you strictly isolate CPU-heavy perpetual animations in their own Client Components?
-42
View File
@@ -1,42 +0,0 @@
# Makefile for Hugo development
HUGO ?= hugo
PORT ?= 1313
BIND ?= 127.0.0.1
BASEURL ?= http://localhost:$(PORT)
# Development flags: include drafts, enable live reload, faster feedback
HUGOFLAGS ?= -D --disableFastRender
SERVEFLAGS ?= server --bind $(BIND) --port $(PORT) --baseURL $(BASEURL) $(HUGOFLAGS)
.PHONY: help dev serve build preview clean new
help:
@echo "Usage:"
@echo " make dev # run hugo in dev mode (drafts, livereload)"
@echo " make serve # alias for dev"
@echo " make build # produce a production build (public/)"
@echo " make preview # build including drafts"
@echo " make clean # remove generated files"
@echo " make new NAME=foo # create new content at content/<NAME>"
dev:
$(HUGO) $(SERVEFLAGS)
serve: dev
build:
$(HUGO) --gc --minify
preview:
$(HUGO) -D --gc --minify
clean:
@rm -rf public resources .hugo_build.lock $(HOME)/.cache/hugo || true
# create new content: make new NAME=posts/my-post.md
# or NAME=blog/my-slug.md
new:
ifndef NAME
$(error NAME is not set. Usage: make new NAME=posts/my-post.md)
endif
$(HUGO) new $(NAME)
+143
View File
@@ -0,0 +1,143 @@
// Post Detail
.post-detail {
max-width: 800px;
margin: 0 auto;
padding-top: 4rem;
}
.post-header {
margin-bottom: 4rem;
}
.post-title {
margin-bottom: 1rem;
}
.post-meta {
color: var(--text-muted);
font-size: 0.9rem;
font-style: italic;
}
.post-toc {
background: var(--surface-color);
border: 1px solid var(--border-color);
padding: 1.5rem;
border-radius: 12px;
margin-bottom: 3rem;
summary {
font-weight: 600;
cursor: pointer;
list-style: none; /* Hide default arrow */
display: flex;
align-items: center;
gap: 0.5rem;
&::before {
content: "↓";
color: var(--accent-color);
transition: transform 0.2s ease;
}
}
&[open] summary::before {
transform: rotate(180deg);
}
ul {
margin-top: 1rem;
margin-bottom: 0;
list-style-type: none;
padding-left: 1rem;
}
li {
margin-bottom: 0.5rem;
}
a {
color: var(--text-muted);
font-size: 0.95em;
&:hover { color: var(--accent-color); }
}
}
.post-tags {
display: flex;
gap: 0.5rem;
margin-top: 4rem;
.tag {
background: var(--surface-color);
border: 1px solid var(--border-color);
padding: 0.25rem 0.75rem;
border-radius: 99px;
font-size: 0.85rem;
font-family: var(--font-mono);
}
}
.post-nav {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid var(--border-color);
}
.post-nav-link {
display: flex;
flex-direction: column;
gap: 0.35rem;
align-items: center;
text-align: center;
max-width: 34ch;
}
.post-nav-label {
color: var(--accent-color);
font-size: 0.9rem;
font-weight: 500;
}
.post-nav-title {
font-size: 1rem;
line-height: 1.35;
color: var(--text-muted);
transition: color 0.2s ease;
}
.post-nav-link:hover .post-nav-title,
.post-nav-link:hover .post-nav-label {
color: var(--accent-color);
}
@media (max-width: 640px) {
.post-nav-title {
font-size: 0.95rem;
}
}
@media (min-width: 900px) {
.post-nav {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2rem;
align-items: start;
}
.post-nav-next {
justify-self: start;
align-items: flex-start;
text-align: left;
}
.post-nav-prev {
justify-self: end;
align-items: flex-end;
text-align: right;
}
}
+49
View File
@@ -0,0 +1,49 @@
// Post Feed
.post-feed {
display: flex;
flex-direction: column;
gap: 3rem;
margin-top: 2rem;
}
.feed-item {
display: block;
}
.item-link {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.item-date {
font-size: 0.85rem;
color: var(--text-muted);
font-variant-numeric: tabular-nums;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.item-title {
margin: 0;
font-size: clamp(1.5rem, 2vw, 2rem);
transition: color 0.2s ease;
}
.item-link:hover .item-title {
color: var(--accent-color);
}
.item-desc {
margin: 0;
color: var(--text-muted);
}
// Pagination
.pagination {
display: flex;
justify-content: space-between;
margin-top: 5rem;
padding-top: 2rem;
border-top: 1px solid var(--border-color);
}
+9
View File
@@ -0,0 +1,9 @@
// Footer
.site-footer {
padding: 3rem 0;
border-top: 1px solid var(--border-color);
color: var(--text-muted);
font-size: 0.9rem;
display: flex;
justify-content: space-between;
}
+132
View File
@@ -0,0 +1,132 @@
// Component: Header
.site-header {
padding: 1.25rem 0;
position: sticky;
top: 0;
z-index: 50;
background-color: var(--bg-color);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border-color);
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
}
// Right side wrapper (links + controls)
.nav-right {
display: flex;
align-items: center;
gap: 1rem;
}
// Always-visible icon controls
.nav-controls {
display: flex;
align-items: center;
gap: 0.5rem;
}
.search-toggle {
background: none;
border: none;
color: var(--text-color);
cursor: pointer;
padding: 0.35rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: var(--transition-smooth);
&:hover { color: var(--accent-color); }
}
// Hamburger button — hidden on desktop, shown on mobile
.nav-toggle {
display: none;
background: none;
border: none;
color: var(--text-color);
cursor: pointer;
padding: 0.25rem;
align-items: center;
justify-content: center;
.close-icon { display: none; }
&[aria-expanded="true"] {
.hamburger-icon { display: none; }
.close-icon { display: block; }
}
}
@media (max-width: 640px) {
.nav-toggle {
display: flex;
}
.nav-right {
flex-wrap: wrap;
justify-content: flex-end;
}
.nav-links {
display: none !important;
flex-direction: column !important;
align-items: flex-start !important;
gap: 0 !important;
width: 100%;
order: 10; // push below nav-controls
padding: 1rem 0;
border-top: 1px solid var(--border-color);
margin-top: 0.5rem;
&.is-open {
display: flex !important;
}
.nav-item {
width: 100%;
padding: 0.75rem 0;
font-size: 1rem;
border-bottom: 1px solid var(--border-color);
&::after { display: none; }
}
}
}
.brand-text {
font-weight: 700;
font-size: 1.2rem;
letter-spacing: -0.01em;
}
.nav-links {
display: flex;
align-items: center;
gap: 1.5rem;
}
.nav-item {
font-weight: 500;
font-size: 0.95rem;
position: relative;
}
.nav-item::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -4px;
left: 0;
background-color: var(--accent-color);
transition: var(--transition-smooth);
}
.nav-item:hover::after {
width: 100%;
}
+14
View File
@@ -0,0 +1,14 @@
// Hero Section
.hero {
padding: 8rem 0 6rem 0;
max-width: 800px;
}
.hero-title {
color: var(--text-color);
}
.hero-subtitle {
font-size: clamp(1.1rem, 1.5vw, 1.3rem);
color: var(--text-muted);
}
+31
View File
@@ -0,0 +1,31 @@
// Layout Constraints
.site-container {
width: 100%;
max-width: 1400px;
margin: 0 auto;
padding: 0 5vw;
display: flex;
flex-direction: column;
min-height: 100dvh;
box-sizing: border-box;
}
// Constrain all media & tables to their container
img, video, iframe, table, svg {
max-width: 100%;
}
table {
display: block;
overflow-x: auto;
@media (max-width: 640px) {
scrollbar-width: none;
&::-webkit-scrollbar { display: none; }
}
}
// Main Content
.main-content {
flex-grow: 1;
padding-bottom: 5rem;
}
+32
View File
@@ -0,0 +1,32 @@
// Global Reset & Base
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-family: var(--font-sans);
font-size: 100%;
background-color: var(--bg-color);
color: var(--text-color);
scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transition: background-color 0.3s ease, color 0.3s ease;
}
body {
line-height: 1.7;
min-height: 100dvh;
display: flex;
flex-direction: column;
overflow-wrap: break-word; // break long words instead of overflowing
word-break: break-word;
}
a {
color: inherit;
text-decoration: none;
transition: var(--transition-smooth);
}
+23
View File
@@ -0,0 +1,23 @@
// Component: Theme Toggle
.theme-toggle {
background: none;
border: none;
color: var(--text-color);
cursor: pointer;
padding: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: var(--transition-smooth);
svg {
width: 20px;
height: 20px;
}
}
html.dark .sun-icon { display: block; }
html.dark .moon-icon { display: none; }
html:not(.dark) .sun-icon { display: none; }
html:not(.dark) .moon-icon { display: block; }
+56
View File
@@ -0,0 +1,56 @@
// Typography Scale (Fluid)
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: 1.1;
letter-spacing: -0.02em;
margin-bottom: 0.5em;
overflow-wrap: break-word;
word-break: break-word;
}
h1 { font-size: clamp(1.75rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); margin-top: 1.5em; }
p, ul, ol, figure, blockquote {
margin-bottom: 1.5rem;
}
p {
max-width: 65ch; // Optimal reading width
}
code, pre {
font-family: var(--font-mono);
font-size: 0.9em;
}
pre {
padding: 1.25rem;
border-radius: 8px;
overflow-x: auto;
max-width: 100%;
border: 1px solid var(--border-color);
background: #1e1e2e;
// Scrollbars visible on desktop, hidden on mobile
@media (max-width: 640px) {
scrollbar-width: none;
&::-webkit-scrollbar { display: none; }
font-size: 0.82em;
}
}
code {
background: var(--surface-color);
padding: 0.2em 0.4em;
border-radius: 4px;
color: var(--accent-color);
border: 1px solid var(--border-color);
}
pre code {
background: transparent;
color: inherit;
padding: 0;
border: none;
}
+8
View File
@@ -0,0 +1,8 @@
// Utilities / Interactions
.hover-scale {
transition: var(--transition-spring);
&:active {
transform: scale(0.98);
}
}
+26
View File
@@ -0,0 +1,26 @@
// Premium Design Variables
:root {
--bg-color: #f9fafb;
--text-color: #1a1a1a;
--text-muted: #6b7280;
--accent-color: #10b981; // Emerald
--surface-color: #ffffff;
--border-color: rgba(0, 0, 0, 0.05);
--shadow-color: rgba(0, 0, 0, 0.05);
--font-sans: 'Outfit', sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--transition-spring: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
--transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
// Dark Mode Overrides
html.dark {
--bg-color: #0a0a0a;
--text-color: #f9fafb;
--text-muted: #a1a1aa;
--surface-color: #141414;
--border-color: rgba(255, 255, 255, 0.1);
--shadow-color: rgba(0, 0, 0, 0.5);
}
+14
View File
@@ -0,0 +1,14 @@
// Main SCSS entry point
// Organized by feature and section for maintainability
@import 'variables';
@import 'reset';
@import 'typography';
@import 'layout';
@import 'header';
@import 'theme';
@import 'hero';
@import 'feed';
@import 'article';
@import 'footer';
@import 'utilities';
+59
View File
@@ -0,0 +1,59 @@
/* Outfit */
@font-face {
font-family: 'Outfit';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('../fonts/outfit/outfit-v15-latin-300.woff2') format('woff2');
}
@font-face {
font-family: 'Outfit';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/outfit/outfit-v15-latin-regular.woff2') format('woff2');
}
@font-face {
font-family: 'Outfit';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('../fonts/outfit/outfit-v15-latin-500.woff2') format('woff2');
}
@font-face {
font-family: 'Outfit';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('../fonts/outfit/outfit-v15-latin-600.woff2') format('woff2');
}
@font-face {
font-family: 'Outfit';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../fonts/outfit/outfit-v15-latin-700.woff2') format('woff2');
}
/* JetBrains Mono */
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/jetbrains-mono/jetbrains-mono-v24-latin-regular.woff2') format('woff2');
}
@font-face {
font-family: 'JetBrains Mono';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('../fonts/jetbrains-mono/jetbrains-mono-v24-latin-italic.woff2') format('woff2');
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../fonts/jetbrains-mono/jetbrains-mono-v24-latin-700.woff2') format('woff2');
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):"object"==typeof exports?exports.renderMathInElement=t(require("katex")):e.renderMathInElement=t(e.katex)}("undefined"!=typeof self?self:this,(function(e){return function(){"use strict";var t={771:function(t){t.exports=e}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var i={};return function(){n.d(i,{default:function(){return s}});var e=n(771),t=n.n(e),r=function(e,t,r){for(var n=r,i=0,a=e.length;n<t.length;){var o=t[n];if(i<=0&&t.slice(n,n+a)===e)return n;"\\"===o?n++:"{"===o?i++:"}"===o&&i--,n++}return-1},a=/^\\begin{/,o=function(e,t){for(var n,i=[],o=new RegExp("("+t.map((function(e){return e.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")})).join("|")+")");-1!==(n=e.search(o));){n>0&&(i.push({type:"text",data:e.slice(0,n)}),e=e.slice(n));var l=t.findIndex((function(t){return e.startsWith(t.left)}));if(-1===(n=r(t[l].right,e,t[l].left.length)))break;var d=e.slice(0,n+t[l].right.length),s=a.test(d)?d:e.slice(t[l].left.length,n);i.push({type:"math",data:s,rawData:d,display:t[l].display}),e=e.slice(n+t[l].right.length)}return""!==e&&i.push({type:"text",data:e}),i},l=function(e,r){var n=o(e,r.delimiters);if(1===n.length&&"text"===n[0].type)return null;for(var i=document.createDocumentFragment(),a=0;a<n.length;a++)if("text"===n[a].type)i.appendChild(document.createTextNode(n[a].data));else{var l=document.createElement("span"),d=n[a].data;r.displayMode=n[a].display;try{r.preProcess&&(d=r.preProcess(d)),t().render(d,l,r)}catch(e){if(!(e instanceof t().ParseError))throw e;r.errorCallback("KaTeX auto-render: Failed to parse `"+n[a].data+"` with ",e),i.appendChild(document.createTextNode(n[a].rawData));continue}i.appendChild(l)}return i},d=function e(t,r){for(var n=0;n<t.childNodes.length;n++){var i=t.childNodes[n];if(3===i.nodeType){for(var a=i.textContent,o=i.nextSibling,d=0;o&&o.nodeType===Node.TEXT_NODE;)a+=o.textContent,o=o.nextSibling,d++;var s=l(a,r);if(s){for(var f=0;f<d;f++)i.nextSibling.remove();n+=s.childNodes.length-1,t.replaceChild(s,i)}else n+=d}else 1===i.nodeType&&function(){var t=" "+i.className+" ";-1===r.ignoredTags.indexOf(i.nodeName.toLowerCase())&&r.ignoredClasses.every((function(e){return-1===t.indexOf(" "+e+" ")}))&&e(i,r)}()}},s=function(e,t){if(!e)throw new Error("No element provided to render");var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);r.delimiters=r.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],r.ignoredTags=r.ignoredTags||["script","noscript","style","textarea","pre","code","option"],r.ignoredClasses=r.ignoredClasses||[],r.errorCallback=r.errorCallback||console.error,r.macros=r.macros||{},d(e,r)}}(),i=i.default}()}));
+1
View File
File diff suppressed because one or more lines are too long
+2029
View File
File diff suppressed because one or more lines are too long
+50
View File
@@ -0,0 +1,50 @@
document.addEventListener('DOMContentLoaded', () => {
const themeToggleBtn = document.getElementById('theme-toggle');
const htmlElement = document.documentElement;
const applyTheme = (theme) => {
if (theme === 'dark') {
htmlElement.classList.add('dark');
} else {
htmlElement.classList.remove('dark');
}
localStorage.setItem('theme', theme);
};
// Check local storage for theme preference
const currentTheme = localStorage.getItem('theme');
if (currentTheme === 'dark' || currentTheme === 'light') {
applyTheme(currentTheme);
} else {
// Fallback to system preference
const prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)');
applyTheme(prefersDarkScheme.matches ? 'dark' : 'light');
}
// Toggle theme on click
if (themeToggleBtn) {
themeToggleBtn.addEventListener('click', () => {
const nextTheme = htmlElement.classList.contains('dark') ? 'light' : 'dark';
applyTheme(nextTheme);
});
}
// Mobile nav toggle
const navToggle = document.getElementById('nav-toggle');
const navLinks = document.getElementById('nav-links');
if (navToggle && navLinks) {
navToggle.addEventListener('click', () => {
const isOpen = navLinks.classList.toggle('is-open');
navToggle.setAttribute('aria-expanded', isOpen);
});
// Close nav when a link is clicked
navLinks.querySelectorAll('.nav-item').forEach(link => {
link.addEventListener('click', () => {
navLinks.classList.remove('is-open');
navToggle.setAttribute('aria-expanded', 'false');
});
});
}
});
+29
View File
@@ -0,0 +1,29 @@
{% extends "base.html" %}
{% block title %}{{ section.title }} | {{ config.title }}{% endblock title %}
{% block content %}
<div class="post-detail">
<header class="post-header" style="margin-bottom: 3rem;">
<h1 class="post-title" style="font-size: clamp(2.5rem, 5vw, 4.5rem);">Archive</h1>
</header>
<div class="archive-list" style="max-width: 65ch; margin: 0 auto;">
{% set section = get_section(path="posts/_index.md") %}
{% for year, posts in section.pages | sort(attribute="date") | reverse | group_by(attribute="year") %}
<div class="archive" style="margin-bottom: 2rem;">
<h2 style="font-size: 1.5rem; color: var(--text-color); margin-bottom: 1rem; margin-top: 2rem;">{{ year }}</h2>
<ul style="list-style-type: none; padding-left: 1rem; margin: 0; display: flex; flex-direction: column; gap: 0.75rem;">
{% for post in posts %}
<li class="hover-scale" style="display: flex; gap: 1rem; align-items: baseline;">
<time datetime="{{ post.date }}" style="color: var(--text-muted); font-size: 0.95rem; white-space: nowrap; font-family: var(--font-mono);">{{ post.date | date(format="%d-%b") }}</time>
<a href="{{ post.permalink }}" style="color: var(--accent-color); font-weight: 500; font-size: 1.05rem;">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
</div>
{% endblock content %}
+108
View File
@@ -0,0 +1,108 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
<meta name="description" content="{{ config.description | default(value="Binary exploitation, reverse engineering, and offensive security blog.") }}">
<script>
(function() {
try {
var storedTheme = localStorage.getItem('theme');
var prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
var shouldUseDark = storedTheme ? storedTheme === 'dark' : prefersDark;
if (shouldUseDark) {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.remove('dark');
}
} catch (e) {
document.documentElement.classList.add('dark');
}
})();
</script>
<!-- SEO Schema JSON-LD -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "{{ config.base_url }}",
"name": "{{ config.title }}"
}
</script>
{% if config.extra.google_analytics %}
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config.extra.google_analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ config.extra.google_analytics }}');
</script>
{% endif %}
<!-- CSS -->
<link rel="stylesheet" href="{{ get_url(path="main.css") }}">
<link rel="stylesheet" href="{{ get_url(path="css/syntax.css") }}">
<!-- Fonts (self-hosted) -->
<link rel="stylesheet" href="{{ get_url(path="css/fonts.css") }}">
{% block head %}{% endblock head %}
</head>
<body class="smooth-scroll">
<div class="site-container">
<header class="site-header">
<nav class="nav-container">
<a href="{{ get_url(path="") }}" class="brand-link">
<span class="brand-text">{{ config.title | default(value="pwna4profit") }}</span>
</a>
<div class="nav-right">
<!-- Collapsible links -->
<div id="nav-links" class="nav-links">
<a href="{{ get_url(path="/about/") }}" class="nav-item">About</a>
<a href="{{ get_url(path="/posts") }}" class="nav-item">Posts</a>
<a href="{{ get_url(path="/tags/") }}" class="nav-item">Tags</a>
<a href="{{ get_url(path="@/archive/_index.md") }}" class="nav-item">Archive</a>
</div>
<div class="nav-controls">
<button class="search-toggle" aria-label="Search">
<svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
</button>
<button id="theme-toggle" class="theme-toggle hover-scale" aria-label="Toggle Dark Mode">
<svg class="sun-icon" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a10 10 0 0 0 0 20z" fill="currentColor"></path></svg>
<svg class="moon-icon" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a10 10 0 0 0 0 20z" fill="currentColor"></path></svg>
</button>
<button id="nav-toggle" class="nav-toggle" aria-label="Toggle navigation" aria-expanded="false">
<svg class="hamburger-icon" viewBox="0 0 24 24" width="22" height="22" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
<svg class="close-icon" viewBox="0 0 24 24" width="22" height="22" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
</div>
</div>
</nav>
</header>
<main class="main-content">
{% block content %}{% endblock content %}
</main>
<footer class="site-footer">
<div class="footer-content">
<p>&copy; {{ now() | date(format="%Y") }} {{ config.extra.author | default(value="Author") }}</p>
<div class="social-links">
<!-- Social Links -->
</div>
</div>
</footer>
</div>
<script src="{{ get_url(path="js/theme.js") }}"></script>
{% block scripts %}{% endblock scripts %}
</body>
</html>
+60
View File
@@ -0,0 +1,60 @@
{% extends "base.html" %}
{% block content %}
<div class="profile-section" style="display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 4rem; text-align: center;">
<div class="avatar" style="width: 100px; height: 100px; border-radius: 50%; overflow: hidden; margin-bottom: 1rem; background-color: #1a1a1a; display: flex; align-items: center; justify-content: center;">
<img src="https://github.com/andwati.png" alt="Avatar" style="width: 100%; height: 100%; object-fit: cover;" onerror="this.src='data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'none\' stroke=\'%23f9fafb\' stroke-width=\'2\' stroke-linecap=\'round\' stroke-linejoin=\'round\'><path d=\'M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2\'></path><circle cx=\'12\' cy=\'7\' r=\'4\'></circle></svg>'"/>
</div>
<p class="profile-subtitle" style="color: var(--text-muted); font-size: 1rem; margin-bottom: 1rem;">offending binaries</p>
<div class="social-links" style="display: flex; gap: 1rem; color: var(--text-muted);">
<a href="https://github.com/mockingspectre" style="color: inherit;" class="hover-scale" aria-label="GitHub">
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
</a>
<a href="https://twitter.com/mockinspectre" style="color: inherit;" class="hover-scale" aria-label="Twitter">
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path></svg>
</a>
<a href="{{ get_url(path="rss.xml") }}" style="color: inherit;" class="hover-scale" aria-label="RSS">
<svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg>
</a>
</div>
</div>
<div class="post-feed-list" style="max-width: 65ch; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem;">
{% set section = get_section(path="posts/_index.md") %}
{% for page in section.pages %}
<article class="feed-item" style="border-bottom: 1px dashed var(--border-color); padding-bottom: 2rem;">
<h2 class="item-title" style="font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 600;">
<a href="{{ page.permalink }}">{{ page.title }}</a>
</h2>
<div class="item-meta" style="font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.25rem;">
<span>{{ page.date | date(format="%Y-%m-%d") }}</span>
</div>
<div class="item-snippet" style="font-size: 0.95rem; color: var(--text-color); margin-bottom: 1rem; opacity: 0.9;">
{% if page.description %}
<p style="margin: 0;">{{ page.description }}</p>
{% else %}
<p style="margin: 0;">{{ page.content | striptags | truncate(length=120) | safe }}</p>
{% endif %}
</div>
<div class="item-footer" style="display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem;">
<a href="{{ page.permalink }}" style="color: var(--accent-color);">Read more...</a>
{% if page.taxonomies.tags %}
<div class="item-tags" style="display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted);">
<svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="2" fill="none"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line></svg>
<span>
{% for tag in page.taxonomies.tags %}
{{ tag }}{% if not loop.last %}, {% endif %}
{% endfor %}
</span>
</div>
{% endif %}
</div>
</article>
{% endfor %}
</div>
{% endblock content %}
+110
View File
@@ -0,0 +1,110 @@
{% extends "base.html" %}
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
{% block head %}
<!-- SEO Schema JSON-LD -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "{{ page.title }}",
{% if page.date %}"datePublished": "{{ page.date }}",{% endif %}
"author": {
"@type": "Person",
"name": "{{ config.extra.author | default(value="Author") }}"
}
}
</script>
{% if page.extra.math %}
<link rel="stylesheet" href="{{ get_url(path="css/katex/katex.min.css") }}">
<script defer src="{{ get_url(path="js/katex/katex.min.js") }}"></script>
<script defer src="{{ get_url(path="js/katex/auto-render.min.js") }}"
onload="renderMathInElement(document.body);"></script>
{% endif %}
{% if page.extra.mermaid %}
<script type="module">
import mermaid from '{{ get_url(path="js/mermaid.min.js") }}';
mermaid.initialize({ startOnLoad: true, theme: 'dark' });
</script>
{% endif %}
{% endblock head %}
{% block content %}
<article class="post-detail">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
<div class="post-meta">
{% if page.date %}
<time datetime="{{ page.date }}">{{ page.date | date(format="%B %e, %Y") }}</time>
{% endif %}
</div>
</header>
{% if page.toc %}
<details class="post-toc">
<summary>Table of Contents</summary>
<ul>
{% for h1 in page.toc %}
<li>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<ul>
{% for h2 in h1.children %}
<li><a href="{{ h2.permalink | safe }}">{{ h2.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</details>
{% endif %}
<div class="post-body">
{{ page.content | safe }}
</div>
{% if page.lower or page.higher %}
<nav class="post-nav" aria-label="Post navigation">
{% if page.higher %}
<a class="post-nav-link post-nav-next hover-scale" href="{{ page.higher.permalink }}">
<span class="post-nav-label">&larr; Next</span>
<span class="post-nav-title">{{ page.higher.title }}</span>
</a>
{% endif %}
{% if page.lower %}
<a class="post-nav-link post-nav-prev hover-scale" href="{{ page.lower.permalink }}">
<span class="post-nav-label">Prev &rarr;</span>
<span class="post-nav-title">{{ page.lower.title }}</span>
</a>
{% endif %}
</nav>
{% endif %}
<footer class="post-footer">
<div class="post-tags">
{% if page.taxonomies.tags %}
{% for tag in page.taxonomies.tags %}
<span class="tag">#{{ tag }}</span>
{% endfor %}
{% endif %}
</div>
<!-- Utterances comments (posts only) -->
{% if page.path is starting_with("posts/") %}
<div class="comments" id="comments" style="margin-top: 4rem;">
<script src="https://utteranc.es/client.js"
repo="andwati/pwnforfunandprofit.xyz"
issue-term="pathname"
theme="github-dark"
crossorigin="anonymous"
async>
</script>
</div>
{% endif %}
</footer>
</article>
{% endblock content %}
+35
View File
@@ -0,0 +1,35 @@
{% extends "base.html" %}
{% block content %}
<div class="hero" style="padding-bottom: 2rem;">
<div class="hero-content">
<h1 class="hero-title">Posts</h1>
<p class="hero-subtitle">Exploring binary exploitation, reverse engineering, and offensive security.</p>
</div>
</div>
<div class="post-feed">
{% for page in paginator.pages %}
<article class="feed-item hover-scale">
<a href="{{ page.permalink }}" class="item-link">
<time datetime="{{ page.date }}" class="item-date">{{ page.date | date(format="%b %d, %Y") }}</time>
<h2 class="item-title">{{ page.title }}</h2>
{% if page.description %}
<p class="item-desc">{{ page.description }}</p>
{% endif %}
</a>
</article>
{% endfor %}
</div>
{% if paginator.pages|length > 0 %}
<nav class="pagination">
{% if paginator.previous %}
<a class="pagination-prev hover-scale" href="{{ paginator.previous }}">← Newer</a>
{% endif %}
{% if paginator.next %}
<a class="pagination-next hover-scale" href="{{ paginator.next }}">Older →</a>
{% endif %}
</nav>
{% endif %}
{% endblock content %}
+19
View File
@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}Tags | {{ config.title }}{% endblock title %}
{% block content %}
<div class="tags-page" style="max-width: 65ch; margin: 0 auto; padding-top: 4rem; text-align: center;">
<header class="page-header" style="margin-bottom: 3rem;">
<h1 class="page-title" style="font-size: 2rem; font-weight: 600;">All Tags</h1>
</header>
<div class="tags-container" style="display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: center;">
{% for term in terms %}
<a href="{{ term.permalink }}" class="hover-scale" style="font-size: 1.1rem; color: var(--text-color); font-weight: 400; text-decoration: none; display: inline-flex; align-items: flex-start;">
{{ term.name }}<sup style="font-size: 0.7em; color: var(--text-muted); margin-left: 0.15rem; margin-top: 0.1rem;">{{ term.pages | length }}</sup>
</a>
{% endfor %}
</div>
</div>
{% endblock content %}
+26
View File
@@ -0,0 +1,26 @@
{% extends "base.html" %}
{% block title %}Tag: {{ term.name }} | {{ config.title }}{% endblock title %}
{% block content %}
<div class="post-detail">
<header class="post-header" style="margin-bottom: 3rem;">
<h1 class="post-title" style="font-size: clamp(2rem, 4vw, 3.5rem);">
<span style="color: var(--text-muted);">#</span>{{ term.name }}
</h1>
</header>
<div class="archive-list" style="max-width: 65ch; margin: 0 auto;">
<div class="archive">
<ul style="list-style-type: none; padding-left: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem;">
{% for page in term.pages %}
<li class="hover-scale" style="display: flex; gap: 1rem; align-items: baseline;">
<time datetime="{{ page.date }}" style="color: var(--text-muted); font-size: 0.95rem; white-space: nowrap; font-family: var(--font-mono);">{{ page.date | date(format="%d-%b") }}</time>
<a href="{{ page.permalink }}" style="color: var(--accent-color); font-weight: 500; font-size: 1.05rem;">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock content %}
Submodule themes/DoIt deleted from 584ad0a8aa
-9
View File
@@ -1,9 +0,0 @@
name = "pwnforfunandprofit"
compatibility_date = "2025-11-14"
[build]
command = "chmod a+x build.sh && ./build.sh"
[assets]
directory = "./public"
not_found_handling = "404-page"
+14
View File
@@ -0,0 +1,14 @@
base_url = "https://pwnforfunandprofit.xyz"
title = "Pwn For Fun And Profit"
description = "Hacking the Narrative, One Byte at a Time."
compile_sass = true
build_search_index = true
taxonomies = [ {name = "tags"} ]
[markdown.highlighting]
theme = "catppuccin-mocha"
[extra]
google_analytics = ""
google_site_verification = ""
author = "mockingspectre"