Commit Graph

361 Commits

Author SHA1 Message Date
cschantz 2c139e90cd Major refactor: Toolkit as monitor, standalone for all scans
Architecture Changes:
- ALL scans now use standalone scanner (/opt deployment)
- Toolkit serves as monitor/manager, not executor
- Removed direct scanning from toolkit entirely

New Features:
- Bulk scanner installation (install all 3 at once)
- Scan status checker with live progress
- Session manager (delete individual or all completed scans)
- Enhanced menu structure with clear separation

Menu Organization:
1. Create New Scan (server/user/domain/custom) → generates standalone
2. Monitor & Manage (status/results/delete)
3. Configuration (install all/settings)

Removed Functions:
- scan_entire_server() - now via standalone
- scan_user_account() - now via standalone
- scan_domain() - now via standalone
- scan_custom_path() - now via standalone
- run_all_scanners() - embedded in standalone
- scan_imunify/clamav/maldet() - embedded in standalone

Benefits:
- Cleaner separation of concerns
- Consistent scan execution (all via standalone)
- Better resource management
- Toolkit can be deleted during scan
- Centralized scan monitoring
2025-11-11 19:16:16 -05:00
cschantz 42c2d7a3d2 Improve standalone malware scanner with screen fallback and results viewer
Enhancements:
- Auto-install screen when not available (yum/apt-get support)
- Nohup fallback option if user prefers no screen installation
- Enhanced view_scan_results to show standalone scanner sessions
- Display session status (running/completed) for standalone scans
- Show summary, infected files, and logs for each session
- Track PIDs for nohup-launched scans

Screen handling:
- Option 1: Auto-install screen (recommended)
- Option 2: Use nohup fallback (no dependencies)
- Option 3: Cancel operation

Results viewer improvements:
- Separate toolkit and standalone scan results
- List all /opt/malware-* sessions with status
- Show summary, infected files, and recent logs
- Provide commands to monitor ongoing scans

This ensures the standalone scanner works even on minimal
systems without screen pre-installed.
2025-11-11 19:07:01 -05:00
cschantz 6888335c8b Add standalone malware scanner with installation guide
Features:
- Standalone scanner generator that runs independently in /opt
- Launch in screen session for background execution
- Self-contained script with no toolkit dependencies
- Self-cleanup with user confirmation after completion
- Scanner installation guide for ImunifyAV, ClamAV, and Maldet
- Menu option 5: Launch standalone scanner
- Complete scan scope selection (server/user/domain/custom path)

Implementation:
- Added show_scanner_installation_guide() function
- Added launch_standalone_scanner_menu() function
- Enhanced generate_standalone_scanner() with screen integration
- Integrated with main malware scanner menu

Use case: Long-running scans can be launched independently,
allowing toolkit deletion while scans continue in background.
2025-11-11 19:03:21 -05:00
cschantz 488d36d1d1 Add automated multi-scanner support and result comparison
New Features:
- 'All Available Scanners' option in all scan modes (server/user/domain/custom)
- Runs ImunifyAV, ClamAV, and Maldet sequentially with progress tracking
- Creates consolidated multi-scanner session reports
- Shows [1/3], [2/3], [3/3] progress indicators
- 3-second wait between scanners to prevent system overload
- Session reports saved to logs/malware-scans/multiscan_*.txt
- Stores session IDs in reference database for cross-module access
- New 'Compare scanner results' option (menu option 6)
- View consolidated reports from multiple scanners

Workflow:
1. Select any scan scope (server/user/domain/path)
2. Choose 'All Available Scanners' option
3. All installed scanners run automatically one after another
4. Single consolidated report with all results
5. Use option 6 to compare/view latest multi-scanner session

Much more automated - no need to run each scanner separately!
2025-11-11 18:50:48 -05:00
cschantz 7b97037a84 Move Malware Scanner to top-level security analysis menu
Malware scanning is now more prominent:
- Moved from Web Application Analysis submenu to main Security Analysis menu
- Now option 1 (🦠 Malware Scanner) in Analysis & Troubleshooting
- Direct path: Security → Analysis → Malware Scanner (2→1→1)
- Removed from Web Application submenu to avoid duplication
- Renumbered all security analysis options accordingly

Much easier to find and access the malware scanner now.
2025-11-11 18:47:16 -05:00
cschantz 1ec855d38d Add comprehensive malware scanner module
Features:
- Multi-scanner support: ImunifyAV, ClamAV, Maldet (LMD)
- Scan scopes: Entire server, specific user, domain, or custom path
- Auto-detect control panel (cPanel, Plesk, Interworx)
- Smart docroot detection with subdirectory filtering
- Memory safety checks before large scans
- Organized scan logging and result viewing
- Integrates with user-manager and reference database

