Let me Script You: Sniffer Lite v4.1 — GUI, CLI & Network Administration Tool for Linux

Author: Perisa Reljic [ ▽ Ш ]

Studio: Art Studio Shumadia Gothic [ Ш ]

Project: Let me Script You

Environment: Linux / Python 3 (tkinter + Python 3 standard library, no external Python packages required)

Website: https://perisareljic.name | https://en.perisareljic.name

Introduction

In server administration and website maintenance, the most practical tools are those that run quickly without heavy dependencies or hours of configuration—giving a clear picture of a domain, host, or local network right away. Sniffer Lite v4.1 builds on the v4.0 CLI tool and introduces a full Tkinter graphical interface, an integrated PTY terminal, and a Network Administration view, while keeping fast command-line and interactive menu workflows intact.

All core scanning, DNS, SSL/TLS, HTTP header auditing, reconnaissance, JSON/TXT reporting, and diff logic are written using the Python 3 standard library (socket, ssl, urllib, subprocess, concurrent.futures, json, ipaddress, pty) alongside tkinter, with optional integration for system tools such as dig, host, nmap, ip, and ss when installed on the machine.

What It Does and What It Is For

Sniffer Lite v4.1 combines diagnostic and reconnaissance checks in both GUI and CLI modes:

  • Graphical User Interface (GUI): Includes a Dark and Light theme toggle, a 2x4 action grid (Quick Scan, TCP Port Scan + Banner, DNS Records, Subdomain & Endpoint Recon, Nmap Services -sV, Deep Nmap -sV + scripts, Full Arsenal 1-1000, and CLI Command builder), log clearing/saving to .txt, and an About dialog displaying the Shumadia Gothic emblem.
  • Integrated PTY Terminal & Process Control: Lets you run shell commands directly inside the GUI with command history (Up/Down), cd directory tracking, optional sudo password prompt, Stop (SIGTERM) for active processes, or launch an external terminal (xfce4-terminal, x-terminal-emulator, xterm).
  • Network Administration (NetAdmin) View: Auto-detects local non-loopback IPv4 subnets (ip -o -f inet addr) and provides one-click actions for Nmap Host Discovery (-sn -T4), Nmap Fast Ports (-F), network interfaces (ip -br a), routing table (ip r), listening sockets (ss -tulnp), and connectivity checks (ping).
  • Multi-threaded TCP Port Scanner: Scans the 17 common service ports (common), the first 1,000 ports (1k / 1-1000), or custom comma-separated ports and ranges (1-65535), with lightweight banner grabbing and configurable --threads and --timeout.
  • TLS/SSL Certificate Inspection: Connects to port 443 and reports the negotiated protocol and cipher, certificate Subject CN, Issuer Organization, validity dates (notBefore / notAfter), and Subject Alternative Names (SAN).
  • HTTP Stack & Security Headers Audit: Checks HTTP status, final URL after redirects, Server and X-Powered-By headers, allowed methods (OPTIONS), Set-Cookie flags (HttpOnly, Secure, SameSite), basic stack indicators (WordPress, WooCommerce, Cloudflare, Plesk), and audits security headers split into CORE and OPTIONAL.
  • DNS Lookups (--dns): Resolves A (IPv4) and AAAA (IPv6) records, and queries NS, MX, and TXT records via dig (with host fallback).
  • Subdomain & Endpoint Recon (--recon): Checks common subdomains (www, mail, webmail, ftp, cpanel, plesk, ns1, ns2, dev, staging, test, api, admin, blog, shop) and common endpoints (/robots.txt, /sitemap.xml, /sitemap_index.xml, /wp-login.php, /xmlrpc.php, /readme.html, /wp-json/, /.well-known/security.txt).
  • Optional Nmap Integration (--nmap & --nmap-deep): Invokes system nmap with -sV service detection, optionally adding HTTP/SSL NSE scripts (http-title,http-headers,ssl-cert).
  • Report Export & Snapshot Diff (--save, --json, --diff): Saves full text and structured JSON reports, and compares current open ports, discovered subdomains, and missing core headers against a previous JSON report.

Who This Script Is For

  • Webmasters and site owners who want to check domain resolution, SSL certificates, open ports, HTTP headers, and common WordPress/site paths in one place.
  • System administrators and Linux users who want a lightweight diagnostic tool with both terminal automation and quick GUI/NetAdmin actions.
  • Security learners and enthusiasts studying TCP services, TLS/HTTP security headers, DNS records, and defensive posture checks on their own systems.

Disclaimer

IMPORTANT USAGE NOTICE:

The Sniffer Lite v4.1 script is developed strictly for educational, diagnostic, and administrative purposes. It is intended for webmasters, system administrators, and system owners to inspect and improve the security and reliability of their own domains, servers, and network infrastructure, or environments for which explicit written permission from the owner has been granted.

Any misuse of this tool is strictly prohibited, including unauthorized scanning of third-party systems, networks, and web applications. The author assumes no responsibility for any damage, legal consequences, or misuse resulting from using this code in violation of law and ethical standards.

How to Use It (Companion Bash Commands)

1. Setup and executable permission

Save the code to sniffer_lite_4.1.py and make it executable:

Baxh

chmod +x sniffer_lite_4.1.py

2. Launching the GUI or interactive CLI menu

Running the script with no arguments (or with --gui) launches the Tkinter GUI. Use --menu (or -m) for the interactive numbered terminal menu:

Baxh:

python3 sniffer_lite_4.1.py
# or explicitly launch GUI:
./sniffer_lite_4.1.py --gui
# or launch interactive CLI menu:
./sniffer_lite_4.1.py --menu

3. Direct CLI commands in the terminal

Bash:

# Basic domain check (17 common ports, SSL, HTTP headers)
python3 sniffer_lite_4.1.py perisareljic.name

# Check with DNS records (A, AAAA, NS, MX, TXT)
python3 sniffer_lite_4.1.py perisareljic.name --dns

# Scan the first 1,000 ports with Subdomain & Endpoint Recon
python3 sniffer_lite_4.1.py perisareljic.name 1k --recon

# Deep Nmap scan saving TXT and JSON reports
python3 sniffer_lite_4.1.py perisareljic.name common --dns --nmap-deep --save report.txt --json report.json

# Compare current scan results against a previously saved JSON report
python3 sniffer_lite_4.1.py perisareljic.name 1k --recon --diff report.json

Source Code & Repository

The complete source code for Sniffer Lite v4.1 is hosted and maintained on my official GitHub account rather than embedded directly on this page, ensuring you always get the latest version and updates: