Skip to main content

demon-cry-base

Базовый класс для OSINT-модулей demon-cry

Установка

pip install demon-cry-base

Использование

Модуль без конфига

Для простых Stateless-модулей можно использовать ModuleConfig напрямую:

from demon_cry_base import BaseModule, ModuleConfig


class PingModule(BaseModule):
    name = "ping"
    description = "Check if host is alive"
    category = "utility"

    async def execute(self, config: ModuleConfig, **kwargs) -> dict:
        return {"status": "ok"}

Создание модуля

from demon_cry_base import BaseModule, ModuleConfig


class MyModuleConfig(ModuleConfig):
    target: str
    timeout: int = 30


class MyModule(BaseModule):
    name = "my_module"
    description = "My OSINT module"
    category = "custom"
    config_model = MyModuleConfig

    async def execute(self, config: MyModuleConfig, **kwargs) -> dict:
        return {"result": f"Scanned {config.target}"}

Конфиги

ModuleConfig — это Pydantic-модель. Наследуйте её и добавляйте поля:

class ReconConfig(ModuleConfig):
    target: str
    deep: bool = False
    ports: list[int] = [80, 443]


class SocialConfig(ModuleConfig):
    username: str
    platforms: list[str] = ["twitter", "telegram"]

Затем укажите config_model в модуле:

class ReconModule(BaseModule):
    name = "recon"
    description = "Network reconnaissance"
    category = "osint"
    config_model = ReconConfig

    async def execute(self, config: ReconConfig, **kwargs) -> dict:
        if config.deep:
            ...

Download files

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

Source Distribution

demon_cry_base-0.2.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

demon_cry_base-0.2.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file demon_cry_base-0.2.0.tar.gz.

File metadata

  • Download URL: demon_cry_base-0.2.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for demon_cry_base-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7d9f92a048f324d299daed0f6ed81f204c5497ddfe81f5548b5caf552a1521e9
MD5 36d68c420c28f7084da43c6f0a5995ed
BLAKE2b-256 555965fb29f8b0cd5134874eae1a84a7646cc5633d08aa4d66602582f26e0066

See more details on using hashes here.

Provenance

The following attestation bundles were made for demon_cry_base-0.2.0.tar.gz:

Publisher: publish.yml on Mooncore-inc/demon-cry-base

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file demon_cry_base-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: demon_cry_base-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for demon_cry_base-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f232ed3eeadc9b18339e1d448ac9a9094930566f0c534f4d76e53dd76b13cbb
MD5 b85042e5a5a4e248b0abd7a45d6c0974
BLAKE2b-256 1965be621cab9fabce32cd4878f46ffe40d062aa470ad76f394bdd30979fc481

See more details on using hashes here.

Provenance

The following attestation bundles were made for demon_cry_base-0.2.0-py3-none-any.whl:

Publisher: publish.yml on Mooncore-inc/demon-cry-base

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.1

2 files

0.1.0

2 files

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