README
ΒΆ
ποΈ Shit Cleaner
"In the cyber world, there is no such thing as a 'footprint cleaner'; you must be so invisible that nothing remains to clean."
β οΈ URGENT WARNING
| π΄ DO NOT RUN THIS ON YOUR OWN SYSTEM - PRODUCTION USE ONLY ON TARGET MACHINES |
"Footprints aren't erased; they should never have existed in the first place."
This tool is designed for post-exploitation evidence removal in penetration testing and red team operations. If you've made a mess and need to minimize the damage, this tool can help you clean up the evidence of your attack!
π― What is Shit-Cleaner?
Shit-Cleaner is an advanced Anti-Forensics & Evidence Destruction Toolkit designed for:
- π΅οΈ Post-Exploitation Cleanup - Remove all traces of your presence
- π₯ Evidence Destruction - Securely wipe logs, files, and artifacts
- π Timestomping - Alter file timestamps to confuse investigators
- π§Ή System Sanitization - Clean browser history, cache, and user activity
- π Zero-Footprint Operations - Leave no trace behind
"In the cyber world, there is no such thing as a 'footprint cleaner'; you must be so invisible that nothing remains to clean."
π Features
πͺ Windows Capabilities
- β Clear all Windows Event Logs (Application, System, Security, PowerShell, etc.)
- β Flush USN Journal
- β Delete Prefetch, Amcache, Shimcache
- β Clear BAM/DAM, SRUM
- β Remove UserAssist, RecentDocs, RunMRU
- β Clear JumpLists, Thumbnail Cache
- β Remove Windows Update Logs
- β Wipe Defender Logs & Quarantine
- β Clear Firewall Logs
- β Stop ETW Trace Sessions
- β Delete WER Logs
- β Clear CompatTel Data
- β Remove PowerShell History
- β Empty Recycle Bin
- β Clear Browser Cache (Chrome, Edge)
- β Flush DNS Cache
- β Delete Shadow Copies
- β Clear Registry Backups
- β Remove Scheduled Tasks
- β Clear Windows Search Index
- β Remove RDP Artifacts
- β Clear MuiCache, WordWheel, TypedPaths
- β Clear Open/Save MRU, Network MRU
π§ Linux Capabilities
- β Clear Syslog, Auth Log, Kernel Log
- β Wipe Journald Logs
- β Remove Shell History (Bash, Zsh)
- β Clear SSH Logs
- β Wipe Sudo Logs
- β Clear Cron Logs
- β Remove Apache, Nginx Logs
- β Clear MySQL, PostgreSQL Logs
- β Delete Fail2ban, UFW Logs
- β Clear Package Cache (APT/YUM)
- β Remove Mail Logs
- β Clear Xorg, CUPS Logs
- β Wipe Docker Logs
- β Clear Firewalld Logs
- β Remove APT/YUM History
- β Clear SSH Keys
- β Remove Bashrc, Zshrc
- β Clear Sudoers & Crontab
π‘οΈ Advanced Features
- π Audit Policy Bypass - Temporarily disable system auditing
- π Service Termination - Stop logging services (EventLog, Syslog, etc.)
- π§ Memory Artifacts Cleanup - Clear RAM caches and history
- π Network Artifacts - Flush ARP cache, firewall logs
- π± Application Artifacts - Clear app caches and data
- β° Timestomping - Change timestamps of remaining files
- π₯ Secure Shredding - Multi-pass overwrite (up to 7 passes)
- π§ͺ Dry Run Mode - Preview what will be deleted
π Installation
# Clone the repository
git clone https://github.com/batmanpriv/Shit-Cleaner.git
cd Shit-Cleaner
# Build
go build -o shitcleaner
# Or install directly
go install github.com/batmanpriv/Shit-Cleaner@latest
π Usage
Basic Usage
# Run with default settings (FORCE MODE ENABLED)
./shitcleaner
# Verbose mode with dry run (preview only)
./shitcleaner --verbose --dry-run
# Secure shred with 7 passes
./shitcleaner --shred --passes 7
# Disable audit policies during cleanup
./shitcleaner --verbose --no-audit
# Full stealth mode (all features enabled)
./shitcleaner --verbose --shred --passes 7 --no-timestomp
Command Line Options
Options:
-v, --verbose Show detailed output
--dry-run Preview what would be deleted (NO CHANGES)
--shred Use secure shred (7 passes by default)
--passes N Number of shred passes (default: 7)
--no-parallel Run operations sequentially
--no-audit Don't disable audit policies
--no-timestomp Don't timestomp remaining files
-h, --help Show this help
βοΈ How It Works
Phase 1: Preparation
- Disables audit policies (Windows: auditpol, Linux: auditctl)
- Stops logging services (EventLog, Syslog, journald, etc.)
- Prepares the system for clean wiping
Phase 2: Memory Cleanup
- Clears Windows memory artifacts
- Flushes Linux caches and swap
- Removes history from active sessions
Phase 3: Evidence Destruction
- Clears OS-specific logs
- Removes application artifacts
- Wipes browser history and cache
- Cleans network traces
- Securely shreds sensitive files
Phase 4: Cover Tracks
- Timestomps remaining files
- Final cleanup of temporary files
- Restores audit policies (if disabled)
π― Anti-Forensics Techniques Used
π Log Destruction
- Windows Event Log clearing (
wevtutil cl) - Linux journal flush (
journalctl --vacuum-size=1) - Shell history clearing (
history -c) - Application log deletion
ποΈ File System Artifacts
- USN Journal flushing
- Prefetch file deletion
- Amcache removal
- Shimcache clearing
- Thumbnail cache wiping
π¬ Memory Forensics
- RAM cache clearing
- Swap flushing
- PowerShell history clearing
- Shell variable removal
π Network Forensics
- DNS cache flushing
- ARP cache clearing
- Firewall log removal
- Connection tracking flush
β° Timestomping
- Changing file modification times
- Altering directory timestamps
- Creating fake timestamps
π₯ Secure Deletion
- Multi-pass overwrite (0x00, 0xFF, 0x55, 0xAA)
- Random data overwrite
- File synchronization
π Security Considerations
"Footprints aren't erased; they should never have been there in the first place."
β οΈ Important Notes
- SSD Warning: Shred is not effective on SSDs, journaling filesystems, or copy-on-write filesystems
- Root/Admin Required: Many operations require elevated privileges
- Windows Defender: May flag this tool as malicious
- Data Loss: Permanent deletion - no recovery possible
- Legal Use Only: For authorized penetration testing only
π‘οΈ Best Practices
- Use
--dry-runfirst to preview changes - Test in isolated environment before deployment
- Always have backup before running
- Document all operations for accountability
ποΈ Project Structure
Shit-Cleaner/
βββ main.go # Main application
βββ go.mod # Go module file
βββ README.md # Documentation
βββ LICENSE # MIT License
βββ .gitignore # Git ignore rules
π§ͺ Testing
Dry Run Example
./shitcleaner --dry-run --verbose
Output:
[*] Shit Cleaner v1.0.0
[*] OS: linux
[*] DRY RUN MODE - No changes will be made
[*] Disabling audit policies...
[DRY RUN] sh -c auditctl -e 0 2>/dev/null || echo 0 > /proc/sys/kernel/audit_enabled
[*] Stopping logging services...
[*] Clearing network artifacts...
[*] Clearing application artifacts...
[*] Timestomping remaining artifacts...
[*] Final Cleanup...
Full Cleanup Example
sudo ./shitcleaner --verbose --shred --passes 7
Output:
[*] Shit Cleaner v1.0.0
[*] OS: linux
[*] Shred passes: 7
[*] Audit policies will be disabled during cleanup
[*] Disabling audit policies...
[*] Stopping logging services...
[*] Clearing Linux memory artifacts...
[*] Clearing Syslog...
[*] Clearing Auth Logs...
[*] Clearing Kernel Logs...
[*] Clearing Journald Logs...
[*] Clearing Shell History...
[*] Clearing SSH Logs...
[*] Clearing Sudo Logs...
...
[β] Cleanup completed!
βββββββββββββββββββββββββββββββββββββ
Files deleted: 487
Directories: 23
Logs cleared: 156
Total size: 281.0.06 MB
Duration: 42.7s
βββββββββββββββββββββββββββββββββββββ
π Compatibility
β Supported Operating Systems
- Windows: 7, 8, 10, 11 (x64)
- Windows Server: 2012, 2016, 2019, 2022
- Linux: Ubuntu, Debian, CentOS, RHEL, Fedora
- Linux: Kernel 3.10+
β Required Privileges
- Windows: Administrator privileges
- Linux: Root privileges (
sudo)
π οΈ Troubleshooting
Common Issues
β "Access Denied"
# Run with elevated privileges
sudo ./shitcleaner # Linux
# Run as Administrator # Windows
β "Command not found"
# Ensure all dependencies are installed
# Linux: apt-get install auditd systemd # Debian/Ubuntu
# Windows: Ensure wevtutil, auditpol exist
β "Shred not working on SSD"
# Use normal deletion instead
./shitcleaner --no-shred
Documentation
ΒΆ
There is no documentation for this package.