Commit Graph

55 Commits

Author SHA1 Message Date
cschantz 8a54d2189c Remove user history cleaning - only clean root
User bash histories are now completely skipped. The script only cleans root's bash history.

Changes:
• Removed user history detection and cleaning
• Removed prompt for user history cleaning
• Only root bash history is cleaned (last 50 entries)
• Faster execution, no prompts for user accounts
2025-11-10 22:39:20 -05:00
cschantz 42dad05f48 Make user history cleaning optional in trace eraser
User bash history cleaning is now optional with a prompt, since most users only work as root.

Changes:
• Added user count detection
• Prompts: "Clean user bash histories too? (y/n) [n]"
• Default is "no" (skip user histories)
• If no users exist, automatically skips
• Only cleans root history by default (faster, covers 99% of use cases)

This makes the script faster and more sensible for typical usage where only root is used to run the toolkit.
2025-11-10 22:20:11 -05:00
cschantz bced37dca2 Fix bash history cleaning in trace eraser script
The trace eraser was failing with "no previous regular expression" sed errors and wasn't effectively cleaning bash history.

Problems fixed:
• Broken sed pattern matching (caused errors, unreliable)
• Pattern-based deletion doesn't catch all toolkit usage
• In-memory history wasn't being cleared

New approach:
• Simply removes last 50 entries from bash history files
• More reliable than pattern matching (catches downloads, usage, everything)
• Clears in-memory history with history -c && history -w
• Creates .bak backup before cleaning
• Handles both root and user histories
• Changed system log cleaning from sed to grep -v (more reliable)
• Added symlink check for log files

This ensures the last 50 commands (covering toolkit download, installation, and usage) are completely removed from bash history.
2025-11-10 22:08:52 -05:00
cschantz 2ee6d7d698 Add trace eraser tool for privacy
- New tool: erase-toolkit-traces.sh removes all toolkit traces
- Cleans bash history for all users
- Removes toolkit mentions from system logs
- Deletes download artifacts and temp files
- Optional: complete toolkit directory removal
- Added to main menu as option 10
2025-11-03 18:41:30 -05:00
cschantz a51d968185 Initial commit: Server Management Toolkit v2.0
- Complete security menu restructure (3-mode: Analysis/Actions/Live)
- Intelligent cPHulk enablement with CSF whitelist import
- Live network security monitoring dashboard
- Multi-source threat detection and classification
- 50+ organized security tools across 4-level menu hierarchy
- System health diagnostics with cPanel/WHM integration
- Reference database for cross-module intelligence sharing
2025-11-03 18:21:40 -05:00