Skip to content

gh0stinthemirr0r/layers_python

Repository files navigation

Layers Header)

LAYERS: OSI Layers CLI Testing Suite

A comprehensive Python project that simulates testing across the OSI model layers (1–7) via a command‑line interface. This suite performs various tests (physical, data link, network, transport, session, presentation, and application) concurrently and produces vivid, colorized output along with detailed reports in CSV, PDF, and JSON formats.

Features

  • Multi-Layer Testing:
    Implements simulated tests for all seven OSI layers:

    • Layer 1 (Physical): Simulated physical connection checks and signal strength.
    • Layer 2 (Data Link): Checks network interfaces, MAC addresses, and interface status.
    • Layer 3 (Network): Performs DNS resolution and ping tests.
    • Layer 4 (Transport): Checks TCP and UDP connectivity (with independent evaluations).
    • Layer 5 (Session): Establishes TCP sessions by sending minimal HTTP GET requests.
    • Layer 6 (Presentation): Tests JSON encoding/decoding on provided datasets.
    • Layer 7 (Application): Issues HTTP GET requests to validate application-level protocols.
  • Vivid Colorized Output:
    Uses Colorama to display test statuses in vivid green (Passed) or red (Failed) on the CLI.

  • Advanced Reporting:
    Generates neatly formatted reports in:

    • CSV
    • PDF (with exotic table formatting including cell outlines and wrapped text)
    • JSON (optional)
    • Full Text Report (combining the test result summary with captured logs in neatly aligned columns)
  • Concurrent Testing:
    Uses Python's threading module to perform tests concurrently across layers, speeding up the overall scan.

  • Log Capture:
    Captures all log output (from both console and file) for inclusion in the full text report.

Installation and Use

  1. Clone the Repository, execute each file individually or simply run the comprehensive scan. Thats it!

Example Outputs

Layer 1 Layer 2 Layer 3 Layer 4 Layer 5 Layer 6 Layer 7

About

Automated OSI Testing for Network Engineers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages