{"id":43343751,"url":"https://github.com/robgonnella/r-lanscan","last_synced_at":"2026-02-11T06:08:10.562Z","repository":{"id":239687312,"uuid":"758551559","full_name":"robgonnella/r-lanscan","owner":"robgonnella","description":"A network scanning CLI, TUI, and Rust Package that makes it easy to perform ARP \u0026 SYN scanning for a LAN","archived":false,"fork":false,"pushed_at":"2026-02-01T23:56:39.000Z","size":18479,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-02T09:13:47.222Z","etag":null,"topics":["arp-scanner","network-monitoring","network-scanner","network-scanning","network-tools","network-visualization","packet-capture","syn-scan"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robgonnella.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-16T15:08:02.000Z","updated_at":"2026-02-01T23:56:12.000Z","dependencies_parsed_at":"2024-05-20T06:30:48.548Z","dependency_job_id":"6200d84c-e155-47d7-b1ed-7328d542c100","html_url":"https://github.com/robgonnella/r-lanscan","commit_stats":null,"previous_names":["robgonnella/r-lanscan"],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/robgonnella/r-lanscan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robgonnella%2Fr-lanscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robgonnella%2Fr-lanscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robgonnella%2Fr-lanscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robgonnella%2Fr-lanscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robgonnella","download_url":"https://codeload.github.com/robgonnella/r-lanscan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robgonnella%2Fr-lanscan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arp-scanner","network-monitoring","network-scanner","network-scanning","network-tools","network-visualization","packet-capture","syn-scan"],"created_at":"2026-02-02T01:19:33.511Z","updated_at":"2026-02-11T06:08:10.532Z","avatar_url":"https://github.com/robgonnella.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/robgonnella/r-lanscan)\n\n# r-lanscan\n\n[![test](https://github.com/robgonnella/r-lanscan/actions/workflows/test.yml/badge.svg)](https://github.com/robgonnella/r-lanscan/actions/workflows/test.yml)\n![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Frobgonnella%2Fr-lanscan%2Frefs%2Fheads%2Fmain%2Fcli%2FCargo.toml\u0026query=package.version\u0026label=r-lancli)\n![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Frobgonnella%2Fr-lanscan%2Frefs%2Fheads%2Fmain%2Flib%2FCargo.toml\u0026query=package.version\u0026label=r-lanlib)\n![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Frobgonnella%2Fr-lanscan%2Frefs%2Fheads%2Fmain%2Fterm%2FCargo.toml\u0026query=package.version\u0026label=r-lanterm)\n\nA comprehensive suite of network scanning tools for local area networks, written\nin Rust. This is the modern Rust implementation of the\n[go-lanscan](https://github.com/robgonnella/go-lanscan) project, offering\nimproved performance, safety, and usability.\n\n# Demo\n\n![](./assets/r-lanterm.gif)\n\n## Features\n\n- 🔍 **ARP Scanning** - Discover active devices on your network\n- 🔌 **SYN Port Scanning** - Detect open ports and services on discovered\n  devices\n- 🖥️ **Terminal UI** - Interactive interface for network management and device\n  interaction\n- 📚 **Library Crate** - Build custom network scanning applications\n- 🚀 **High Performance** - Optimized Rust implementation with concurrent\n  scanning\n- 🛡️ **Memory Safe** - Rust's safety guarantees prevent common networking bugs\n\n## Components\n\nr-lanscan is organized as a Cargo workspace with three main components:\n\n### 📚 [r-lanlib](./lib/README.md) - Network Scanning Library\n\nThe core library providing network scanning capabilities for building custom\napplications.\n\n```rust\nuse r_lanlib::{network, packet, scanners::*};\n\n// Discover devices on your network\nlet interface = network::get_default_interface()?;\nlet scanner = ARPScanner::builder()\n    .interface(\u0026interface)\n    // ... configure options\n    .build()?;\nlet handle = scanner.scan()?;\n```\n\n**Key Features:**\n\n- ARP and SYN scanning implementations\n- Flexible target specification (IPs, ranges, CIDR blocks)\n- Real-time results via channels\n- Vendor lookup and hostname resolution\n- Cross-platform network interface detection\n\n### 🖥️ [r-lancli](./cli/README.md) - Command Line Interface\n\nA powerful CLI tool for network reconnaissance and analysis.\n\n```bash\n# Scan entire local network\nsudo r-lancli\n\n# Scan specific targets with custom ports\nsudo r-lancli --targets 192.168.1.0/24 --ports 22,80,443,8080\n\n# Export results as JSON\nsudo r-lancli --json --quiet \u003e scan_results.json\n```\n\n**Key Features:**\n\n- Comprehensive network scanning with customizable options\n- Human-readable tables and JSON output\n- Flexible target and port specification\n- Vendor lookup and hostname resolution\n- Integration-friendly for scripting and automation\n\n### 🎮 [r-lanterm](./term/README.md) - Terminal UI Application\n\nAn interactive terminal user interface for network management and device interaction.\n\n```bash\n# Launch interactive terminal UI\nsudo r-lanterm\n\n# Customize port scanning\nsudo r-lanterm --ports 22,80,443,3389,5900\n```\n\n**Key Features:**\n\n- Real-time network monitoring with live updates\n- SSH integration for direct device access\n- Built-in traceroute and web browsing (lynx)\n- Persistent configuration management\n- Multiple color themes and customizable interface\n- Device-specific and global SSH configurations\n\n## Quick Start\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/robgonnella/r-lanscan\ncd r-lanscan\n\n# Build all components\ncargo build --release\n\n# Or build individual components\ncargo build --release -p r-lanlib\ncargo build --release -p r-lancli\ncargo build --release -p r-lanterm\n```\n\n### Using Justfile\n\nThe project includes a comprehensive Justfile for common development tasks:\n\n```bash\n# Install just command runner\ncargo install just\n\n# View all available commands\njust\n\n# CLI operations\njust scan --help                    # Show CLI help\njust scan                          # Quick network scan\njust scan --targets 192.168.1.0/24 # Scan specific network\njust scan --arp-only --vendor      # ARP scan with vendor lookup\n\n# Terminal UI operations\njust term                          # Launch interactive terminal UI\njust term --ports 22,80,443       # Custom port scanning\njust term --debug                  # Run in debug mode\n\n# Development and testing\njust test                          # Run all tests\njust test-report                   # Generate test coverage report\njust lint                          # Run clippy linting\n\n# Docker operations\njust up                           # Start development containers\njust exec-workspace               # Access container shell\njust exec-workspace-term          # Run terminal UI in container\njust down                         # Stop containers\njust logs                         # View container logs\n```\n\n### Basic Usage Examples\n\n**Quick Network Scan:**\n\n```bash\nsudo r-lancli --arp-only --vendor --host-names\n```\n\n**Comprehensive Port Analysis:**\n\n```bash\nsudo r-lancli --ports 1-1000 --json \u003e network_audit.json\n```\n\n**Interactive Network Management:**\n\n```bash\nsudo r-lanterm  # Launch terminal UI for full interactive experience\n```\n\n## Requirements\n\n- **Rust 1.90.0+** with Rust 2024 edition support - Install via [rustup.rs]\n- **Root/Administrator privileges** - Required for raw socket operations\n- **Optional external tools** (for terminal UI):\n  - `ssh` - For device connections\n  - `traceroute` - For network path analysis\n  - `lynx` - For terminal web browsing\n\n## Documentation\n\n- 📖 **[Library Documentation](./lib/README.md)** - API reference and examples\n  for r-lanlib\n- 💻 **[CLI Documentation](./cli/README.md)** - Complete command-line reference\n  and usage examples\n- 🖥️ **[Terminal UI Documentation](./term/README.md)** - Interactive interface\n  guide and keyboard shortcuts\n\n## Use Cases\n\n### Network Administration\n\n- Discover all devices on your network segments\n- Monitor network changes and new device connections\n- Audit open ports and services across your infrastructure\n- Quick SSH access to multiple servers and devices\n\n### Security Analysis\n\n- Identify unauthorized devices on your network\n- Detect unexpected open ports and services\n- Map network topology and device relationships\n- Monitor for security compliance across network segments\n\n### Development and Testing\n\n- Verify service availability during development\n- Test network connectivity and firewall rules\n- Debug network issues with integrated diagnostic tools\n- Automate network discovery in CI/CD pipelines\n\n## Development\n\n### Building from Source\n\n```bash\n# Development build\ncargo build\n\n# Release build with optimizations\ncargo build --release\n\n# Run tests\ncargo test\n\n# Run with coverage reporting\ncargo llvm-cov\n\n# Lint code\ncargo clippy --all-targets --all-features\n```\n\n### Docker Development Environment\n\nThe project includes a Docker setup for development and testing:\n\n```bash\n# Build and start development container\njust up\n\n# Access workspace shell\njust exec-workspace\n\n# Run terminal UI in container\njust exec-workspace-term\n\n# View container logs\njust logs\n\n# Stop containers\njust down\n```\n\n**Note**: Docker networking limitations may affect scanning capabilities and\nperformance. For full functionality and optimal performance, run natively on the\nhost system.\n\n### Project Structure\n\n```\nr-lanscan/\n├── lib/          # Core scanning library (r-lanlib)\n├── cli/          # Command-line interface (r-lancli)\n├── term/         # Terminal UI application (r-lanterm)\n└── Cargo.toml    # Workspace configuration\n```\n\n## Security and Ethics\n\n⚠️ **Important:** This tool is designed for legitimate network administration\nand security analysis. Always ensure you have proper authorization before\nscanning networks.\n\n- Only scan networks you own or have explicit permission to test\n- Be aware that network scanning may trigger security monitoring systems\n- Some jurisdictions have laws regulating network scanning activities\n- Use responsibly and in accordance with your organization's security policies\n\n## Contributing\n\nWe welcome contributions!\n\nDoc coming soon...\n\n## License\n\nThis project is dual-licensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n- MIT License ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Related Projects\n\n- [go-lanscan](https://github.com/robgonnella/go-lanscan) - Original Go implementation\n- [ops](https://github.com/robgonnella/ops) - Original terminal UI concept\n- [nmap](https://nmap.org/) - Comprehensive network discovery and security auditing\n\n[rustup.rs]: https://rustup.rs/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobgonnella%2Fr-lanscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobgonnella%2Fr-lanscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobgonnella%2Fr-lanscan/lists"}