- Port Scanning: Utilizes TCP connection attempts to scan for open ports.
- Multithreading: Distributes scanning tasks across multiple threads for faster execution.
- Command-line Interface: Accepts command-line arguments for specifying IP addresses, threads, and help messages.
-
Clone the repository to your local machine:
git clone https://github.com/your_username/ip-sniffer-rust.git
-
Navigate to the project directory:
cd ip-sniffer-rust
-
Build the Application:
cargo build
The application accepts the following command-line arguments:
-
-threads <num_threads>
: Specify the number of threads for concurrent scanning. -
-h
or-help
: Display help message. Example uses: -
Display help messages:-
cargo run --h
-
Scan ports on a specific IP address with default settings (4 threads):-
cargo run 192.168.1.1
-
Scan ports on a specific IP address with a custom number of threads:
cargo run -- -threads 100 192.168.1.1
The application provides a list of open ports found during the scan.
Contributions are welcome! Feel free to open issues or pull requests.