Skip to content

Agent API_p10

grisun0 edited this page Oct 19, 2026 · 25 revisions

API (page 10 of 23)

Previous: API_p9.md

modules/backdoor/keylogger.h

Imported by: modules/backdoor/backdoor.c

modules/backdoor/server.c

Imported by: cli/commands/dns_exfil.py, cli/commands/phishing_wizard.py, contrib/legacy/lazygalazy.py, contrib/legacy/lazyhttpreverseshell.py, lazyc2.py, modules/lazy_proxy.py, modules/lazyown_bprfuzzer.py, skills/hermes-lazyown/mcp_server.py, skills/lazyown_mcp.py, skills/lazyown_mcp_opencode.py, tests/test_lazy_proxy.py, utils.py

modules/beacon_config_builder.py

Depends on: core/config.py, core/logging.py, modules/c2_profile_engine.py, modules/sleep_obfuscation.py, modules/socks_proxy.py Imported by: cli/commands/bof_registry.py, tests/test_beacon_config_builder.py

modules/beacon_history.py

Depends on: core/logging.py Imported by: lazyc2.py, lazyc2/blueprints/api_v1.py, tests/test_api_v1.py, tests/test_beacon_history.py, tests/test_security_lazyc2.py

  • BeaconHistoryConfig.sessions_dir (method) modules/beacon_history.py:39 def sessions_dir(self) -- Return the resolved sessions directory under the base dir.
  • BeaconHistoryConfig.records_path (method) modules/beacon_history.py:43 def records_path(self, client_id) -- Resolve the history file path for a sanitised beacon client id.
  • sanitize_client_id (function) modules/beacon_history.py:70 def sanitize_client_id(client_id) -- Sanitise a beacon id to only URL/file-safe characters.
  • append_record (function) modules/beacon_history.py:82 def append_record(record, config) -- Append one beacon result record to the persistent JSONL history.
  • read_records (function) modules/beacon_history.py:116 def read_records(client_id, config) -- Read the ordered JSONL history for a beacon client id (oldest first).
  • records_path (function) modules/beacon_history.py:145 def records_path(client_id, config) -- Resolve the history file path for a beacon client id.

modules/bin2img.py

modules/bitm_engine.py

Imported by: cli/commands/bitm.py

  • bitm_start (function) modules/bitm_engine.py:257 def bitm_start(target_ip, gateway_ip, interface, lhost, lport, method, payloads) -- Start a Browser-in-the-Middle attack.
  • bitm_stop (function) modules/bitm_engine.py:481 def bitm_stop() -- Stop a running BitM attack and clean up iptables.
  • bitm_status (function) modules/bitm_engine.py:539 def bitm_status() -- Return the current BitM attack status.
  • bitm_inject (function) modules/bitm_engine.py:572 def bitm_inject(payload_name) -- Inject an additional JS payload into an active BitM session.
  • bitm_harvest_stats (function) modules/bitm_engine.py:607 def bitm_harvest_stats() -- Return statistics on harvested credentials from the active/past campaign.
  • bitm_cleanup (function) modules/bitm_engine.py:642 def bitm_cleanup() -- Force-kill all BitM processes and remove the state file.
  • main (function) modules/bitm_engine.py:661 def main() -- CLI entry point — display BitM status from command line.

modules/bof_registry.py

Depends on: cli/commands/enum.py, core/logging.py Imported by: cli/commands/bof_registry.py, tests/test_bof_registry.py

modules/c2_agent.py

