Skip to main content

🛡️ CyProLib: The Unified Python Cybersecurity Framework

PyPI Version Python License

CyProLib is a professional-grade cybersecurity framework designed for Red Teamers, Blue Teamers, and Python developers. It unifies Network Scanning, Web Vulnerability Analysis, Active Defense (IDS), and API Automation into a single, powerful library.


🚀 Features (v0.3.1)

🔴 Red Team (Offensive)

  • Port Scanner: Fast, multi-threaded network scanning.
  • Web Analyzer: Detects missing headers and information leaks.
  • Active Fuzzer: Tests for XSS and SQL Injection vulnerabilities.
  • AI Integration: Uses LLMs (Ollama) to explain vulnerabilities.

🔵 Blue Team (Defensive)

  • 🍯 Honeypot Trap: Deploys fake services (SSH, HTTP) to catch hackers.
  • 🛡️ Active Defense: Automatically blocks attacker IPs using the system firewall (UFW/Netsh).
  • 🔔 Real-Time Alerts: Sends instant notifications to Discord or Email.
  • 🧠 Threat Intel: Checks attacker IPs against AbuseIPDB automatically.

🌍 Automation & API

  • REST API: A built-in FastAPI server to control scans remotely.
  • Python Library: Import cyprolib into your own scripts.

📦 Installation

pip install cyprolib-Pugazhmani

⚙️ Configuration

To enable Alerts and Threat Intelligence, generate a configuration file: 1.Initialize Config:

cypro init

2. Edit Config:bash .env file : Paste your Discord Webhook URL or API keys into the generated .env file .

📖 Usage Guide

1.Network Scanning: Scan a target for open ports and identify services .

cypro scan 192.168.1.1 --ports 1-1000

Add --explain to get an AI breakdown of the results. 2. 🍯 Deploy a Honeypot (Trap) Start a fake SSH server to trap hackers. If they connect, CyProLib will log their password, alert you on Discord, and block their IP.

cypro trap --port 2222 --type ssh

3.🌍 Start the API Server Turn your terminal into a Web API

cypro serve

4. 🌐 Web Vulnerability Scan

cypro web [https://example.com](https://example.com)

🐍 For Developers (Python API)

You can use CyProLib inside your own Python projects:

from cyprolib.net.scanner import Scanner
from cyprolib.core.alert import AlertManager

# 1. Run a Scan
scanner = Scanner()
results = scanner.scan_target("192.168.1.1", ports=[80, 443])

# 2. Send an Alert
if results["open_ports"]:
    alerts = AlertManager()
    alerts.send_discord(f"Scan Finished! Found {len(results['open_ports'])} ports.")

⚠️ Disclaimer

CyProLib is for educational and authorized security testing purposes only.

  • Do not scan targets you do not own.

  • Do not use the Active Defense module on production servers without testing.

  • The developers are not responsible for misuse.

Maintained by Pugazhmani | GitHub Repository

Metadata

Release files for cyprolib-Pugazhmani 0.3.0

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

Source distribution (sdist)

Source distribution for cyprolib-Pugazhmani 0.3.0
File Size Uploaded Provenance Actions
cyprolib_pugazhmani-0.3.0.tar.gz 21.5 kB Without provenance Details for cyprolib_pugazhmani-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cyprolib-Pugazhmani 0.3.0
File Interpreter ABI Platform Actions
cyprolib_pugazhmani-0.3.0-py3-none-any.whl Python 3 none any Details for cyprolib_pugazhmani-0.3.0-py3-none-any.whl

Total release size: 46.9 kB

Release files / cyprolib_pugazhmani-0.3.0.tar.gz

Download URL cyprolib_pugazhmani-0.3.0.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0e0730080140f04835da4e91d5ab446751ee5326bc3ff273a59fe0ccc1d42f7b
BLAKE2b-256 checksum
How to use checksums
e1ef45259f75ec6fd40976889342c6887d9c92fe4c79b9506ae589aaeba11b87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / cyprolib_pugazhmani-0.3.0-py3-none-any.whl

Download URL cyprolib_pugazhmani-0.3.0-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f854449d56c9a88fa0b7f12848479dca1b0a264a5f48e566e9e52e269f658be4
BLAKE2b-256 checksum
How to use checksums
ec2d90a97287d7f03ee5f18d4a9f4a148482f5811c91820f4e6c0fdecdc2b64c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for cyprolib-Pugazhmani 0.3.0

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