Skip to content

The IP PORT Sniffer is a Rust-based tool for scanning ports on specified IP addresses. With multithreading support, it efficiently identifies open ports, aiding in network analysis and security assessments. Its command-line interface offers flexibility in specifying thread counts and accessing help messages, making it a valuable addition to network

bhattji007/IP-port-sniffer-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP PORT Sniffer (Rust)

sniffer

This Rust application provides a simple yet effective tool for scanning ports on a given IP address. With multithreading support, it efficiently checks for open ports within the specified range.

Features

  • 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.

Usage

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/your_username/ip-sniffer-rust.git
    
  2. Navigate to the project directory:

    cd ip-sniffer-rust
    
  3. Build the Application:

    cargo build
    

Running

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 

Output

The application provides a list of open ports found during the scan.

Contributions

Contributions are welcome! Feel free to open issues or pull requests.

About

The IP PORT Sniffer is a Rust-based tool for scanning ports on specified IP addresses. With multithreading support, it efficiently identifies open ports, aiding in network analysis and security assessments. Its command-line interface offers flexibility in specifying thread counts and accessing help messages, making it a valuable addition to network

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages