| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
╔╗╔═╗╔╦╗╦═╗╔═╗╦╔╗╔ ║║║╣ ║ ╠╦╝╠═╣║║║║ ╝╚╚═╝ ╩ ╩╚═╩ ╩╩╝╚╝
"Welcome to the real world." - Morpheus
A Matrix-style network packet monitor with real-time threat detection and stunning terminal visualizations. Built with Rust for maximum performance.
⚡ Quick Start: Install Rust → cargo install netrain → sudo netrain (or netrain --demo)
Demo mode (netrain --demo) — no root or live interface needed. Recorded from the actual binary with asciinema + agg.
Requirements: Rust 1.70+ must be installed first
cargo install netrainRequirements: Rust 1.70+ must be installed first
# Clone the repository
git clone https://github.com/marcuspat/netrain.git
cd netrain
# Build the project
cargo build --release
# The binary will be at ./target/release/netrainNetRain requires Rust 1.70+ for both installation methods above.
# Install Rust via rustup (recommended)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
# Verify installation
rustc --version
cargo --versionAlternatively, visit rustup.rs for other installation options.
sudo apt-get update
sudo apt-get install libpcap-dev# libpcap is included with macOS
# No additional installation needed# Install WinPcap or Npcap
# Download from: https://npcap.com/# Run with packet capture (requires root/admin)
sudo netrain
# Run in demo mode (no root required)
netrain --demo
# Show help
netrain --help
# Show version
netrain --versioncargo testcargo bench(SIMD is on the roadmap — see "Recommendations for Further Optimization" in PERFORMANCE_REPORT.md — but no SIMD code exists in this codebase today.)
We welcome contributions!
# Fork the repo and clone your fork
git clone https://github.com/yourusername/netrain.git
cd netrain
# Create a feature branch
git checkout -b feature/amazing-feature
# Make your changes and test
cargo test
cargo clippy
cargo fmt
# Commit and push
git commit -m "feat: add amazing feature"
git push origin feature/amazing-feature# Install Rust first (includes cargo)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
# Verify installation
cargo --version# On Linux/macOS, packet capture requires root privileges
sudo netrain
# Or use demo mode
netrain --demo# Use demo mode if no interfaces available
netrain --demo# Ensure terminal supports Unicode
export LANG=en_US.UTF-8
# For best experience, use a modern terminal like:
# - Alacritty, Kitty, WezTerm (recommended)
# - iTerm2 (macOS), Windows Terminal (Windows)If you get a "signal: 9, SIGKILL: kill" error when running cargo install netrain on Linux, your system likely doesn't have enough memory to compile the dependencies.
Common on: VPS/cloud instances with ≤1GB RAM
Solution 1: Add Swap Space (Recommended)
# Create a 4GB swap file
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# Make it permanent
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
# Now try installing again
cargo install netrainSolution 2: Reduce Compilation Parallelism
# Limit cargo to 1 job to reduce memory usage
export CARGO_BUILD_JOBS=1
cargo install netrainSolution 3: Use Pre-built Binary Check if pre-built binaries are available for your release:
# Visit https://github.com/marcuspat/netrain/releases
# Download the appropriate binary for your system
# For example, for Linux x86_64:
wget https://github.com/marcuspat/netrain/releases/download/vX.Y.Z/netrain-linux-amd64.tar.gz
tar -xzf netrain-linux-amd64.tar.gz
sudo mv netrain /usr/local/bin/
sudo chmod +x /usr/local/bin/netrainNote: Replace vX.Y.Z with the actual version number
This project is licensed under the MIT License - see the LICENSE file for details.
| Repo | What it does |
|---|---|
| secret-scan | Rust secret scanner — obfuscation detection |
| codescope | Rust code-intelligence engine for AI agents — no cloud, no DB |
| Sentinel | Deny-by-default agentic sysadmin: Investigate → Plan → Approve → Act |
| turbo-flow | Agentic dev environment — 60+ AI subagents, Ruflo orchestration |
| Back | FazBrowse Home | New Git URL |