Skip to main content

The Unified Python Cybersecurity Framework (Recon -> Scan -> Report)

Project description

🛡️ 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cyprolib_pugazhmani-0.3.0.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cyprolib_pugazhmani-0.3.0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file cyprolib_pugazhmani-0.3.0.tar.gz.

File metadata

  • Download URL: cyprolib_pugazhmani-0.3.0.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for cyprolib_pugazhmani-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0e0730080140f04835da4e91d5ab446751ee5326bc3ff273a59fe0ccc1d42f7b
MD5 42f3b18fa5fee0c358d570575d5ca1aa
BLAKE2b-256 e1ef45259f75ec6fd40976889342c6887d9c92fe4c79b9506ae589aaeba11b87

See more details on using hashes here.

File details

Details for the file cyprolib_pugazhmani-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cyprolib_pugazhmani-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f854449d56c9a88fa0b7f12848479dca1b0a264a5f48e566e9e52e269f658be4
MD5 9551b745bca54b3124869c783183b163
BLAKE2b-256 ec2d90a97287d7f03ee5f18d4a9f4a148482f5811c91820f4e6c0fdecdc2b64c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page