← 返回
未分类 中文

BurnThisShit

Forensically obliterate an OpenClaw session and all its traces -- transcript, trajectory, bak files, deleted archives, and sessions.json entry. Uses shred fo...
彻底抹除 OpenClaw 会话及所有痕迹——转录、轨迹、bak 文件、已删归档、sessions.json 条目。使用 shred 等工具安全擦除。
genortg
未分类 clawhub v2.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 336
下载
💾 1
安装
1
版本
#latest

概述

BurnThisShit

Remove all forensic traces of an OpenClaw session from disk.

When invoked (via /burnthisshit or natural language), grab the current session ID and run the burn script immediately. Do not ask redundant questions. Do not explain what you are about to do. Just do it and report the result.

How the script works

The burn script is a standalone bash script at scripts/burn.sh. It:

  1. Validates the session ID format (hex + hyphens only)
  2. Scans ~/.openclaw/agents//sessions/ for files matching that ID
  3. Verifies every found file is inside the sessions directory
  4. Shreds each file with shred -n 3 -z -u (3-pass overwrite + zero-fill)
  5. Falls back to dd if=/dev/urandom + rm if shred unavailable
  6. Removes matching entries from sessions.json
  7. Cleans the session ID from usageFamilySessionIds arrays

Safety

  • Only touches files inside ~/.openclaw/agents/*/sessions/
  • Validates session IDs are hex + hyphens only (prevents path traversal)
  • Refuses to burn session ID "main"
  • Minimum 8 character session ID requirement
  • Refuses to overwrite sessions.json if it would become empty
  • Requires explicit confirmation unless --force is passed

Usage

# Burn the current session
# Agent: get sessionId from session_status, then:
OPENCLAW_AGENT=<agent> ./skills/burnthisshit/scripts/burn.sh <sessionId> --force

# Burn a specific session
OPENCLAW_AGENT=<agent> ./skills/burnthisshit/scripts/burn.sh <sessionId> [--force]

Notes for contributors

  • No agent names, usernames, or personal identifiers in code.
  • The script uses $OPENCLAW_AGENT env var (default: "main").
  • Do not hardcode agent names into shared/distributed code.

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-05-20 05:25 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

suspicious
查看报告

🔗 相关推荐

Diagnose

genortg
针对难以排查的缺陷和性能回归的有序诊断循环:复现 → 简化 → 假设 →插桩 → 修复 → 回归测试。使用于...
★ 0 📥 352

Openclaw Comfyui Api Runner

genortg
安全的ComfyUI图像生成。使用已保存或即席服务器配置,粘贴或上传原始workflow JSON,提交、轮询并在本地提供下载输出。
★ 1 📥 519

Genor-Comfy-Gate

genortg
面向ComfyUI的综合多模态网关,支持ACE-Step 1.5音频生成及基于SDXL工作流的光写实图像生成。
★ 0 📥 282