Agent KB_hermes lazyown - grisuno/LazyOwn GitHub Wiki

Subsystem: hermes-lazyown

skills/hermes-lazyown/init.py

  • Doc: Hermes-LazyOwn integration package.
  • Layer: utility
  • Language: py

skills/hermes-lazyown/claudemd_rules.py

  • Doc: Dynamic Claude.md rule generator for the Hermes-LazyOwn integration.
  • Layer: business_logic
  • Language: py
  • Symbols:
    • RuleSetBuilder (class, line 14) class RuleSetBuilder
    • generate_rules (function, line 185) def generate_rules(phase, rhost, services, creds_found, is_hermes)
    • __init__ (method, line 24) def __init__(self)
    • with_phase (method, line 31) def with_phase(self, phase)
    • with_target (method, line 36) def with_target(self, rhost)
    • with_services (method, line 41) def with_services(self, services)
    • with_creds (method, line 46) def with_creds(self, found)
    • with_hermes (method, line 51) def with_hermes(self, is_hermes)
    • build (method, line 56) def build(self)
    • _base_rules (method, line 70) def _base_rules(self)
    • _phase_rules (method, line 82) def _phase_rules(self)
    • _service_rules (method, line 138) def _service_rules(self)
    • _credential_rules (method, line 157) def _credential_rules(self)
    • _hermes_rules (method, line 170) def _hermes_rules(self)
  • Depends on: skills/hermes-lazyown/constants.py
  • Imported by: skills/hermes-lazyown/mcp_server.py

skills/hermes-lazyown/config_bridge.py

  • Doc: Configuration bridge: unifies LazyOwn payload.json, environment variables, and fallback defaults...
  • Layer: infrastructure
  • Language: py
  • Symbols:
    • ConfigBridgeError (class, line 17) class ConfigBridgeError(Exception)
    • ConfigBridge (class, line 23) class ConfigBridge
    • __init__ (method, line 35) def __init__(self, payload_path)
    • get (method, line 42) def get(self, key, default)
    • get_required (method, line 46) def get_required(self, key)
    • get_str (method, line 53) def get_str(self, key, default)
    • get_int (method, line 58) def get_int(self, key, default)
    • get_bool (method, line 66) def get_bool(self, key, default)
    • refresh (method, line 75) def refresh(self)
    • active_target (method, line 80) def active_target(self)
    • attacker_context (method, line 90) def attacker_context(self)
    • is_hermes_session (method, line 99) def is_hermes_session(self)
    • _resolve (method, line 105) def _resolve(self, key, default)
    • _from_env (method, line 117) def _from_env(self, key)
    • _from_payload (method, line 134) def _from_payload(self, key)
    • _load_payload (method, line 139) def _load_payload(self)
  • Depends on: skills/hermes-lazyown/constants.py
  • Imported by: skills/hermes-lazyown/mcp_server.py

skills/hermes-lazyown/constants.py

skills/hermes-lazyown/executor.py

  • Doc: LazyOwn command executor for the Hermes-LazyOwn integration.
  • Layer: utility
  • Language: py
  • Symbols:
    • ExecutionResult (class, line 21) class ExecutionResult
    • LazyOwnExecutor (class, line 58) class LazyOwnExecutor
    • __init__ (method, line 24) def __init__(self, stdout, stderr, returncode, timed_out, duration_ms)
    • combined (method, line 39) def combined(self)
    • success (method, line 47) def success(self)
    • __str__ (method, line 51) def __str__(self)
    • __init__ (method, line 66) def __init__(self, lazyown_dir, timeout)
    • execute (method, line 77) def execute(self, command, timeout)
    • execute_batch (method, line 98) def execute_batch(self, commands, timeout)
    • _run_via_subprocess (method, line 114) def _run_via_subprocess(self, command, timeout)
    • _run_without_pty (method, line 149) def _run_without_pty(self, argv, command, timeout, env)
    • _run_with_pty (method, line 177) def _run_with_pty(self, argv, command, timeout, env)
    • _has_pty (method, line 229) def _has_pty(self)
  • Depends on: skills/hermes-lazyown/constants.py
  • Imported by: skills/hermes-lazyown/mcp_server.py

skills/hermes-lazyown/hermes_sync.py

  • Doc: Hermes-native synchronization layer.
  • Layer: utility
  • Language: py
  • Symbols:
    • HermesSyncError (class, line 21) class HermesSyncError(Exception)
    • CheckpointSerializer (class, line 27) class CheckpointSerializer
    • ObjectiveTodoSync (class, line 73) class ObjectiveTodoSync
    • DelegationPlanner (class, line 145) class DelegationPlanner
    • __init__ (method, line 33) def __init__(self, sessions_dir)
    • write (method, line 37) def write(self, state)
    • read (method, line 49) def read(self)
    • clear (method, line 64) def clear(self)
    • __init__ (method, line 82) def __init__(self, objectives_path)
    • pending_objectives (method, line 85) def pending_objectives(self)
    • mark_done (method, line 106) def mark_done(self, objective_text)
    • inject_objective (method, line 127) def inject_objective(self, text, priority, notes)
    • plan_for_service (method, line 154) def plan_for_service(self, service, port, rhost)
    • plan_for_credential (method, line 233) def plan_for_credential(self, cred_type, value, rhost)
  • Depends on: skills/hermes-lazyown/constants.py
  • Imported by: skills/hermes-lazyown/mcp_server.py

