https://github.com/arslanstack/ip-port-sniffer
A Rust Based Port Sniffer
https://github.com/arslanstack/ip-port-sniffer
port-scanner port-sniffer rust rust-mpsc
Last synced: about 2 months ago
JSON representation
A Rust Based Port Sniffer
- Host: GitHub
- URL: https://github.com/arslanstack/ip-port-sniffer
- Owner: arslanstack
- Created: 2024-02-14T06:05:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-14T06:17:24.000Z (over 1 year ago)
- Last Synced: 2025-01-26T02:31:51.078Z (4 months ago)
- Topics: port-scanner, port-sniffer, rust, rust-mpsc
- Language: Rust
- Homepage:
- Size: 924 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust IP Port Sniffer
This is a simple port sniffer based on Rust.

## How to Run
To run the program, follow these simple steps:
1. **Install Rust:**
If you haven't installed the Rust development environment yet, you can do so by following the instructions [here](https://www.rust-lang.org/tools/install).2. **Run Help:**
After installing Rust, navigate to the project directory in your terminal and run the following command to display help:```bash
cargo run -- -h3. **Run the Sniffer:**
Open your terminal and navigate to the project directory. Run the following command, replacing `` with the desired number of threads and `` with your actual IP address:```bash
cargo run -- -jThis command will start the sniffer for you. Enjoy!
## Rust Libraries Used
- std::env
- std::io::{self, Write}
- std::net::{IpAddr, TcpStream}
- std::process
- std::str::FromStr
- std::sync::mpsc::{channel, Sender}
- std::thread## License
Copyright (c) 2024 arslanstack.
his project is licensed under the [MIT License](LICENSE.md). Feel free to contribute and enhance the project!