zero-ops
v1.1.6
Published
CLI utility for managing named paths (bigbang flow)
Downloads
64
Maintainers
Readme
zero-ops
A Node.js command‑line utility for managing named paths (bigbang flow) and deleting data inside those paths.
Installation (global)
npm install -g . # run in the directory containing package.jsonThis will expose the zero-ops command globally.
Usage
Getting Help
To see a list of available tools and global options:
zero-ops --helpTo see help for a specific tool and its commands:
zero-ops <tool> --helpConfigure a path
zero-ops <tool> config set <name> <directory> [--active]<tool>: Identifier for the tool (e.g.,bigbang).<name>: Identifier for the path configuration.<directory>: Absolute or relative path to the folder.--active(optional): Mark the path as active.
List configurations
zero-ops <tool> config listShows all stored configurations for the specified <tool>.
Activate / Deactivate a path
zero-ops <tool> config activate <name>
zero-ops <tool> config deactivate <name>Activate / Deactivate all paths
zero-ops <tool> config activate-all
zero-ops <tool> config deactivate-allDelete a specific configuration entry
zero-ops <tool> config delete <name>Delete data inside a configured path
zero-ops <tool> delete <name>Deletes all files/folders inside the directory associated with <name> for the specified <tool>.
Delete data inside all active paths
zero-ops <tool> delete-activezero-ops delete-active
Deletes the contents of every path marked as active for the specified `<tool>`.
### Desktop Management
**Note:** Fully supported on macOS. Windows/Linux support is experimental/limited.
```bash
# List running applications
zero-ops desktop list
# Minimize an application
zero-ops desktop minimize "AppName"
# Minimize all applications
zero-ops desktop minimize-all
# Close an application
zero-ops desktop close "AppName"
# Close all applications
zero-ops desktop close-all
# Screenshot
# Captures are saved to ~/.zero-ops/ and copied to clipboard.
zero-ops desktop screenshot # Full screen
zero-ops desktop screenshot region # Interactive region selection
# Interactive Window Selection
# On macOS, run the command below, then PRESS SPACE to switch to window selection mode.
zero-ops desktop screenshot window
zero-ops desktop screenshot windowSystem Security Monitor (monitor)
A professional-grade security auditing and network monitoring suite built for zero-ops. This tool provides deep visibility into system-level network activity, identifies unauthorized remote access patterns (reverse shells), and offers active response capabilities.
Key Security Features
- Deep Cross-Platform Auditing:
- macOS & Linux: Native integration with
lsof(list open files) to provide exact process-to-port mapping. - Windows: Robust support via
netstat -anoandtasklist, providing a unified experience across all environments.
- macOS & Linux: Native integration with
- Intelligent Reverse Shell Detection:
- Monitors for shell binaries (
bash,zsh,cmd.exe,powershell.exe) and scripting interpreters (python,node,ruby) that have established external connections. - Filters out
localhost(127.0.0.1) and standard development ports to minimize noise.
- Monitors for shell binaries (
- Behavioral Baselining (Anomaly Detection):
- Allows you to capture a "Safe State" of your system.
- Subsequent scans automatically highlight
[NEW]connections that were not present in your baseline.
- Active Threat Response:
- Integrated
kill <PID>functionality for immediate termination of unauthorized processes identified during auditing.
- Integrated
- Detached Daemon Monitoring:
- Run the security monitor as a persistent background service.
- Automated logging to
~/.zero-ops/monitor.logand remote Telegram alerting.
- Remote Telegram Integration:
- Receive real-time security alerts on your mobile device. Pairs with the
telegramtool for autonomous system defense.
- Receive real-time security alerts on your mobile device. Pairs with the
Command Reference
| Command | Description | Security Use Case |
| :--- | :--- | :--- |
| network | List all active TCP/UDP sockets | General connectivity audit and baseline check. |
| reverse-shell | Focused heuristic threat scan | Detecting persistent remote access or shells. |
| listeners | Audit all listening ports | Finding hidden services or exposed public ports. |
| snapshot | High-level security summary | Rapid health check to identify anomalies. |
| baseline | Capture current system "Safe State" | Establish a norm to detect future intrusions. |
| inspect <PID>| Deep process forensics | Analyze PPID, full Command Line Args, and lineage. |
| kill <PID> | Immediate process termination | Active response to identified threats. |
| ignore <proc> | Whitelist trusted processes | Cleaning up logs by ignoring safe dev tools. |
| start | Initialize background daemon | 24/7 autonomous monitoring. |
| logs | Tail real-time security events | Monitoring the daemon's auditing loop. |
| wifi list | Scan and identify nearby networks | Discover and profile local hardware (OUI). |
| wifi watch | Real-time signal dashboard | Monitor fluctuations and RF environment health. |
| wifi audit | SSID Clone (Evil Twin) detection | Detect malicious spoofs and signal interference. |
| wifi diagnostic| Resolve permission/BSSID issues | Unlock full visibility on macOS (Location Services). |
Technical Deep-Dive
- Heuristic Engine:
- The
reverse-shellcommand specifically analyzes the intersection of process binary names (e.g.,bash,python) and "ESTABLISHED" network sockets that point to external IP addresses. - Note: Development-related
localhosttraffic is intentionally omitted to prevent false-positives during local debugging.
- The
- Persistence & Daemon Archetecture:
- PID Tracking:
~/.zero-ops/monitor.pid - Audit Logs:
~/.zero-ops/monitor.log(Rotated manually or tailed viamonitor logs). - Polling Interval: The background daemon polls every 10 seconds, while the
watchcommand supports a custom millisecond interval.
- PID Tracking:
- Configuration Keys:
telegram.token: Your Bot API token.telegram.chat_id: Your personal Telegram ID for secure alerts.monitor.baseline: Encrypted array of "Known Safe" socket signatures.monitor.ignore: Process whitelist for noise reduction.
Example Scenarios
# Audit for new public interface exposure
zero-ops monitor listeners
# Deep-dive into a suspicious PID to see how it was launched
zero-ops monitor inspect 94398
# Terminate an unauthorized shell connection
zero-ops monitor kill 94398
# Setup a new baseline after installing trusted software
zero-ops monitor baseline[!TIP] Use the simulationandtestScanner.md guide to verify your setup with controlled, safe security simulations.
PDF Inspector (pdf-inspect)
Advanced PDF inspection and Handlebars (HBS) template generation tool.
# Start the inspector with a specific PDF file
zero-ops pdf-inspect ~/path/to/your/file.pdfFeatures:
- Visual Inspection: Hover over any PDF element (text, image, background box) to see its exact properties, types, and CSS.
- Content Picker: Click any element to copy its actual content immediately:
- Text: Copies the raw text string.
- Images: Generates and copies a high-quality Base64 Data URL of the specific image.
- Background Blocks: Copies the hexadecimal color code of detected background sections.
- HBS Template Generation:
- Click "Download .hbs" to export a pixel-perfect Handlebars template.
- Modular Extraction: Extracts section backgrounds as individual
divelements and images as standalone assets. - Line Reconstruction: Automatically merges fragmented text segments into logical lines, making the template human-readable and easy to tokensize.
- 1:1 Fidelity: Maintains exact PDF coordinates and embeds all relevant fonts.
Excel Compare (excel-compare)
A Premium data reconciliation tool to intelligently compare large .xlsx, .xls, and .csv files. It features a modern Glassmorphism browser interface, client-side SheetJS parsing, and both private and cloud AI integrations for executive summaries.
# Start the local server and open the browser interface
zero-ops excel-compareKey Features:
- Intelligent Diff Engine: Compares rows using strict Primary Keys, or automatically dynamically aligns misaligned rows using an advanced Sliding Window Heuristic and fuzzy cell similarity when no key is provided.
- Synchronized Side-by-Side View: A dual-pane interface with locked horizontal/vertical scrolling to easily visually cross-reference Base (V1) and Target (V2) data.
- Interactive Merging: Toggle cell-level or row-level
Accept / Rejectdecisions to cherry-pick which data to keep directly from the UI, then export a fully merged V3 master document. - Data Privacy: All heavy parsing and diffing runs securely and locally inside your browser using Web Workers.
- Enterprise AI Insights:
- Configure to use OpenAI or private, local Ollama models.
- Automatically renders Executive Summaries in beautiful Markdown, detailing the exact financial or structural impact of data modifications.
- Export Ready: Download actionable
.xlsxdiff sheets strictly highlighting deviations.
Configuration Setup:
# Set up your AI Provider (default is openai)
zero-ops excel-compare config set aiProvider ollama
zero-ops excel-compare config set ollamaModel phi3
# If using OpenAI
zero-ops excel-compare config set openAiKey "sk-your-key-here"
# View current settings
zero-ops excel-compare config get📚 Detailed Documentation: See the Full Excel Compare README for advanced usage and CLI architecture.
Telegram Remote Control
Control zero-ops from your Telegram app.
Configure Credentials
zero-ops telegram config set token "YOUR_BOT_TOKEN" zero-ops telegram config set chat_id "YOUR_CHAT_ID"Start the Bot in Background
zero-ops telegram startCheck Status
zero-ops telegram statusStop the Bot
zero-ops telegram stopUsage
- Send
menuto the bot to immediately bring up a fully interactive Quick Actions keyboard (Take Photo, Display Security Snapshot, Minimized Desktop, etc.). - Send
desktop screenshotto take a screenshot (the bot will upload the image back to you!). - Send
monitor snapshotto get a remote security health check. - New suspicious connections detected by
monitor watchor the daemon will be automatically messaged to you!
- Send
Supported Telegram Commands
You can send almost any zero-ops command to the bot. Here are the most useful ones:
Desktop Tool (desktop)
desktop list: Show running applications.desktop minimize "App Name": Minimize a specific app.desktop minimize-all: Minimize everything (Show Desktop).desktop close "App Name": Close a specific app.desktop close-all: Close everything.desktop screenshot: Take a full-screen screenshot (returns image).desktop screenshot window "App Name": Take a screenshot of a specific app window (e.g.,desktop screenshot window "Google Chrome").
BigBang Tool (bigbang)
bigbang config list: View current path configurations.bigbang delete <name>: Delete data in a named path.bigbang delete-active: Delete data in all active paths.
Telegram Tool (telegram)
telegram status: Check bot status remotely.telegram logs: (Not recommended via chat, use terminal).commands/help: Send this to the bot to list all available commands and examples.
Camera Tool (camera)
camera capture [name]: Take a photo using the webcam.- Requires system dependencies (
imagesnapon macOS,fswebcamon Linux). - Photos are saved to
~/.zero-ops/camera/and auto-uploaded to Telegram if requested via bot.
- Requires system dependencies (
System Monitor (monitor)
monitor snapshot: Get a remote security health check report.monitor network: List all active network connections.monitor reverse-shell: Check for suspicious shell-to-socket correlations.monitor wifi list: Identify all nearby hardware manufacturers (OUI).monitor wifi audit: Remotely check for SSID clones/evil twins.monitor start: Engage background monitoring daemon.monitor stop: Disengage background monitoring daemon.monitor status: Check if the monitor is currently heartbeat active.
⚠️ Important Note & Disclaimer
Platform Testing:
This tool has been primarily developed and verified on macOS. While Linux and Windows support has been implemented based on standard system tools (wmctrl, PowerShell, etc.), cross-platform behavior may vary.
Liability Disclaimer: This software is provided "as is", without warranty of any kind, express or implied. By using this software, you agree that you are solely responsible for any consequences resulting from its use. The authors and contributors accept no responsibility for any damage, data loss, or system issues that may occur. Please use responsibly.
Example Workflow
# Set two paths for 'bigbang' tool, one active
zero-ops bigbang config set projectA ./data/projectA --active
zero-ops bigbang config set projectB ./data/projectB
# List configurations for bigbang
zero-ops bigbang config list
# Delete data for a single path
zero-ops bigbang delete projectA
# Delete data for all active paths under bigbang
zero-ops bigbang delete-activeDevelopment
Install dependencies locally:
npm installRun the CLI directly (without global install):
node zero-ops.js <command>License
MIT