Depends on: core/logging.py, lazyc2/security/services.py, modules/atomic_exploit_bridge.py Imported by: cli/commands/c2_session.py

  • client_id_for (function) modules/c2_agent.py:85 def client_id_for(target) -- Derive a stable, file-safe client id from a target IP.
  • validate_client_id (function) modules/c2_agent.py:91 def validate_client_id(raw) -- Validate a client id (alphanumerics, dash, underscore).
  • build_agent (function) modules/c2_agent.py:354 def build_agent(c2_url, client_id, aes_hex, route, sleep) -- Render the agent script for a target (pure function, no I/O).
  • read_aes_hex (function) modules/c2_agent.py:441 def read_aes_hex() -- Read the live C2 AES key hex (snapshotted, never generated).
  • deploy (function) modules/c2_agent.py:446 def deploy(target, c2_base, route, lhost, sleep) -- Deliver + launch the agent on target via a working shell primitive.
  • read_records (function) modules/c2_agent.py:517 def read_records(client_id, limit) -- Read the latest beacon records for a client (newest last).
  • wait_record (function) modules/c2_agent.py:534 def wait_record(client_id, command, since, timeout) -- Wait for a fresh record matching command (polls the JSONL log).
  • C2Server.__init__ (method) modules/c2_agent.py:551 def __init__(self, port, user, password)
  • C2Server.status (method) modules/c2_agent.py:568 def status(self) -- Report server liveness and listener reachability.
  • C2Server.start (method) modules/c2_agent.py:600 def start(self) -- Start lazyc2 headless (no-op when already running).
  • C2Server.stop (method) modules/c2_agent.py:631 def stop(self) -- Stop the headless server (SIGTERM, best-effort).
  • C2Server.ensure_http_listener (method) modules/c2_agent.py:654 def ensure_http_listener(self, http_port, auth) -- Add + start a plaintext lab listener via the C2 API (py2 agents lack TLS).

modules/c2_builder.py

Depends on: core/validators.py, modules/metrics.py, utils.py Imported by: cli/commands/command_and_control_migrated.py, tests/test_bdd_infra_range_report.py, tests/test_infra_disposable.py

  • C2Builder.__init__ (method) modules/c2_builder.py:395 def __init__(self, params, sessions_dir, cmd_fn, onecmd_fn, toastr_fn, c2_user, c2_pass)
  • C2Builder.run (method) modules/c2_builder.py:453 def run(self, line, choice, use_tunnel) -- Execute the full C2 build pipeline.

modules/c2_messaging_base.py

  • SecureSessionManager.__init__ (method) modules/c2_messaging_base.py:22 def __init__(self, max_failed_attempts, lockout_duration, rate_limit, session_timeout)
  • SecureSessionManager.register_failed_attempt (method) modules/c2_messaging_base.py:37 def register_failed_attempt(self, user_id) -- Record a failed authentication attempt for a user.
  • SecureSessionManager.check_lockout (method) modules/c2_messaging_base.py:46 def check_lockout(self, user_id) -- Check if a user is currently locked out due to failed attempts.
  • SecureSessionManager.check_rate_limit (method) modules/c2_messaging_base.py:61 def check_rate_limit(self, user_id) -- Check if a user has exceeded the command rate limit.
  • SecureSessionManager.create_session (method) modules/c2_messaging_base.py:79 def create_session(self, user_id, client_id) -- Create a new authenticated session for a user.
  • SecureSessionManager.validate_session (method) modules/c2_messaging_base.py:89 def validate_session(self, user_id) -- Check if a user session is still valid and refresh activity timestamp.
  • SecureSessionManager.set_client (method) modules/c2_messaging_base.py:106 def set_client(self, user_id, client_id) -- Assign a target C2 client to a user session.
  • SecureSessionManager.get_client (method) modules/c2_messaging_base.py:111 def get_client(self, user_id) -- Get the target C2 client assigned to a user session.
  • PayloadConfigAdapter.__init__ (method) modules/c2_messaging_base.py:124 def __init__(self, config_dict)
  • PayloadConfigAdapter.get (method) modules/c2_messaging_base.py:132 def get(self, key, default)

modules/c2_profile.py