skills/hermes-lazyown/mcp_server.py

  • Doc: Hermes-native MCP server for LazyOwn.
  • Layer: utility
  • Language: py
  • Symbols:
    • _get_config (function, line 45) def _get_config()
    • _get_compactor (function, line 52) def _get_compactor()
    • _get_executor (function, line 60) def _get_executor()
    • _get_checkpoint_serializer (function, line 68) def _get_checkpoint_serializer()
    • _get_objective_sync (function, line 75) def _get_objective_sync()
    • _get_delegation_planner (function, line 82) def _get_delegation_planner()
    • _compact (function, line 92) def _compact(result, phase, tool_name)
    • _try_import_lazyown_module (function, line 101) def _try_import_lazyown_module(module_name)
    • _desc (function, line 120) def _desc(base)
    • list_tools (function, line 329) def list_tools()
    • call_tool (function, line 334) def call_tool(name, arguments)
    • _handle_tool (function, line 346) def _handle_tool(name, arguments)
    • _core_session_init (function, line 395) def _core_session_init(arguments)
    • _core_set_config (function, line 441) def _core_set_config(arguments)
    • _core_run_command (function, line 464) def _core_run_command(arguments)
    • _core_command_help (function, line 480) def _core_command_help(arguments)
    • _intel_facts_show (function, line 512) def _intel_facts_show(arguments)
    • _intel_recommend_next (function, line 546) def _intel_recommend_next()
    • _intel_searchsploit (function, line 562) def _intel_searchsploit(arguments)
    • _auto_loop (function, line 591) def _auto_loop(arguments)
    • _auto_inject_objective (function, line 611) def _auto_inject_objective(arguments)
    • _hermes_checkpoint_write (function, line 638) def _hermes_checkpoint_write(arguments)
    • _hermes_checkpoint_read (function, line 648) def _hermes_checkpoint_read()
    • _hermes_rules_generate (function, line 659) def _hermes_rules_generate(arguments)
    • _hermes_delegate_plan (function, line 677) def _hermes_delegate_plan(arguments)
    • _c2_status (function, line 706) def _c2_status()
    • _c2_get_beacons (function, line 727) def _c2_get_beacons()
    • main (function, line 751) def main()
  • Depends on: modules/backdoor/server.c, skills/hermes-lazyown/claudemd_rules.py, skills/hermes-lazyown/config_bridge.py, skills/hermes-lazyown/constants.py, skills/hermes-lazyown/executor.py, skills/hermes-lazyown/hermes_sync.py, skills/hermes-lazyown/output_compactor.py

skills/hermes-lazyown/output_compactor.py

  • Doc: Phase-aware output compaction for the Hermes-LazyOwn integration.
  • Layer: utility
  • Language: py
  • Symbols:
    • CompactionResult (class, line 17) class CompactionResult
    • CompactionStrategy (class, line 36) class CompactionStrategy(ABC)
    • ReconCompaction (class, line 45) class ReconCompaction(CompactionStrategy)
    • EnumCompaction (class, line 80) class EnumCompaction(CompactionStrategy)
    • ExploitCompaction (class, line 111) class ExploitCompaction(CompactionStrategy)
    • PrivescCompaction (class, line 140) class PrivescCompaction(CompactionStrategy)
    • DefaultCompaction (class, line 162) class DefaultCompaction(CompactionStrategy)
    • OutputCompactor (class, line 179) class OutputCompactor
    • __init__ (method, line 20) def __init__(self, compacted, original_lines, compacted_lines)
    • reduction_ratio (method, line 26) def reduction_ratio(self)
    • __str__ (method, line 32) def __str__(self)
    • compact (method, line 40) def compact(self, raw_output, tool_name)
    • compact (method, line 55) def compact(self, raw_output, tool_name)
    • compact (method, line 93) def compact(self, raw_output, tool_name)
    • compact (method, line 124) def compact(self, raw_output, tool_name)
    • compact (method, line 151) def compact(self, raw_output, tool_name)
    • __init__ (method, line 165) def __init__(self, max_lines)
    • compact (method, line 168) def compact(self, raw_output, tool_name)
    • __init__ (method, line 196) def __init__(self, default_max_lines)
    • compact (method, line 200) def compact(self, raw_output, phase, tool_name)
  • Depends on: skills/hermes-lazyown/constants.py
  • Imported by: skills/hermes-lazyown/mcp_server.py