Skip to main content

S2N — Plugin-based Web Vulnerability Scanner

PyPI Version PyPI Downloads Monthly Downloads Docker Pulls License: MIT

stateDiagram-v2

state "<pre><code>
  .-')                 .-') _  
 ( OO ).              ( OO ) ) 
(_)---\_) .-----. ,--./ ,--,'  
/    _ | / ,-.   \|   \ |  |\  
\  :` `. '-'  |  ||    \|  | ) 
 '..`''.)   .'  / |  .     |/  
.-._)   \ .'  /__ |  |\    |   
\       /|       ||  | \   |   
 `-----' `-------'`--'  `--'   
</pre></code>" as logo

style logo color: #FFF, fill:#0022FF

A lightweight, plugin-driven web vulnerability scanner library. Core data types and interfaces are defined in s2n.s2nscanner.interfaces. More detailed type Documentation is available in interfaces.en.md.



Quick install

CLI Usage

Execute a scan from the command line:

s2n scan \
  --url http://target.com \
  --all \
  --auth auto \
  --username admin \
  --password pass \
  --output-format html \
  --output results.html

Common options:

  • -u, --url: Target URL to scan (Required)
  • -p, --plugin: Select specific plugins (multiple allowed)
  • --all: Run all default plugins
  • -a, --auth: Authentication type (NONE, BASIC, BEARER, AUTO, etc.)
  • --login-url: Login page URL for automatic authentication
  • -o, --output: Save results to a file
  • --output-format: Output format (JSON, HTML, CSV, CONSOLE, MULTI)
  • --crawler-depth: Set crawling depth (Default: 2)
  • -v, --verbose: Enable detailed logging

Chrome Extension Usage (GUI)

S2N provides a user-friendly scanning experience via a Chrome Extension alongside the CLI. Follow these steps to link the extension with your local S2N host.

  1. Install Extension: Install the S2N Scanner extension from the Chrome Web Store or via Developer Mode.
  2. Link Host: Run the following command in your terminal to install the Native Messaging Host. This establishes communication between your browser and the local scanner. (It will automatically link to the official default Extension ID)
    s2n install-gui
    
  3. Restart your browser and click the extension icon to start scanning.

Python usage

from s2n import Scanner, ScanConfig, PluginConfig, AuthConfig
from s2n.interfaces import Severity, AuthType

# Create ScanConfig
config = ScanConfig(
    target_url="http://target.com",
    scanner_config=ScannerConfig(crawl_depth=3),
    plugin_configs={
        "sql": PluginConfig(
            enabled=True,
            max_payloads=50
        )
    },
    auth_config=AuthConfig(
        auth_type=AuthType.BASIC,
        username="admin",
        password="pass"
    )
)

# Execute Scan with ScanConfig parameter
scanner = Scanner(config)
report = scanner.scan()

# 결과 처리
print(f"[RESULT]: {report.summary.total_vulnerabilities}개")
for result in report.plugin_results:
    for finding in result.findings:
        if finding.severity in [Severity.CRITICAL, Severity.HIGH]:
            print(f"[{finding.severity}] {finding.title}")

Key type references

Documentation

  • Data type reference: interfaces.en.md
  • Source: interfaces.py

Core types and data models:

  • s2n.s2nscanner.interfaces.ScanConfig
  • s2n.s2nscanner.interfaces.PluginConfig
  • s2n.s2nscanner.interfaces.ScannerConfig

Results & reporting:

  • s2n.s2nscanner.interfaces.ScanReport
  • s2n.s2nscanner.interfaces.Finding

Enums:

  • s2n.s2nscanner.interfaces.Severity
  • s2n.s2nscanner.interfaces.PluginStatus

Features

  • Plugin-based Architecture: Modular vulnerability checks for easy expansion.
  • Advanced Crawling & Discovery: Universal login support and automatic attack point detection.
  • Supported Plugins: SQL Injection, XSS, CSRF, JWT, OS Command Injection, File Upload, Brute Force, etc.
  • Multiple UI Clients: Powerful CLI and Chrome Extension GUI for various workflows.
  • Rich Reporting: Structured data models with support for JSON, HTML, CSV, and Console outputs.
  • Cross-Platform Support: Optimized detection patterns for Windows, Linux, and macOS environments.
  • Automated Testing: Integrated CI/CD support for security regression testing.

LICENSE


Contributing

Follow the project coding style and add tests for new features.
Update type docs in interfaces.en.md when interfaces change.


Metadata

Release files for s2n 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for s2n 0.3.2
File Size Uploaded Provenance
s2n-0.3.2.tar.gz 145.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for s2n 0.3.2
File Interpreter ABI Platform
s2n-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 338.3 kB

Release files / s2n-0.3.2.tar.gz

Download URL s2n-0.3.2.tar.gz
Size 145.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cf512434cd58eabac62a57b27a660095f0491ed598fe5e783632c78a4951b898
BLAKE2b-256 checksum
How to use checksums
77e556331416c194e5d42e7ebf84b50496475c4f03e406fa52aed36d4e6fe362
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / s2n-0.3.2-py3-none-any.whl

Download URL s2n-0.3.2-py3-none-any.whl
Size 192.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
091a2e8ffc33c232629502072672e20c00d71872d5db50fbbcb16f725b64d1b1
BLAKE2b-256 checksum
How to use checksums
2ac691e4d13a4c20d1236d0566c90a1ed5c94fe4699b1190411948e71821bfec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for s2n 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page