Depends on: core/logging.py

  • C2Profile.jitter_delay (method) modules/c2_profile.py:101 def jitter_delay(self) -- Return the next sleep delay as a float in seconds.
  • C2Profile.get_uri (method) modules/c2_profile.py:117 def get_uri(self, method) -- Pick a random URI path from the appropriate HttpConfig.
  • C2Profile.build_headers (method) modules/c2_profile.py:128 def build_headers(self, method) -- Return the headers dict for the given HTTP method.
  • ProfileValidator.validate (method) modules/c2_profile.py:162 def validate(self, profile)
  • ProfileLoader.from_yaml (method) modules/c2_profile.py:200 def from_yaml(path) -- Load a C2Profile from a YAML file at path.
  • ProfileLoader.from_dict (method) modules/c2_profile.py:215 def from_dict(d) -- Construct a C2Profile from a plain Python dictionary.
  • ProfileLoader.to_dict (method) modules/c2_profile.py:254 def to_dict(profile) -- Convert a C2Profile to a plain Python dictionary.
  • ProfileLoader.save (method) modules/c2_profile.py:282 def save(profile, path) -- Serialise profile to a YAML file and return the written path.
  • ProfileRegistry.__init__ (method) modules/c2_profile.py:457 def __init__(self)
  • ProfileRegistry.register (method) modules/c2_profile.py:464 def register(self, name, profile) -- Register profile under name, overwriting any previous entry.
  • ProfileRegistry.get (method) modules/c2_profile.py:473 def get(self, name) -- Return the profile registered under name.
  • ProfileRegistry.list_names (method) modules/c2_profile.py:485 def list_names(self) -- Return a sorted list of all registered profile names.
  • ProfileRegistry.load_from_directory (method) modules/c2_profile.py:493 def load_from_directory(self, path) -- Scan path for *.yaml files and register each as a profile.
  • ProfileApplier.apply_to_response (method) modules/c2_profile.py:529 def apply_to_response(profile, response) -- Patch the headers of a Flask response object to match the profile.
  • ProfileApplier.apply_to_session (method) modules/c2_profile.py:554 def apply_to_session(profile, session) -- Configure a requests.Session to mimic the profile's HTTP GET behavior.
  • ProfileApplier.get_beacon_config (method) modules/c2_profile.py:567 def get_beacon_config(profile) -- Return a JSON-serialisable dict suitable for embedding in a beacon handshake response.
  • get_registry (function) modules/c2_profile.py:595 def get_registry() -- Return the module-level singleton ProfileRegistry.
  • get_profile (function) modules/c2_profile.py:620 def get_profile(name) -- Return the named profile from the module singleton registry.
  • list_profiles (function) modules/c2_profile.py:625 def list_profiles() -- Return a sorted list of all registered profile names.

modules/c2_profile_engine.py

Depends on: cli/commands/enum.py, core/config.py, core/logging.py Imported by: cli/commands/c2_profile.py, modules/beacon_config_builder.py, tests/test_c2_profile_engine.py

modules/c2_surfaces.py

Depends on: core/logging.py, skills/lazyown_mcp_helpers.py Imported by: cli/commands/c2_session.py, lazyc2.py, modules/atomic_exploit_bridge.py, modules/sinks/c2_surfaces.py, tests/test_c2_surfaces.py

  • publish_banner (function) modules/c2_surfaces.py:73 def publish_banner(hostname, port, protocol, service, extra, sessions_dir) -- Append a service banner to sessions/banners.json (deduplicated).
  • publish_cve (function) modules/c2_surfaces.py:115 def publish_cve(title, description, operator, risk, sessions_dir) -- Append a CVE finding to sessions/cves.json (deduplicated by title).
  • append_note (function) modules/c2_surfaces.py:155 def append_note(line, sessions_dir) -- Append one timestamped line to sessions/notes.txt (never overwrites).
  • register_loot_event (function) modules/c2_surfaces.py:184 def register_loot_event(name, path_glob, description, event_config) -- Register an event_config.json rule watching an artefact glob.
  • refresh_session_report (function) modules/c2_surfaces.py:229 def refresh_session_report(timeout) -- Regenerate sessions/sessionLazyOwn.json via modules/session_state.py.
  • severity_to_risk (function) modules/c2_surfaces.py:251 def severity_to_risk(severity) -- Map exploit severity words to /cves risk levels.
  • group_tasks_for_display (function) modules/c2_surfaces.py:261 def group_tasks_for_display(tasks) -- Group tasks for the /tasks page: unique hits with counts + noise tally.

modules/cal.sh

  • is_leap_year (function) modules/cal.sh:4 -- Función para calcular si un año es bisiesto
  • days_in_month (function) modules/cal.sh:14 -- Función para obtener el número de días en un mes
  • first_day_of_month (function) modules/cal.sh:31 -- Función para obtener el día de la semana del primer día del mes

modules/chain_registry.py

Depends on: core/logging.py Imported by: cli/apt_chain_support.py, cli/commands/command_and_control_migrated.py, cli/commands/exploit_migrated.py, cli/orchestrator_assets_tabs.py, modules/chain_runner.py, modules/chain_synth.py, modules/metasploitable_gym.py, skills/lazyown_mcp.py, tests/test_apt_chain_admin.py, tests/test_apt_chain_integration.py, tests/test_chain_registry.py, tests/test_chain_runner.py, tests/test_chain_v24_core.py, tests/test_metasploitable_gym.py

  • ChainStep.identifier (method) modules/chain_registry.py:82 def identifier(self) -- Return the declared id or a stable generated one.
  • Chain.resolve (method) modules/chain_registry.py:104 def resolve(self, tokens) -- Substitute tokens, evaluate conditions and guards.
  • evaluate_when (function) modules/chain_registry.py:215 def evaluate_when(expression, variables) -- Evaluate a safe when expression against string variables.
  • validate_chain (function) modules/chain_registry.py:280 def validate_chain(data, filename, chains_dir) -- Validate raw YAML data against the chain schema.
  • render_text_token_braces (function) modules/chain_registry.py:403 def render_text_token_braces(text) -- Return text with every {name} token replaced by a placeholder.
  • load_all (function) modules/chain_registry.py:408 def load_all(chains_dir) -- Load every valid, enabled chain file (skips the rest loudly).
  • get (function) modules/chain_registry.py:520 def get(name, chains_dir) -- Return one chain by name, or None.
  • scan_all (function) modules/chain_registry.py:525 def scan_all(chains_dir) -- List every chain file including disabled ones (for administration).
  • set_enabled (function) modules/chain_registry.py:584 def set_enabled(name, enabled, chains_dir) -- Flip a chain's enabled flag in its YAML file (round-trip).
  • generate_for_playbook (function) modules/chain_registry.py:607 def generate_for_playbook(engine_key, apt_display, description, chains_dir, overwrite) -- Write a per-APT chain file inheriting the base APT chain.

modules/chain_runner.py

