For the truly paranoid among us 🕵️
Because sometimes you need a fail-safe that doesn't require trust in anyone but yourself.
A Windows-based automatic data destruction system that triggers after X days without login.
✨ NEW in v1.2:
- 🔧 Fixed Startup Trigger - SelfDestructCheck now runs reliably on system startup
- 🧹 Auto Config Cleanup - Deleted items automatically removed from config
- ⏱️ Optimized Task Delays - Prevents race conditions (10s startup, 3min login)
- 🐛 GUI Bug Fixes - Fixed null reference errors with PlainFile items
- 🔄 Menu Loop - DeadMan.exe menu returns after each action instead of closing
v1.1 Features:
- 🚀 Smart Launcher (
DeadMan.exe) - Interactive menu with auto-installation - 🔄 Update Checker - Compare local version with GitHub releases
- 💾 Config Backup/Restore - Save and restore your configuration
- 📂 Custom Install Path - Choose where to install Dead Man
- 🛡️ Enhanced Security - Hardened validation and error handling
🎯 For Regular Users → Use DeadMan.exe (simpler, interactive menu)
👨💻 For Developers/Purists → Use PowerShell scripts directly (DeadMan.ps1 or .bat files)
Deutsche Version / German Version
USE AT YOUR OWN RISK! This tool can permanently delete your data. ALWAYS test in Safe Mode first and create backups of important data!
- Automatic Trigger: Activates after X days without login
- Safe Mode: Test the system without actual deletion (simulation)
- Multiple Deletion Types:
- Plain files and folders
- VeraCrypt containers and keyfiles
- BitLocker recovery keys
- GUI Control Panel: Easy-to-use configuration interface
- Windows Tasks: Automatic monitoring on system startup and login
- Smart Launcher Menu: Interactive menu with installation detection
- Auto-Update Checker: Compare your version with latest GitHub releases
- Config Backup/Restore: Export and import your configuration with validation
- Custom Installation Path: Install anywhere, not just C:\DeadMan
- Enhanced Security: Comprehensive input validation and error handling
- About Dialog: With dancing Bart! 🕺
This tool is for the truly paranoid - people who:
- Need a fail-safe in case of emergencies
- Don't trust cloud services with sensitive data
- Want full control over their data destruction
- Need plausible deniability (Safe Mode looks like the real thing)
- Understand the responsibility that comes with such power
Not recommended for:
- People who forget their passwords regularly
- Casual users who just want "some security"
- Anyone who doesn't fully understand what this does
DeadMan/
├── config/ # Configuration files (auto-created)
│ ├── config.json
│ └── last_login.txt
├── logs/ # Log files (auto-created)
│ └── log.txt
├── media/ # Media files
│ ├── bart.gif # Our dancing Bart! 🎭
│ └── screenshot.png # GUI screenshot
├── scripts/ # PowerShell scripts
│ ├── gui-config.ps1
│ ├── setup-tasks.ps1
│ ├── selfdestruct-check.ps1
│ └── update-last-login.ps1
├── setup/ # Installation & utility scripts
│ ├── installer.ps1
│ ├── uninstaller.ps1
│ ├── check-updates.ps1
│ ├── config-backup.ps1
│ ├── install.bat
│ ├── start.bat
│ └── create-shortcut.ps1
├── run.bat # ⭐ Smart launcher (auto-install + start)
├── uninstall.bat # Uninstaller
├── check-updates.bat # Update checker
├── backup-config.bat # Config backup/restore
├── DeadMan.exe # Main launcher executable
├── DeadMan.ps1 # PowerShell launcher
├── .gitignore
├── LICENSE
└── README.md
- Windows 10/11
- PowerShell 5.1 or higher
- Administrator rights for installation
-
Download and extract
- Download
DeadMan-v1.1-Installer.zipfrom Releases - Extract to any folder
- Download
-
Double-click
run.bat- That's it! The script will:
- ✅ Check if already installed
- ✅ If not: Auto-install to
C:\DeadMan+ create desktop shortcut - ✅ If yes: Launch directly
- That's it! The script will:
-
Configure
- Select [1] GUI from menu
- Add items and test in Safe Mode!
Clone from GitHub:
git clone https://github.com/iamrealguexoxo/DeadMan.git C:\DeadMan
cd C:\DeadManInstall:
- Double-click
run.bat(auto-detects and installs) - OR:
setup\install.batfor manual installation
Launch:
- Double-click
run.batorDeadMan.exe
Update Checker:
- Double-click
check-updates.bator select [3] from menu - Compares local version with latest GitHub release
- Opens release page if update available
Config Backup/Restore:
- Double-click
backup-config.bator select [4] from menu - Backup: Exports configuration to Documents folder
- Restore: Imports configuration from backup file
- Useful before reinstalling or testing
- Double-click
uninstall.bat - Removes Windows Tasks and desktop shortcut
- Optionally deletes installation folder
- Start Control Panel
- With EXE: Run
DeadMan.exe→ Select [1] GUI - With Scripts: Run
start.batorDeadMan.ps1 -GUI
- With EXE: Run
- Set days: Number of days without login (default: 30)
- Safe Mode:
⚠️ KEEP ENABLED for testing! - Add items:
- Plain Data: Regular files and folders
- VeraCrypt: Encrypted containers and keyfiles
- BitLocker: Drives (deletes recovery keys only)
- Save Configuration: Click "Save Configuration"
- Add Folder...: Add folder to be deleted completely
- Add File...: Add individual files for deletion
- Remove Selected: Remove selected entry
- Add Container...: VeraCrypt containers (.hc, .vc)
- Add Keyfile...: Keyfile files
- Will be deleted when triggered
- Drive: Enter drive letter (e.g., D:)
- Add Volume: Add drive
- Only deletes recovery keys, not the data!
- Configure the system with Safe Mode enabled
- Manual test (as Administrator):
cd C:\DeadMan .\scripts\selfdestruct-check.ps1 -ForceSafeMode
- Check logs:
Get-Content .\logs\log.txt -Tail 50
- In Safe Mode, nothing is deleted, only simulated!
ONLY AFTER THOROUGH TESTING!
- Open Control Panel (
start.bat) - Uncheck "Safe Mode (Simulation nur)"
- Click "Save Configuration"
⚠️ System is now LIVE!
After installation, two Windows tasks run:
- Trigger: On every user login
- Action: Updates
config\last_login.txtwith current date - Permissions: User-level
- Trigger: On every Windows startup
- Action: Checks if threshold exceeded → executes deletion if necessary
- Permissions: SYSTEM (highest privileges for deletion operations)
1. Windows starts
↓
2. Task "SelfDestructCheck" runs
↓
3. Reads last_login.txt
↓
4. Calculates difference to today
↓
5. If days >= threshold:
├─ Safe Mode: Simulation → Log
└─ Live Mode: REAL DELETION!
config/config.json:
{
"DaysWithoutLogin": 30,
"SafeMode": true,
"Executed": false,
"ExecutedAt": null,
"Items": [
{
"Type": "PlainFolder",
"DeleteMode": "DeleteFolder",
"Path": "C:\\SensitiveData"
},
{
"Type": "VeraCryptContainer",
"DeleteMode": "DeleteFile",
"Path": "D:\\secret.hc"
},
{
"Type": "BitLockerVolume",
"DeleteMode": "DeleteRecoveryKeys",
"Path": "",
"Drive": "E:"
}
]
}| Type | Description | Action |
|---|---|---|
PlainFolder |
Regular folder | Deletes folder + contents recursively |
PlainFile |
Regular file | Deletes file |
VeraCryptContainer |
Encrypted container | Deletes container file |
VeraCryptKeyfile |
VeraCrypt keyfile | Deletes keyfile |
BitLockerVolume |
BitLocker drive | Deletes all recovery keys |
# PowerShell
Get-ScheduledTask | Where-Object { $_.TaskName -like "DeadMan*" }
# Or open Task Scheduler
taskschd.mscTasks are in the Root level of Task Scheduler Library!
# As Administrator
cd C:\DeadMan
.\scripts\selfdestruct-check.ps1 -ForceSafeModeGet-Content C:\DeadMan\config\last_login.txtGet-Content C:\DeadMan\logs\log.txt -Tail 50notepad C:\DeadMan\config\config.json.\create-shortcut.ps1- Storage Location: Keep this tool in a location only YOU can access
- Encryption: Use full-disk encryption (BitLocker/VeraCrypt) for maximum security
- Config File: Contains paths to sensitive data - protect it!
- Admin Access: Consider what happens if someone gains admin rights
- Test Thoroughly: Always test in Safe Mode before going live!
- Backups: Create backups of important data in secure locations
- Plausible Deniability: Safe Mode logs look convincing but don't actually delete
- Multiple Layers: Use this with full-disk encryption
- Hidden Installation: Install to a non-obvious location
- Decoy Data: Keep some "interesting" decoy files to make discovery less likely
- Time-Delayed: Set to 7-14 days for travel/emergencies
- Test Runs: Periodically test in Safe Mode to ensure it works
- No Traces: Consider what logs this leaves (Windows Event Log, etc.)
- Offline Backups: Keep important data on air-gapped offline storage
# Delete tasks
Unregister-ScheduledTask -TaskName "DeadMan-UpdateLastLogin" -Confirm:$false
Unregister-ScheduledTask -TaskName "DeadMan-SelfDestructCheck" -Confirm:$false
# Delete folder
Remove-Item -Path "C:\DeadMan" -Recurse -Force- Open Task Scheduler (
taskschd.msc) - Delete both tasks:
DeadMan-UpdateLastLoginDeadMan-SelfDestructCheck
- Delete the
C:\DeadManfolder
- Check Task Scheduler for errors
- Ensure script paths are correct
- Run PowerShell as Administrator
- Check PowerShell Execution Policy:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- Right-click
start.bat→ "Run as administrator"
- Ensure
logs/folder exists - Check write permissions
- Run scripts as Administrator
- Ensure
bart.gifis in root directory - Check if file is corrupted
- Fallback: ASCII-Art Bart will be displayed
- Fixed: SelfDestructCheck scheduled task now runs reliably on system startup
- Fixed: GUI null reference error when loading PlainFile items
- Fixed: Task timing race condition with optimized delays (10s startup, 3min login)
- Fixed: Menu loop - DeadMan.exe returns to menu after each action
- Added: Automatic cleanup of deleted items from config.json
- Improved: Task execution order to prevent date overwriting
- Added: Smart Launcher with interactive menu
- Added: Update checker for GitHub releases
- Added: Config backup/restore functionality
- Added: Custom installation path support
- Enhanced: Security hardening across all scripts
- Core Dead Man Switch functionality
- GUI configuration panel
- Safe Mode simulation
- Multiple deletion types support
MIT License - Use at your own risk!
- Created by: iamrealguexoxo 🎭
- Inspiration: BartsTOK and other projects
- Dancing Bart: The Simpsons © Fox
Contributions are welcome! Please:
- Test thoroughly
- Keep Safe Mode as default
- Document all changes
- Consider security implications
This tool is provided as-is without any warranty. The authors are not responsible for data loss or damage. Always test in Safe Mode and create backups of important data. Use responsibly and legally.
This tool is for legitimate privacy and security purposes only. Users are responsible for compliance with applicable laws.
Enjoy Dead Man! 💀🕺
Remember: With great power comes great responsibility. Or something like that... 😎
- English: This file
- Deutsch: README_DE.md
