An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Rust IP Port Sniffer

This is a simple port sniffer based on Rust.

![IP Port Sniffer](snippet.png)

## 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 -- -h

3. **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 -- -j

This 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!