Skip to content

First Rust project, scans websites for open/closed ports, SSL sertificates and headers.

License

Notifications You must be signed in to change notification settings

nazarhktwitch/NetScan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetScan

NetScan is a SIMPLIEST tool for port, SSL sertificates and headers scanning. It allows you to scan ports on remote addresses, check their status (open/closed), check SSL sertificates ans headers for them. The scan results can be saved in CSV or JSON format.

Features

  • Port Scanning: Check the status of ports on a remote address.
  • Reports: Generate reports in CSV and JSON formats.
  • SSL sertificates and headers scanning: Check remote address for SSL sertificates and headers

Requirements

  • Rust (version 1.50 or higher)
  • Dependencies in Cargo.toml

Installation

You can download pre-built version

  1. Clone this repository:

    git clone https://github.com/nazarhktwitch/NetScan
    cd NetScan
  2. Build the project:

    cargo build --release
  3. The compiled binary will be available in the target/debug/ or for release in target/release/ directory.

Usage

  1. Run the program

  2. Enter the target address (e.g., https://example.com).

  3. Enter a comma-separated list of ports to scan (e.g., 80,443,8080).

    • The program will scan each specified port and check if it's open, along with verifying SSL certificates for port 443 and fetching HTTP headers for ports 80 and 443.
  4. After the scan completes (If save to CSV/JSON enabled), the results will be displayed, and reports will be saved in both CSV and JSON formats.

    • The CSV report will be saved as scan_report.csv.
    • The JSON report will be saved as scan_report.json.

See logs in 'logs' folder, config is 'config.json'

License

This project is licensed under the MIT License - see the LICENSE file for details.