Menu path: Security & Threat Analysis → Analysis & Troubleshooting → Web Application Analysis → Malware Scanner

Based on provided malware scanning code with toolkit standardization.
2025-11-11 18:43:31 -05:00
cschantz 1a5fb86692 Update README with all-in-one command using source 2025-11-11 18:23:03 -05:00
cschantz fc6c39231d Add wrapper script for automatic cleanup with zero manual steps
New workflow:
1. User runs: source run.sh (instead of bash launcher.sh)
2. Launcher runs normally
3. On exit with cleanup=yes, launcher sets flag file
4. Wrapper detects flag and does ALL cleanup automatically:
   - Cleans ~/.bash_history file
   - Clears current shell's in-memory history
   - Removes toolkit directory
   - No manual commands needed

The key: wrapper is SOURCED so it runs in parent shell and can modify history.

User experience: answer "yes" and cleanup happens instantly, automatically.
2025-11-11 18:22:10 -05:00
cschantz 04331293fb Exit menu now does cleanup automatically with verification
Changes:
- Cleans ~/.bash_history file immediately when user selects yes
- Verifies curl command is gone from file before continuing
- Removes logs, temp files, toolkit directory automatically
- Shows verification: "✓ Verified: No curl download commands in history file"
- User just needs to run: history -c, unset HISTFILE, exit

No more asking user to source scripts. Just do the cleanup and verify.
2025-11-11 18:20:28 -05:00
cschantz f556ce618b Simplify auto cleanup - just remove everything 2025-11-11 18:17:37 -05:00
cschantz 1e02317763 Simplify exit cleanup to source single trace eraser script
Exit menu now tells user to SOURCE the trace eraser instead of running it as subprocess:
- Single command: TRACE_ERASER_AUTO=yes source tools/erase-toolkit-traces.sh
- Sourcing runs it in current shell, allowing it to modify that shell's history
- No more separate helper scripts or multiple steps
- Single source of truth for all cleanup logic

This fixes the parent shell history issue - by sourcing instead of running as subprocess, the trace eraser can actually modify the shell's history where the curl command was executed.
2025-11-11 18:14:01 -05:00
cschantz e7b438e72c Consolidate cleanup to use single trace eraser script
Exit menu now:
- Calls trace eraser in TRACE_ERASER_AUTO=yes mode (no prompts, removes everything)
- Creates minimal helper script only for parent shell history cleanup
- Single source of truth: tools/erase-toolkit-traces.sh

Removed duplicate cleanup logic from launcher exit handler.
2025-11-11 18:01:03 -05:00
cschantz 631780e460 Simplify to single command with cleanup after 2025-11-11 17:59:29 -05:00
cschantz 1a34de97cc Add option to disable history before running curl command 2025-11-11 17:58:49 -05:00
cschantz c956f83338 Update README with privacy cleanup instructions 2025-11-11 17:58:11 -05:00
cschantz 98a614da5f Fix history cleaning to work from parent shell
The fundamental issue: launcher.sh runs in a subprocess, so it cannot modify the parent shell's history where the curl command was executed.

Solution: Create a temporary cleanup script that the parent shell must source after launcher exits. This allows the history cleaning to run in the correct shell context.

User workflow:
1. Run launcher.sh and select exit with cleanup
2. Source the generated /tmp/.cleanup_history_$$.sh script
3. History is cleaned in the parent shell
4. Exit and restart shell to verify

The cleanup script removes toolkit traces from ~/.bash_history and disables history recording for the current session.
2025-11-11 17:56:42 -05:00
cschantz b94641b06e Use same grep logic as trace eraser for history cleaning
Simplified to match the exact logic from erase-toolkit-traces.sh:
- Use grep -Ev with pattern matching
- Clean file, clear history, reload, unset HISTFILE
- Then run trace eraser subprocess for logs/files/directory

The key fix is running this in the current shell instead of subprocess.
2025-11-11 17:53:19 -05:00
cschantz 00a8136226 Fix history cleaning on exit to work in parent shell
The trace eraser was running as a subprocess, so history cleaning only affected the subprocess. The parent shell would still write its dirty history back to the file on exit.

Now the exit handler cleans history directly in the current shell before calling trace eraser:
- Cleans ~/.bash_history file with grep -Ev
- Runs history -c to clear in-memory history
- Reloads cleaned history with history -r
- Unsets HISTFILE to prevent re-writing on exit
- Then runs trace eraser subprocess for logs/files/directory cleanup

This ensures curl commands and all toolkit traces are actually removed from bash history.
2025-11-11 17:52:23 -05:00
cschantz 915b9083d3 Make auto cleanup fast and clean
Changes:
- Suppress trace eraser output in auto mode (only show ✓)
- Clear screen after cleanup
- Leave user in /root directory
- Single success message

Result:
- Question -> yes -> quick cleanup -> ✓ All traces removed -> /root
- Fast, minimal output, clean exit
2025-11-11 17:47:48 -05:00
cschantz 0ed04c2488 Simplify exit cleanup - one question, full cleanup
Changes:
- Single question on exit: 'Clean history and remove traces?'
- If yes: runs full trace eraser automatically
- Auto mode skips all prompts, removes everything
- TRACE_ERASER_AUTO=yes flag for non-interactive mode

User experience:
- Exit (0)
- One question
- If yes: everything cleaned and removed automatically
- No multiple prompts
2025-11-11 17:46:52 -05:00
cschantz cd017bb099 Add history cleaning prompt on exit
Changes:
- Prompt user to clean history when selecting Exit (0)
- Runs trace eraser if user answers 'yes'
- Shows clear message about what will be cleaned

User experience:
- Exit from main menu
- Asked: 'Clean history? (yes/no)'
- If yes: runs full trace eraser
- Then exits normally
2025-11-11 17:44:42 -05:00
cschantz 21645ab4c4 Simplify README - just use trace eraser for privacy
Changes:
- Remove HISTFILE=/dev/null (doesn't actually work)
- Point users to built-in trace eraser tool
- Clean simple curl command

Reality: No bash trick reliably prevents history recording
Solution: Use the trace eraser after running toolkit
2025-11-11 17:41:24 -05:00
cschantz 216a6198a1 Use HISTFILE=/dev/null instead of leading space
Changes:
- Replace leading space with HISTFILE=/dev/null prefix
- More reliable - works on all systems
- Doesn't depend on HISTCONTROL settings

Command now prevents history recording universally
2025-11-11 17:39:16 -05:00
cschantz 746e559c16 Simplify README - remove comment from download command
Changes:
- Remove comment line inside code block
- Keep just the clean curl command
- Shorter tip below code block

Now easy to copy the command without extra lines
2025-11-11 17:37:43 -05:00
cschantz ac319b0705 Add leading space to README download command
Changes:
- Add leading space before curl command in README
- Add privacy tip explaining HISTCONTROL=ignorespace
- Updated comment to indicate privacy feature

Command now includes space to prevent history recording:
 curl -sL https://git.mull.lol/.../tar.gz | tar xz && ...
2025-11-11 17:36:45 -05:00
cschantz 8c5f9db14b Add leading space tip to trace eraser
Changes:
- Add tip about using leading space to prevent history recording
- Shows example with space before curl command
- Explains HISTCONTROL=ignorespace behavior

Best Practice:
 curl -sL https://git.mull.lol/.../tar.gz | tar xz
 ↑ Leading space prevents command from being saved to history

Works on most systems where HISTCONTROL includes ignorespace
2025-11-11 17:34:14 -05:00
cschantz f7d1a47f7e Simplify trace eraser - unset HISTFILE to prevent re-adding
Changes:
- Remove complex history -d loop (unreliable)
- Clean file directly with grep -Ev only
- Clear current session with history -c
- Unset HISTFILE to prevent session from writing on exit
- Disable histappend for current session

Issue:
- Complex history manipulation was unreliable
- Current session kept re-adding commands on exit
- history -w then grep -Ev was conflicting

Solution:
- Just clean the file, period
- Unset HISTFILE so current session won't write anything
- Tell user to exit immediately and start fresh shell

Tested:
✓ File cleaned with grep -Ev
✓ HISTFILE unset prevents writing on exit
2025-11-11 17:32:43 -05:00
cschantz 87840a9d20 Add history reload after file cleaning to prevent re-adding
Changes:
- Add history -c && history -r after cleaning file
- Reloads cleaned history into current session
- Prevents bash from appending dirty history on shell exit

Issue:
- Trace eraser cleaned file but current session kept dirty history
- On shell exit, bash appended current session to file
- All curl commands were re-added to ~/.bash_history

Solution:
- After cleaning file, clear and reload current session history
- Current session now has only cleaned history
- On exit, only clean commands are appended

Tested:
✓ File cleaned with grep -Ev
✓ Current session reloaded from cleaned file
2025-11-11 17:28:58 -05:00
cschantz f9ca08fc3f Fix trace eraser execution order - clean history before directory removal
Changes:
- Move bash history cleaning BEFORE directory removal prompt
- Ensures history is always cleaned regardless of directory choice
- Remove exit 0 that was skipping history cleaning

Issue:
- When user answered "yes" to remove directory, script exited immediately
- History cleaning code never executed (was after exit 0)
- User's curl commands remained in ~/.bash_history

Solution:
- Restructure: clean history first, then ask about directory
- History cleaning always runs now

Tested:
✓ History cleaning happens before directory prompt
✓ Works whether user keeps or removes directory
2025-11-11 17:26:41 -05:00
cschantz 1645c165c3 Add file-based history cleaning to trace eraser
Changes:
- Clean ~/.bash_history file directly after in-memory cleaning
- Handles commands from other terminal sessions
- Ensures complete cleanup even if history not yet written

Issue:
- history -d only cleans current session's in-memory history
- Commands from other sessions remain in ~/.bash_history file
- User's curl command persisted because it was from different session

Solution:
- After history -w, also grep -Ev on the history file
- Removes toolkit commands regardless of which session added them

Tested:
✓ Pattern matches user's curl command format
✓ Extracts correct entry numbers
2025-11-11 17:15:54 -05:00
cschantz 612fd84d3e Add history command removal to trace eraser
Changes:
- Remove all 'history' command entries after toolkit cleanup
- Prevents showing investigation/debugging commands
- Uses same history -d approach for consistency

Removes:
- history
- history | grep curl
- cat .bash_history
- Any other history command variants

Tested:
✓ Removed 3 history command entries from test
✓ Only clean commands remain in history
2025-11-10 23:18:16 -05:00
cschantz 65b4a5e78b Simplify trace eraser with history -d approach
Changes:
- Replace complex awk/grep file manipulation with history -d
- Use in-memory history deletion instead of file parsing
- Delete entries in reverse order to maintain numbering
- Write cleaned history back to file with history -w

Benefits:
- Much simpler and more reliable
- Works with any HISTTIMEFORMAT configuration
- Native bash command handling (no awk complexity)
- Automatically handles timestamps correctly
- User-suggested improvement

Tested:
✓ Deletes 3 toolkit entries from 7-line test history
✓ Preserves normal commands
✓ Timestamps handled automatically by history -d
2025-11-10 23:16:37 -05:00
cschantz 74587a9ba5 Fix trace eraser for HISTTIMEFORMAT-enabled systems
Changes:
- Replace grep with awk to handle timestamp lines
- Remove matching commands AND their preceding timestamp lines
- Properly handle history format: #timestamp followed by command

Issue:
- Systems with HISTTIMEFORMAT set store timestamps as #<unix_time>
- Simple grep only removed command lines, left orphaned timestamps
- User's history showed toolkit commands still present (lines 990-1030)

Solution:
- awk script that tracks timestamp lines
- Only prints timestamp if following command is kept
- Removes both timestamp and command together atomically

Tested:
✓ Removes 16 lines (8 commands + 8 timestamps) from 32-line test
✓ Preserves normal commands with their timestamps
✓ No toolkit patterns found after cleaning
2025-11-10 23:12:13 -05:00
cschantz 4d99e59383 Improve trace eraser history cleaning efficiency and reliability
Changes:
- Replace chained grep -v with single grep -Ev for efficiency
- Fix critical bug: history -w was overwriting cleaned file
- Use history -r instead of history -w to reload cleaned history
- Single-pass filtering instead of 5 separate grep processes
- Better user messaging about other terminal sessions

Technical improvements:
- Escaped regex metacharacters in pattern (git\.mull\.lol)
- Use 3988207 for unique temp file names
- More efficient: 1 process vs 5 processes

Tested:
✓ Removes all toolkit commands regardless of position
✓ Preserves normal commands
✓ No temp file errors
✓ History properly reloaded into memory
✓ 7 toolkit entries removed from 20-line test history
2025-11-10 23:05:48 -05:00
cschantz 957489457e Fix trace eraser temp file bug
Changes:
- Calculate lines removed before deleting temp files
- Add error handling to line count calculations
- Prevent 'No such file or directory' error on line 163

Tested:
✓ Pattern-based removal works correctly
✓ Removes toolkit entries regardless of position
✓ No temp file access errors
2025-11-10 23:01:13 -05:00
cschantz 71fd27148a Fix history cleaning - disable history recording
Added 'set +o history' to prevent the trace eraser commands from being re-added to history.

Changes:
• Disable history recording before cleaning (set +o history)
• Clear in-memory history with history -c
• Write empty history with history -w
• Added note to run 'exec bash' for clean shell
• Prevents script commands from being saved

This ensures the last 10 entries are properly removed and the cleanup commands themselves don't get recorded.
2025-11-10 22:50:17 -05:00
cschantz 0dc684f839 Change bash history cleanup to only remove last 10 entries
Reduced from 50 to 10 entries for more targeted cleanup.

Changes:
• Only removes last 10 bash history entries
• More conservative approach
• Still covers toolkit download and usage
• Less impact on normal command history

Tested and confirmed working.
2025-11-10 22:47:22 -05:00
cschantz 53d5b84ea0 Fix bash history cleaning - move to end of script
Bash history cleaning was happening too early, causing script commands to be re-added to history.

Changes:
• Moved history cleaning to the very end of the script
• History is now cleaned after all other operations complete
• Prevents script commands from being re-added to history
• Clear in-memory history as final action

Now properly removes the last 50 bash history entries including all toolkit-related commands.
2025-11-10 22:46:00 -05:00
cschantz fa71bef8ef 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 4172143812 Update git commit format - remove Claude signatures
IMPORTANT: All future commits should NOT include:
- Claude Code attribution
- Any AI-related signatures

Commits should be clean and professional without AI attribution.
2025-11-10 22:25:37 -05:00
cschantz e441649846 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 40bbe30f5c 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 77c819da91 Add progress indicator to bot analyzer log parsing
The bot analyzer was silently processing thousands of log files with no progress feedback, appearing to stall on large servers.

Changes:
• Added progress counter showing every 50 log files parsed
• Displays current domain being processed
• Shows format: "Parsed 150 log files... (current: domain.com)"
• Clears progress line when complete to avoid clutter
• Interval set to 50 files (adjustable via progress_interval variable)

Example output:
  Parsing logs from: /var/log/apache2/domlogs
  Parsed 50 log files... (current: example.com)
  Parsed 100 log files... (current: another.com)
  Logs parsed successfully (125432 entries)

This gives real-time feedback on servers with 1000+ log files without overwhelming the output.
2025-11-10 20:55:33 -05:00
cschantz f2a4ea7926 Update REFDB_FORMAT.txt with domain lookup fix documentation
Updated WordPress Cron Manager section with:
• Two-step domain lookup method (main_domain → servername fallback)
• Correct wp-config.php placement (before stop editing comment)
• Added commit 172a115 to recent commits section
2025-11-10 20:41:57 -05:00
cschantz d092f656d1 Fix domain lookup in WordPress Cron Manager
The domain lookup was failing because it only searched for 'servername:' in /var/cpanel/userdata/*/main files, but cPanel stores domain information differently:

- main files use 'main_domain: domain.com' (YAML format)
- domain-specific files use 'servername: domain.com' (YAML format)

Changes:
• Added two-step domain lookup process
• Method 1: Check main_domain in /var/cpanel/userdata/*/main files
• Method 2: Fallback to search all domain files for servername
• Skip cache files (.cache, cache, cache.json) during search
• Applied fix to all three domain lookup locations (options 2, 5, 6)

This fixes the "WordPress installation not found for domain" error that occurred when domains weren't configured as main_domain.

Tested with pickledperil.com - lookup now works correctly.
2025-11-10 20:41:13 -05:00
cschantz c78ff2ccd7 Improve DISABLE_WP_CRON placement in wp-config.php
Changes:
- Modified disable_wpcron_in_config() to place DISABLE_WP_CRON before "stop editing" comment
- This follows WordPress convention for custom constants
- Removes any existing DISABLE_WP_CRON lines first (clean placement)
- Falls back to after <?php if "stop editing" not found

Placement Logic:
1. Remove any existing DISABLE_WP_CRON (anywhere in file)
2. Add before "/* That's all, stop editing! */" comment (line ~93)
3. Fallback: Add after <?php if no "stop editing" found

Example Placement:
```
if ( ! defined( 'WP_DEBUG' ) ) {
    define( 'WP_DEBUG', false );
}

define('DISABLE_WP_CRON', true);  ← Added here
/* That's all, stop editing! Happy publishing. */
```

Benefits:
- Follows WordPress conventions
- Placed with other custom constants
- Clean, predictable location
- Easy to find for manual edits

https://claude.com/claude-code
2025-11-07 18:03:58 -05:00
cschantz c464b51ed7 Consolidate documentation into single reference file
Changes:
- Updated REFDB_FORMAT.txt with all current information (2025-11-07)
- Deleted 8 unnecessary/outdated .md files:
  - AUDIT-REPORT.md (old audit)
  - COMPREHENSIVE_AUDIT_REPORT.md (old audit)
  - DEVELOPMENT-GUIDELINES.md (merged into REFDB_FORMAT.txt)
  - PROJECT-STRUCTURE.md (outdated structure info)
  - SESSION_INTELLIGENCE.md (old design doc)
  - SETUP_GUIDE.md (old setup info)
  - TROUBLESHOOTING.md (info now in REFDB_FORMAT.txt)
  - WHATS_NEW.md (old changelog)

Documentation Structure Now:
- README.md: User-facing documentation (keep)
- REFDB_FORMAT.txt: Developer/Claude reference (keep)

REFDB_FORMAT.txt Updates:
- Current status snapshot (2025-11-07)
- WordPress cron manager documentation
- Cancel button standards (mandatory)
- Module template with cancel options
- Git workflow guidelines
- Recent commits log
- Complete file structure map
- Quick reference sections

Benefits:
- Single source of truth for development
- No confusion between multiple docs
- Easier to maintain and keep current
- Clear separation: users read README, developers read REFDB_FORMAT

https://claude.com/claude-code
2025-11-07 17:55:52 -05:00
cschantz 8a2de86418 Add comprehensive development guidelines document
Created DEVELOPMENT-GUIDELINES.md as reference for maintaining consistency:

Structure:
- Complete project file map with quick reference table
- Standard script template with proper path resolution
- User experience guidelines (cancel options, messaging)
- Shared resources documentation (reference DB, IP reputation, user manager)
- Testing checklist and guidelines
- Git workflow and commit message template
- Menu structure standards
- Quick reference for common tasks

Key Standards Documented:
- Mandatory cancel/back options on all inputs
- Consistent messaging (print_success, print_error, etc.)
- Proper path resolution for nested scripts
- Reference database usage patterns
- IP reputation system integration
- Common function usage

Purpose:
- Ensure consistency across all scripts
- Quick reference for file locations
- Guidelines for adding new features
- Testing requirements before commits
- Uniform user experience standards

This document serves as the single source of truth for development
practices and helps maintain code quality as the toolkit grows.

https://claude.com/claude-code
2025-11-07 17:49:27 -05:00
cschantz 11de58beaa Add cancel/back options to all user input prompts
Changes:
- Added "0) Cancel" option to all menu prompts
- Added "(or 0 to cancel)" to all text input prompts
- Ensures users can back out of any operation at any time
- Scripts affected:
  - website-error-analyzer.sh (scope selection, time range)
  - 500-error-tracker.sh (time range selection)
  - wordpress-cron-manager.sh (all domain/user input prompts, status checks)

User Experience Improvements:
- No more being trapped in prompts
- Clear cancel instructions on every input
- Consistent "Operation cancelled" messaging
- Proper exit codes (0 for user cancellation)

Tested:
✓ website-error-analyzer.sh - cancel on scope selection
✓ 500-error-tracker.sh - cancel on time selection
✓ wordpress-cron-manager.sh - cancel on domain/user input
✓ All cancellations return cleanly to menu

https://claude.com/claude-code
2025-11-07 17:42:11 -05:00
cschantz 3003136515 Reorganize website management menu with WordPress subdirectory
Changes:
- Created modules/website/wordpress/ subdirectory for CMS-specific tools
- Moved wordpress-cron-manager.sh to new subdirectory
- Created wordpress-menu.sh submenu for WordPress tools
- Updated launcher.sh Website Management menu:
  - Simplified to show general tools and CMS submenu options
  - WordPress Management is now a submenu (option 3)
  - Prepared structure for Joomla/Drupal/other CMS support
- Fixed script paths in wordpress-cron-manager.sh for new location
- Tested complete navigation: Main → Website → WordPress → Cron Manager

Menu Structure Now:
  Website Management
  ├── Website Error Analyzer
  ├── 500 Error Tracker
  └── WordPress Management (submenu)
      └── WordPress Cron Manager
          └── (All cron management options working)

https://claude.com/claude-code
2025-11-07 17:37:51 -05:00