Specter is a shell utility designed to add an element of unpredictability to command line operations. By introducing random delays, simulating errors, or executing commands normally.
- Random Delays: Injects random delays before command execution, simulating real-world latency or high system load.
- Simulated Errors: Occasionally produces fake error messages, requiring users to discern between actual and simulated command line issues.
- Transparent Execution: Executes commands without interference, allowing for a seamless blend of real and altered command outcomes.
- Python 3.x
- Bash shell environment
- Administrative or sudo privileges for installation
- Clone the Repository:
git clone https://github.com/yourusername/specter.git
- Navigate to the script directory:
cd specter
- Prepare the script for execution:
chmod +x ghostcommands.py
Configuration
To integrate Specter into your command line workflow, follow these steps to set up the Python script handler and command aliases in your shell configuration:
Modify .bashrc: Open your .bashrc file in a text editor:
nano ~/.bashrc
Insert the Command Handler Function:
Append the following function to your .bashrc, adjusting the path to where ghostcommands.py is located:
function cmd() {
python3 /path/to/specter/ghostcommands.py "$@"
}
alias sudo='sudo ' # Makes sure aliases work with sudo
Establish Aliases for Frequent Commands: Create aliases to redirect command execution through Specter:
alias ls='cmd ls'
alias cat='cmd cat'
alias grep='cmd grep'
# Additional aliases can be set as needed