Depends on: core/safe_exec.py, modules/chain_registry.py, modules/chain_state.py Imported by: cli/apt_chain_support.py, cli/commands/command_and_control_migrated.py, tests/test_chain_runner.py, tests/test_chain_v24_core.py

  • StepOutcome.ok (method) modules/chain_runner.py:60 def ok(self) -- Return True for success, dry-run and skipped steps.
  • StepOutcome.to_dict (method) modules/chain_runner.py:64 def to_dict(self) -- Return a JSON-serializable view.
  • ChainRunResult.to_dict (method) modules/chain_runner.py:100 def to_dict(self) -- Return a JSON-serializable view.
  • ReplanContext.set_var (method) modules/chain_runner.py:138 def set_var(self, name, value) -- Record a variable the next steps should see.
  • ReplanContext.insert_step (method) modules/chain_runner.py:143 def insert_step(self, step) -- Record one step to execute right after the finished step.
  • ReplanContext.skip_rest (method) modules/chain_runner.py:148 def skip_rest(self) -- Record that remaining steps must not execute.
  • ReplanContext.applied_vars (method) modules/chain_runner.py:153 def applied_vars(self) -- Return recorded variable changes.
  • ReplanContext.inserted (method) modules/chain_runner.py:158 def inserted(self) -- Return recorded steps to insert.
  • ReplanContext.skip_rest_flag (method) modules/chain_runner.py:163 def skip_rest_flag(self) -- Return True when remaining steps should be skipped.
  • render_text (function) modules/chain_runner.py:168 def render_text(template, variables) -- Substitute single-brace tokens in one pass.
  • ChainRunner.__init__ (method) modules/chain_runner.py:179 def __init__(self, chain, tokens, shell, executor, default_timeout, dry_run, on_step, retry_backoff, total_timeout... -- Bind the chain, the execution primitive and operator switches.
  • ChainRunner.run (method) modules/chain_runner.py:215 def run(self) -- Execute the chain in order and return every step outcome.

modules/chain_state.py

Imported by: cli/apt_chain_support.py, cli/commands/command_and_control_migrated.py, modules/chain_runner.py, tests/test_apt_chain_admin.py, tests/test_chain_v24_core.py

  • checkpoint_dir (function) modules/chain_state.py:26 def checkpoint_dir(base_dir) -- Return the directory that stores chain checkpoints.
  • new_run_id (function) modules/chain_state.py:33 def new_run_id(chain_name) -- Return a collision-resistant run id for one chain execution.
  • write_checkpoint (function) modules/chain_state.py:39 def write_checkpoint(directory, state) -- Persist one chain run state as JSON and return the file path.
  • load_checkpoint (function) modules/chain_state.py:65 def load_checkpoint(directory, run_id) -- Load one checkpoint by run id, or None when missing/unreadable.
  • list_checkpoints (function) modules/chain_state.py:80 def list_checkpoints(directory, limit) -- Return the newest checkpoints (run_id, chain, target, state, times).

modules/chain_synth.py

Depends on: modules/chain_registry.py, skills/lazyown_facts.py Imported by: cli/apt_chain_support.py, tests/test_chain_synth.py

  • synth_chain_data (function) modules/chain_synth.py:89 def synth_chain_data(playbook, target, services, has_creds, os_hint, include_c2) -- Compose the chain dict for a host; (data, notes).
  • facts_for_target (function) modules/chain_synth.py:224 def facts_for_target(target) -- Pull host facts from the FactStore for synthesis inputs.
  • write_generated_chain (function) modules/chain_synth.py:253 def write_generated_chain(data, chains_dir) -- Validate and persist the generated chain file; returns (path, errors).

modules/chain_tokens.py

Depends on: skills/lazyown_facts.py Imported by: cli/commands/command_and_control_migrated.py, tests/test_apt_chain_admin.py

modules/cicd_enumerator.py

Imported by: cli/commands/cicd.py

modules/cli_auth.py

Depends on: cli/engagement_hooks.py, core/config.py, modules/lazy_rbac.py Imported by: cli/auto_crypto.py, cli/banner_config.py, cli/commands/cli_auth.py, cli/engagement_hooks.py, cli/tips_engine.py, cli/wizard.py, lazyown.py, modules/redteam_gym.py, modules/world_model.py, tests/test_cli_auth_remember.py, tests/test_engagement_elo_and_methodology.py

  • user_exists (function) modules/cli_auth.py:122 def user_exists(username) -- Check if a username already exists in users.json or RBAC store.
  • register (function) modules/cli_auth.py:145 def register(username, password) -- Register a new operator in users.json.
  • verify_password (function) modules/cli_auth.py:214 def verify_password(username, password) -- Verify a username/password against users.json using werkzeug.
  • login (function) modules/cli_auth.py:240 def login(username, password, remember) -- Authenticate a CLI operator and optionally persist a remember-me token.
  • logout (function) modules/cli_auth.py:293 def logout() -- Log out the current CLI operator and clear the remember-me token.
  • try_auto_login (function) modules/cli_auth.py:328 def try_auto_login() -- Attempt auto-login using the remember-me token from payload.json.
  • whoami (function) modules/cli_auth.py:366 def whoami() -- Return the currently logged-in CLI operator's identity.
  • get_current_operator (function) modules/cli_auth.py:396 def get_current_operator() -- Return the current operator username, or None if not logged in.
  • sync_elo_from_session (function) modules/cli_auth.py:408 def sync_elo_from_session(elo) -- Update the CLI session ELO from engagement state.
  • needs_login (function) modules/cli_auth.py:487 def needs_login() -- Check if the current session has a logged-in operator.

modules/cloud_enum.py

Imported by: cli/commands/cloud.py

  • CloudEnumerator.__init__ (method) modules/cloud_enum.py:34 def __init__(self, provider, session, timeout)
  • CloudEnumerator.detect_provider (method) modules/cloud_enum.py:47 def detect_provider(self) -- Auto-detect which cloud provider the host is running on.
  • CloudEnumerator.enumerate_metadata (method) modules/cloud_enum.py:75 def enumerate_metadata(self) -- Enumerate cloud instance metadata (IMDS).
  • CloudEnumerator.enumerate_storage (method) modules/cloud_enum.py:251 def enumerate_storage(self, target_bucket) -- Enumerate cloud storage buckets and objects.
  • CloudEnumerator.enumerate_iam (method) modules/cloud_enum.py:372 def enumerate_iam(self) -- Enumerate IAM roles, users, and policies.
  • CloudEnumerator.full_enumeration (method) modules/cloud_enum.py:576 def full_enumeration(self) -- Run full cloud enumeration: metadata + storage + IAM.

modules/collab_bp.py

Depends on: core/logging.py, modules/lazy_rbac.py Imported by: cli/commands/collaboration.py, lazyc2.py, modules/engagement_hooks.py, modules/event_bus.py, skills/lazyown_mcp.py, tests/test_collab_and_onboarding.py, tests/test_core_modules.py

modules/colors.py

Imported by: contrib/legacy/lazygptcli.py, contrib/legacy/lazygptcli_unified.py, contrib/legacy/lazyproxy.py, contrib/legacy/lazyseo.py, lazyc2.py, modules/llm_prompts.py, static/js/xterm.js

modules/command_executor.py

Depends on: core/logging.py, core/safe_exec.py, modules/auto_registry.py, modules/event_bus.py Imported by: lazyown.py, modules/auto_registry.py, tests/test_executor_kernel.py, tests/test_lazy_runner.py

modules/compliance.py

Depends on: core/logging.py Imported by: lazyc2.py

  • EvidenceChain.__init__ (method) modules/compliance.py:357 def __init__(self, sessions_dir)
  • EvidenceChain.add_file (method) modules/compliance.py:383 def add_file(self, filepath, operator, description)
  • EvidenceChain.verify (method) modules/compliance.py:410 def verify(self)
  • EvidenceChain.get_chain_digest (method) modules/compliance.py:429 def get_chain_digest(self)
  • EvidenceChain.to_report (method) modules/compliance.py:432 def to_report(self)
  • export_pdf (function) modules/compliance.py:449 def export_pdf(report_md, output_path, title, classification) -- Export a Markdown report to PDF using fpdf2.
  • export_to_elastic_ndjson (function) modules/compliance.py:533 def export_to_elastic_ndjson(findings, output_path, index_prefix) -- Export findings as Elasticsearch NDJSON bulk format.
  • export_to_cef (function) modules/compliance.py:572 def export_to_cef(findings, output_path, vendor, product, version) -- Export findings in CEF (Common Event Format) for ArcSight/QRadar/Splunk.
  • ComplianceEngine.__init__ (method) modules/compliance.py:635 def __init__(self, sessions_dir)
  • ComplianceEngine.map_findings_to_compliance (method) modules/compliance.py:639 def map_findings_to_compliance(self, findings, frameworks) -- Map findings to compliance framework controls.
  • ComplianceEngine.generate_compliance_report (method) modules/compliance.py:710 def generate_compliance_report(self, findings, include_evidence_chain, include_siem_formats) -- Generate a full compliance report with evidence chain and optional SIEM export.
  • ComplianceEngine.export_pdf (method) modules/compliance.py:831 def export_pdf(self, report, output_path)
  • ComplianceEngine.add_evidence (method) modules/compliance.py:901 def add_evidence(self, filepath, operator, description)
  • ComplianceEngine.verify_evidence_chain (method) modules/compliance.py:904 def verify_evidence_chain(self)

modules/conditional_hooks.py

Depends on: core/logging.py, core/safe_exec.py, modules/credential_reuse.py, modules/state_manager.py Imported by: cli/commands/automation.py, lazyc2.py, lazyc2/blueprints/beacon.py, tests/test_conditional_hooks_extended.py

modules/config_store.py

Depends on: core/config.py, core/logging.py Imported by: tests/test_core_modules.py

modules/credential_reuse.py

Depends on: core/logging.py Imported by: cli/commands/automation.py, lazyc2.py, lazyc2/blueprints/beacon.py, modules/conditional_hooks.py

  • ReuseCandidate.to_dict (method) modules/credential_reuse.py:43 def to_dict(self)
  • CredentialReuseEngine.__init__ (method) modules/credential_reuse.py:80 def __init__(self)
  • CredentialReuseEngine.mark_failed (method) modules/credential_reuse.py:107 def mark_failed(self, username, password, host) -- Record that a credential did NOT work against a host.
  • CredentialReuseEngine.mark_confirmed (method) modules/credential_reuse.py:112 def mark_confirmed(self, username, password, host) -- Record that a credential worked against a host.
  • CredentialReuseEngine.rank (method) modules/credential_reuse.py:226 def rank(self, hosts, creds, host_services, limit) -- Score all (cred, host) pairs and return top candidates.
  • CredentialReuseEngine.suggest_from_state_manager (method) modules/credential_reuse.py:278 def suggest_from_state_manager(self, state_manager, limit) -- Convenience: rank creds using hosts and creds from StateManager.
  • CredentialReuseEngine.suggest_from_world_model (method) modules/credential_reuse.py:308 def suggest_from_world_model(self, world_model, limit) -- Convenience: rank creds using hosts and creds from WorldModel.
  • CredentialReuseEngine.get_summary (method) modules/credential_reuse.py:338 def get_summary(self, candidates) -- Format candidates as a human-readable summary string.
  • get_credential_reuse_engine (function) modules/credential_reuse.py:358 def get_credential_reuse_engine() -- Return the singleton :class:CredentialReuseEngine.

modules/cross_cloud.py

Imported by: cli/commands/cloud_attacks.py

  • CrossCloudAttackEngine.__init__ (method) modules/cross_cloud.py:64 def __init__(self, config)
  • CrossCloudAttackEngine.azure_saml_to_aws (method) modules/cross_cloud.py:67 def azure_saml_to_aws(self) -- Abuse Azure AD SAML federation to gain AWS access.
  • CrossCloudAttackEngine.gcp_oidc_to_azure (method) modules/cross_cloud.py:104 def gcp_oidc_to_azure(self) -- Abuse GCP OIDC federation to gain Azure access.
  • CrossCloudAttackEngine.aws_oidc_to_gcp (method) modules/cross_cloud.py:133 def aws_oidc_to_gcp(self) -- Abuse AWS OIDC federation to gain GCP access.
  • CrossCloudAttackEngine.multi_cloud_imds_harvesting (method) modules/cross_cloud.py:167 def multi_cloud_imds_harvesting(self) -- Harvest metadata from all cloud providers simultaneously.
  • CrossCloudAttackEngine.entra_id_to_gcp_workforce_federation (method) modules/cross_cloud.py:204 def entra_id_to_gcp_workforce_federation(self) -- Exploit Entra ID to GCP workforce identity federation.
  • CrossCloudAttackEngine.detect_cross_cloud_federation (method) modules/cross_cloud.py:234 def detect_cross_cloud_federation(self) -- Detect cross-cloud federation configurations for attack surface mapping.
  • CrossCloudAttackEngine.summary (method) modules/cross_cloud.py:258 def summary(self)

modules/custom_tools.py

Depends on: modules/auto_registry.py, modules/lazy_loop.py, modules/notify.py Imported by: cli/commands/lazyops.py, modules/lazy_loop.py, modules/lazy_runner.py, tests/test_lazy_loop.py

modules/cve_matcher.py

Depends on: core/logging.py Imported by: skills/lazyown_mcp.py, tests/test_core_modules.py

modules/dacl_abuse.py

Imported by: cli/commands/active_directory.py

  • DACLAbuseEngine.__init__ (method) modules/dacl_abuse.py:136 def __init__(self, domain, domain_sid, acl_data)
  • DACLAbuseEngine.parse_bloodhound_acls (method) modules/dacl_abuse.py:143 def parse_bloodhound_acls(self, edges) -- Parse BloodHound edge data to extract exploitable ACLs.
  • DACLAbuseEngine.parse_raw_aces (method) modules/dacl_abuse.py:182 def parse_raw_aces(self, raw_nthashes) -- Parse raw ACE data from ntSecurityDescriptor parsing.
  • DACLAbuseEngine.compute_attack_chains (method) modules/dacl_abuse.py:224 def compute_attack_chains(self) -- Generate exploitation plans for all discovered ACL targets.
  • DACLAbuseEngine.adminsdholder_abuse_plan (method) modules/dacl_abuse.py:291 def adminsdholder_abuse_plan(self, target_sid) -- Generate an AdminSDHolder abuse plan.
  • DACLAbuseEngine.dcsync_rights_assignment_plan (method) modules/dacl_abuse.py:318 def dcsync_rights_assignment_plan(self, target_sid, domain_dn) -- Generate a DCSync rights assignment plan.
  • DACLAbuseEngine.owner_takeover_plan (method) modules/dacl_abuse.py:348 def owner_takeover_plan(self, target_dn, attacker_sid) -- Generate an ownership takeover plan.
  • DACLAbuseEngine.summary (method) modules/dacl_abuse.py:418 def summary(self) -- Return a summary of all DACL/SACL abuse findings.

modules/dashboard_bp.py

Imported by: lazyc2.py, tests/test_core_modules.py, tests/test_dashboard_routes.py

modules/dashboard_engine.py

Imported by: cli/commands/pwn.py, modules/rich_tui.py, modules/unified_dashboard.py, skills/lazyown_mcp.py

Next: API_p11.md

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally