Skip to content

Agent API_p9

grisun0 edited this page Oct 19, 2026 · 24 revisions

API (page 9 of 23)

Previous: API_p8.md

lazyown.py

Depends on: cli/aliases.py, cli/auto_crypto.py, cli/autosuggest.py, cli/chain_mode.py, cli/cli_enhancements.py, cli/command_chain.py, cli/engagement_hooks.py, cli/exploration.py, cli/fuzzy_picker.py, cli/graph_advisor.py, cli/headless.py, cli/lazynmap_post.py, cli/ops_commands.py, cli/palette.py, cli/palette_command.py, cli/protips.py, cli/reactive_hints.py, cli/registry.py, cli/scope_guard.py, cli/splash.py, cli/status_bar.py, cli/tips_engine.py, cli/toast_bus.py, core/autonomous.py, core/config.py, core/console.py, core/credential_vault.py, core/defaults.py, core/hardening.py, core/logging.py, modules/cli_auth.py, modules/command_executor.py, modules/event_bus.py, modules/event_consumers.py, modules/lazy_loop.py, modules/llm_factory.py, modules/logging_config.py, modules/metrics.py, modules/payload_factory.py, modules/session_cleanup.py, modules/state_manager.py, modules/unified_bridge.py, skills/unified_orchestrator.py, utils.py Imported by: core/command_bridge.py, discord_c2.py, lazyc2.py, poc_tui/app.py, scripts/devtools/command_audit.py, slack_c2_bot.py, telegram_c2.py, tests/test_c2_agent.py, tests/test_scope_guard_integration.py

  • _PayloadSettableProxy.__init__ (method) lazyown.py:246 def __init__(self, params) -- Bind the proxy to a live params dictionary.
  • LazyOwnShell.__init__ (method) lazyown.py:374 def __init__(self) -- Initializer for the LazyOwnShell class.
  • LazyOwnShell.log_command (method) lazyown.py:781 def log_command(self, cmd_name, cmd_args, start_time, end_time, duration_ms) -- Logs the command execution details to a CSV file.
  • LazyOwnShell.default (method) lazyown.py:844 def default(self, line) -- Handles undefined commands, including aliases.
  • LazyOwnShell.scripts (method) lazyown.py:873 def scripts(self) -- Auto-discovered list of runnable script names.
  • LazyOwnShell.refresh_prompt (method) lazyown.py:892 def refresh_prompt(self) -- Recompute the Neon Box prompt from the live payload.
  • LazyOwnShell.do_set (method) lazyown.py:903 def do_set(self, line) -- Set a parameter — the unified set/assign surface.
  • LazyOwnShell.logcsv (method) lazyown.py:1284 def logcsv(self, line, start_time, end_time, duration_ms) -- Forward a command line to :meth:log_command for CSV persistence.
  • LazyOwnShell.cmd (method) lazyown.py:1325 def cmd(self, line) -- Internal function to execute commands.
  • LazyOwnShell.onecmd_plus_hooks (method) lazyown.py:1417 def onecmd_plus_hooks(self, statement, add_to_history, raise_keyboard_interrupt, orig_rl_history_length) -- Dispatch a command, expanding payload placeholders in custom aliases.
  • LazyOwnShell.one_cmd (method) lazyown.py:1781 def one_cmd(self, command) -- Internal function to execute commands.
  • LazyOwnShell.emptyline (method) lazyown.py:1827 def emptyline(self) -- Handle the case where the user enters an empty line.
  • LazyOwnShell.load_user_commands (method) lazyown.py:1852 def load_user_commands(self) -- Carga los comandos personalizados desde user_commands.json
  • LazyOwnShell.save_user_command (method) lazyown.py:1864 def save_user_command(self, alias, command) -- Guarda un nuevo comando en user_commands.json
  • LazyOwnShell.list_files_in_directory (method) lazyown.py:1876 def list_files_in_directory(self, directory) -- Lista todos los archivos en un directorio dado.
  • LazyOwnShell.register_tool_commands (method) lazyown.py:1882 def register_tool_commands(self) -- Register every active tools/*.tool as a do_<toolname> command.
  • make_wrapper (function) lazyown.py:1941 def make_wrapper(cmd_template, tname, default_target)
  • tool_wrapper (function) lazyown.py:1942 def tool_wrapper(arg)
  • wrapper (function) lazyown.py:2043 def wrapper(arg)
  • LazyOwnShell.load_plugins (method) lazyown.py:2066 def load_plugins(self) -- Load every Lua plugin from the 'plugins/' directory.
  • LazyOwnShell.load_yaml_plugins (method) lazyown.py:2096 def load_yaml_plugins(self) -- Loads all YAML plugins from the 'lazyaddons/' directory.
  • LazyOwnShell.register_yaml_plugin (method) lazyown.py:2119 def register_yaml_plugin(self, plugin_data) -- Register a YAML addon as a shell command.
  • wrapper_yaml (function) lazyown.py:2159 def wrapper_yaml(arg)
  • LazyOwnShell.register_all_adversary_commands (method) lazyown.py:2265 def register_all_adversary_commands(self)
  • cmd_wrapper (function) lazyown.py:2287 def cmd_wrapper(_)
  • LazyOwnShell.display_toastr (method) lazyown.py:2294 def display_toastr(self, message, type) -- Display a toastr-like notification in the terminal with adaptive sizing.
  • show_toastr (function) lazyown.py:2351 def show_toastr()
  • LazyOwnShell.completedefault (method) lazyown.py:2373 def completedefault(self, text, line, begidx, endidx) -- Fall through to the payload-aware completer for unhandled commands.
  • LazyOwnShell.preloop (method) lazyown.py:2398 def preloop(self) -- Print a session-start pro tip and handle first-run setup.
  • LazyOwnShell.postparsing_precmd (method) lazyown.py:2536 def postparsing_precmd(self, statement) -- Gate unauthenticated commands — anonymous operators can only run register, login, logout, whoami...
  • LazyOwnShell.postloop (method) lazyown.py:2564 def postloop(self) -- Handle operations to perform after exiting the command loop.
  • LazyOwnShell.complete_phase (method) lazyown.py:2597 def complete_phase(self, text, line, begidx, endidx) -- Tab-complete phase names.
  • LazyOwnShell.complete_l00t (method) lazyown.py:2602 def complete_l00t(self, text, line, begidx, endidx) -- Tab-complete l00t subcommands.
  • LazyOwnShell.complete_loot (method) lazyown.py:2608 def complete_loot(self, text, line, begidx, endidx) -- Tab-complete loot subcommands (delegates to l00t).
  • LazyOwnShell.complete_assign (method) lazyown.py:2613 def complete_assign(self, text, line, begidx, endidx) -- Tab-complete the parameter name from the live payload keys.
  • LazyOwnShell.complete_scope (method) lazyown.py:2630 def complete_scope(self, text, line, begidx, endidx) -- Tab-complete the scope subcommands.
  • LazyOwnShell.complete_palette (method) lazyown.py:2681 def complete_palette(self, text, line, begidx, endidx) -- Tab-complete the palette command using the live command index.
  • LazyOwnShell.run_lazysearch (method) lazyown.py:2698 def run_lazysearch(self) -- Runs the internal module modules/lazysearch.py.
  • LazyOwnShell.run_lazysearch_gui (method) lazyown.py:2715 def run_lazysearch_gui(self) -- Run the internal module located at modules/LazyOwnExplorer.py.
  • LazyOwnShell.run_lazyown (method) lazyown.py:2745 def run_lazyown(self) -- Run the internal module located at modules/lazyown_parquet_tool.py.
  • LazyOwnShell.run_update_db (method) lazyown.py:2771 def run_update_db(self) -- Run the internal module located at modules/update_db.sh.
  • LazyOwnShell.run_lazynmap (method) lazyown.py:2801 def run_lazynmap(self) -- Runs the internal module modules/lazynmap.sh for multiple Nmap scans.
  • LazyOwnShell.run_lazywerkzeugdebug (method) lazyown.py:2866 def run_lazywerkzeugdebug(self) -- Run the internal module located at modules/legacy/lazywerkzeug.py in debug mode.
  • LazyOwnShell.run_lazygath (method) lazyown.py:2923 def run_lazygath(self) -- Run the internal module located at modules/lazygat.sh. to gathering the sistem :)
  • LazyOwnShell.run_lazynmapdiscovery (method) lazyown.py:2955 def run_lazynmapdiscovery(self) -- Runs the internal module modules/lazynmap.sh with discovery mode.
  • LazyOwnShell.run_lazysniff (method) lazyown.py:2970 def run_lazysniff(self) -- Run the sniffer internal module located at modules/legacy/lazysniff.py with the specified parameters.
  • LazyOwnShell.run_lazyftpsniff (method) lazyown.py:3019 def run_lazyftpsniff(self) -- Run the sniffer ftp internal module located at modules/legacy/lazyftpsniff.py with the specified parameters.
  • LazyOwnShell.run_lazynetbios (method) lazyown.py:3065 def run_lazynetbios(self) -- Run the internal module to search netbios vuln victims, located at modules/legacy/lazynetbios.py with the...
  • LazyOwnShell.run_lazyhoneypot (method) lazyown.py:3116 def run_lazyhoneypot(self) -- Run the internal module located at modules/legacy/lazyhoneypot.py with the specified parameters.
  • LazyOwnShell.run_lazysearch_bot (method) lazyown.py:3182 def run_lazysearch_bot(self) -- Run the internal module GROQ AI located at modules/legacy/lazysearch_bot.py with the specified parameters.
  • LazyOwnShell.run_lazymetaextract0r (method) lazyown.py:3233 def run_lazymetaextract0r(self) -- Run the Metadata extractor internal module located at modules/lazyown_metaextract0r.py with the specified parameters.
  • LazyOwnShell.run_lazyownratcli (method) lazyown.py:3274 def run_lazyownratcli(self) -- Run the internal module located at modules/lazyownclient.py with the specified parameters.
  • LazyOwnShell.run_lazyownrat (method) lazyown.py:3334 def run_lazyownrat(self) -- Run the internal module located at modules/lazyownserver.py with the specified parameters.
  • LazyOwnShell.run_lazybotnet (method) lazyown.py:3395 def run_lazybotnet(self) -- Run the internal module located at modules/legacy/lazybotnet.py with the specified parameters.
  • LazyOwnShell.run_lazylfi2rce (method) lazyown.py:3451 def run_lazylfi2rce(self) -- Run the internal module located at modules/legacy/lazylfi2rce.py with the specified parameters.
  • LazyOwnShell.run_lazylogpoisoning (method) lazyown.py:3532 def run_lazylogpoisoning(self) -- Run the internal module located at modules/legacy/lazylogpoisoning.py with the specified parameters.
  • LazyOwnShell.run_lazybotcli (method) lazyown.py:3579 def run_lazybotcli(self) -- Run the internal module located at modules/legacy/lazybotcli.py with the specified parameters.
  • LazyOwnShell.run_lazyssh77enum (method) lazyown.py:3635 def run_lazyssh77enum(self) -- Run the internal module located at modules/lazybrutesshuserenum.py with the specified parameters.
  • LazyOwnShell.run_lazyburpfuzzer (method) lazyown.py:3685 def run_lazyburpfuzzer(self) -- Run the internal module located at modules/lazyown_burpfuzzer.py with the specified parameters.
  • LazyOwnShell.run_lazyreverse_shell (method) lazyown.py:3811 def run_lazyreverse_shell(self) -- Run the internal module located at modules/lazyreverse_shell.sh with the specified parameters.
  • LazyOwnShell.run_lazyarpspoofing (method) lazyown.py:3861 def run_lazyarpspoofing(self) -- Run the internal module located at modules/legacy/lazyarpspoofing.py with the specified parameters.
  • LazyOwnShell.run_lazyattack (method) lazyown.py:3915 def run_lazyattack(self) -- Run the internal module located at modules/lazyatack.sh with the specified parameters.
  • LazyOwnShell.run_lazymsfvenom (method) lazyown.py:3970 def run_lazymsfvenom(self) -- Executes the msfvenom tool to generate a variety of payloads based on user input.
  • LazyOwnShell.run_lazyaslrcheck (method) lazyown.py:4147 def run_lazyaslrcheck(self) -- Creates a path hijacking attack by performing the following steps:
  • LazyOwnShell.run_lazypathhijacking (method) lazyown.py:4194 def run_lazypathhijacking(self) -- Creates a path hijacking attack by performing the following steps:
  • LazyOwnShell.run_script (method) lazyown.py:4227 def run_script(self, script_name) -- Run a script with the given arguments
  • LazyOwnShell.run_command (method) lazyown.py:4259 def run_command(self, command) -- Run a command and print output in real-time
  • LazyOwnShell.get_output (method) lazyown.py:4339 def get_output(self) -- Devuelve la salida acumulada
  • LazyOwnShell.upload_file_to_c2 (method) lazyown.py:4344 def upload_file_to_c2(self, file_path, clientid) -- Sube un archivo al C2.
  • LazyOwnShell.complete_upload_c2 (method) lazyown.py:4370 def complete_upload_c2(self, text, line, begidx, endidx) -- Autocomplete implant names from implant_config_*.json files in sessions/ directory
  • LazyOwnShell.download_file_from_c2 (method) lazyown.py:4398 def download_file_from_c2(self, file_name, clientid) -- Descarga un archivo desde el C2.
  • LazyOwnShell.issue_command_to_c2 (method) lazyown.py:4467 def issue_command_to_c2(self, command, client_id) -- Ejecuta un comando en el cliente usando el C2.
  • LazyOwnShell.complete_issue_command_to_c2 (method) lazyown.py:4501 def complete_issue_command_to_c2(self, text, line, begidx, endidx) -- Autocomplete: 1st arg = implant name, 2nd arg = beacon command (with : if needed)
  • LazyOwnShell.view_code (method) lazyown.py:4567 def view_code(self, stdscr) -- Display C and ASM code side by side in a curses-based interface.
  • LazyOwnShell.get_available_actions (method) lazyown.py:4672 def get_available_actions(self) -- Returns a list of available actions using cmd2 introspection.
  • LazyOwnShell.process_scan_csv (method) lazyown.py:4755 def process_scan_csv(self, csv_file, ip, port, all_data, processed_ips) -- Processes a single scan CSV file.
  • LazyOwnShell.process_vuln_csv (method) lazyown.py:4778 def process_vuln_csv(self, csv_file, ip, all_data, processed_ips) -- Processes a single vulnerability CSV file.
  • LazyOwnShell.do_event_log (method) lazyown.py:4910 def do_event_log(self, line) -- Show recent EventBus events.
  • LazyOwnShell.do_state_snapshot (method) lazyown.py:4940 def do_state_snapshot(self, line) -- Show unified StateManager snapshot (DB + JSON caches).
  • LazyOwnShell.do_route (method) lazyown.py:4979 def do_route(self, line) -- Route a natural-language prompt to a LazyOwn tool.
  • main (function) lazyown.py:5002 def main()

modules/49803.py

modules/CVE-2023-28432.py

modules/LazyOwnExplorer.py

modules/adcs_attacks.py

Imported by: cli/commands/exploit_migrated.py

  • CertificateTemplate.esc_vulnerabilities (method) modules/adcs_attacks.py:35 def esc_vulnerabilities(self) -- Determine which ESC attack paths apply to this template.
  • ADCSCertipyWrapper.__init__ (method) modules/adcs_attacks.py:80 def __init__(self, certipy_path, timeout)
  • ADCSCertipyWrapper.find_certificate_authorities (method) modules/adcs_attacks.py:113 def find_certificate_authorities(self, username, password, domain, dc_ip, hashes) -- Enumerate certificate authorities in an Active Directory domain.
  • ADCSCertipyWrapper.enumerate_templates (method) modules/adcs_attacks.py:189 def enumerate_templates(self, username, password, domain, dc_ip, hashes) -- Enumerate vulnerable certificate templates.
  • ADCSCertipyWrapper.request_certificate_esc1 (method) modules/adcs_attacks.py:268 def request_certificate_esc1(self, username, password, domain, dc_ip, ca_name, template_name, target_user, output_file) -- ESC1: Request a certificate with a user-supplied subject alternative name.
  • ADCSCertipyWrapper.request_certificate_esc8 (method) modules/adcs_attacks.py:322 def request_certificate_esc8(self, username, password, domain, dc_ip, ca_server, template_name, output_file) -- ESC8: HTTP-based certificate enrollment (NTLM relay to AD CS).
  • ADCSCertipyWrapper.authenticate_with_certificate (method) modules/adcs_attacks.py:367 def authenticate_with_certificate(self, cert_file, domain, dc_ip, username) -- Authenticate to the domain using a certificate and retrieve NT hash.
  • ADCSCertipyWrapper.assess_vulnerability (method) modules/adcs_attacks.py:411 def assess_vulnerability(self, username, password, domain, dc_ip, hashes) -- Run a full AD CS vulnerability assessment.

modules/addon_updater.py

Depends on: core/logging.py Imported by: cli/commands/lazyops.py, cli/commands/marketplace.py, tests/test_addon_updater.py

  • AddonUpdateResult.to_dict (method) modules/addon_updater.py:46 def to_dict(self) -- Return a JSON-serializable view.
  • load_addons (function) modules/addon_updater.py:73 def load_addons(lazyaddons_dir) -- Load every lazyaddon with its update metadata.
  • update_addon (function) modules/addon_updater.py:166 def update_addon(name, lazyaddons_dir, root, dry_run) -- Update one addon through git pull --ff-only.
  • update_all (function) modules/addon_updater.py:260 def update_all(names, lazyaddons_dir, root, dry_run, audit_path) -- Update every opted-in addon or an explicit name list.

modules/agent_runner.py

Depends on: core/logging.py, modules/ai_model.py, modules/llm_factory.py, modules/logging_config.py Imported by: modules/lazy_agent.py, modules/vulnbot.py, tests/test_lazy_streaming.py

modules/ai_exploit_chain.py

Depends on: modules/autonomous_exploit_engine.py Imported by: cli/commands/pwn.py, skills/lazyown_mcp.py

  • AIExploitChainer.__init__ (method) modules/ai_exploit_chain.py:259 def __init__(self)
  • AIExploitChainer.reason (method) modules/ai_exploit_chain.py:285 def reason(self, context) -- Analyze context failures and produce the next best exploit candidate.
  • AIExploitChainer.evaluate_failure (method) modules/ai_exploit_chain.py:306 def evaluate_failure(result) -- Classify the reason for an exploit failure by output pattern matching.
  • AIExploitChainer.select_next_strategy (method) modules/ai_exploit_chain.py:318 def select_next_strategy(self, context) -- Select the next strategy to attempt based on context and failures.
  • AIExploitChainer.estimate_confidence (method) modules/ai_exploit_chain.py:349 def estimate_confidence(self, strategy, profile) -- Estimate confidence (0.0-1.0) for a strategy against a target profile.
  • AIExploitChainer.build_chain_plan (method) modules/ai_exploit_chain.py:391 def build_chain_plan(self, context) -- Build a full multi-step exploitation plan following the kill chain.
  • AIExploitChainer.adapt_chain (method) modules/ai_exploit_chain.py:428 def adapt_chain(self, context, new_info) -- Adapt the chain plan based on newly discovered information.

modules/ai_fallback.py

Depends on: modules/llm_factory.py, modules/toposwarm_bridge.py Imported by: modules/recommender.py, modules/timeline_narrator.py

  • call (function) modules/ai_fallback.py:254 def call(prompt, system, api_key, max_tokens, temperature) -- Call Groq → fallback to Ollama → fallback to TopoSwarm local brain → error.

modules/ai_model.py

Depends on: core/logging.py, modules/llm_factory.py Imported by: contrib/legacy/lazyllmchat.py, modules/agent_runner.py, modules/llm_client.py, modules/llm_factory.py, modules/vulnbot.py, modules/yaml_generator.py

modules/amsi.c

  • LoadNtFunctions (function) modules/amsi.c:38 void LoadNtFunctions() -- Función para cargar las funciones dinámicamente
  • AMS1patch_OpenSession_jne (function) modules/amsi.c:66 void AMS1patch_OpenSession_jne(HANDLE hproc) -- Técnica de Saad, también conocido como @D1rkMtr (https://twitter.com/D1rkMtr/)...
  • AMS1patch_OpenSession_ret (function) modules/amsi.c:116 void AMS1patch_OpenSession_ret(HANDLE hproc)
  • AMS1patch_ScanBuffer_ret (function) modules/amsi.c:166 void AMS1patch_ScanBuffer_ret(HANDLE hproc)
  • AMS1patch_RastaMouse (function) modules/amsi.c:215 void AMS1patch_RastaMouse(HANDLE hproc)
  • AMS1patch_E_ACCESSDENIED (function) modules/amsi.c:274 void AMS1patch_E_ACCESSDENIED(HANDLE hproc)
  • AMS1patch_E_HANDLE (function) modules/amsi.c:326 void AMS1patch_E_HANDLE(HANDLE hproc)
  • AMS1patch_E_OUTOFMEMORY (function) modules/amsi.c:378 void AMS1patch_E_OUTOFMEMORY(HANDLE hproc)
  • main (function) modules/amsi.c:428 int main(int argc, char** argv)

modules/amt_auth_bypass.py

modules/apt_playbooks.py

Depends on: core/console.py, modules/atomic_resolver.py Imported by: cli/commands/command_and_control_migrated.py, cli/lazy_orchestrator.py, cli/recommendation_signals.py, modules/emulation_runner.py, modules/operation.py, tests/test_atomic_loop.py, tests/test_emulation_runner.py

modules/asset_graph.py

Imported by: skills/autonomous_daemon.py, tests/test_autonomous_ops.py

  • asset_key (function) modules/asset_graph.py:28 def asset_key(asset_type, value, parent_key) -- Compute the stable deduplication key for an asset.
  • AssetGraph.__init__ (method) modules/asset_graph.py:73 def __init__(self, config) -- Initialize empty graphs and anchor indexes.
  • AssetGraph.upsert_asset (method) modules/asset_graph.py:82 def upsert_asset(self, asset_type, value, parent_key, company) -- Insert or refresh an asset and return the canonical node.
  • AssetGraph.add_node (method) modules/asset_graph.py:108 def add_node(self, task_id, kind, text, parent_id, payload) -- Append an exploration node to a task chain.
  • AssetGraph.add_fact (method) modules/asset_graph.py:123 def add_fact(self, task_id, text, parent_id, payload) -- Append a fact node to a task chain.
  • AssetGraph.add_finding (method) modules/asset_graph.py:128 def add_finding(self, task_id, text, parent_id, payload) -- Append a finding node to a task chain.
  • AssetGraph.anchor (method) modules/asset_graph.py:133 def anchor(self, exploration_id, key) -- Link an exploration node to an asset key.
  • AssetGraph.assets_for_node (method) modules/asset_graph.py:145 def assets_for_node(self, exploration_id) -- List assets anchored to one exploration node.
  • AssetGraph.nodes_for_asset (method) modules/asset_graph.py:151 def nodes_for_asset(self, key) -- List exploration nodes anchored to one asset.
  • AssetGraph.coverage (method) modules/asset_graph.py:157 def coverage(self, task_id) -- Report tested versus total assets for a task.
  • AssetGraph.mirror_to_campaign (method) modules/asset_graph.py:170 def mirror_to_campaign(self, db, world_model, workspace_id) -- Mirror graph assets into the campaign database and world model.
  • coverage_for (function) modules/asset_graph.py:214 def coverage_for(db, workspace_id, scope) -- Report tested scope assets versus total scope from the campaign db.

modules/atomic_cli.py

Depends on: core/console.py, core/hardening.py, core/logging.py, modules/atomic_resolver.py, utils.py Imported by: cli/commands/command_and_control_migrated.py

  • parse_atomic_line (function) modules/atomic_cli.py:37 def parse_atomic_line(line) -- Parse free-form CLI args into a structured request.
  • run_atomic_tests (function) modules/atomic_cli.py:185 def run_atomic_tests(params, line, shell) -- Execute the atomic_tests workflow (secure + agent-safe).
  • run_atomic_gen (function) modules/atomic_cli.py:325 def run_atomic_gen(params, line, shell) -- Generate test + cleanup scripts for one technique or GUID.

modules/atomic_enricher.py

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

  • enrich (function) modules/atomic_enricher.py:173 def enrich(force) -- Build enriched parquet.
  • load_enriched (function) modules/atomic_enricher.py:215 def load_enriched() -- Load enriched parquet, building it first if it doesn't exist.
  • query_atomic (function) modules/atomic_enricher.py:232 def query_atomic(keyword, mitre_id, platform, scope, has_prereqs, complexity, limit, include_command) -- Structured query over the enriched Atomic Red Team technique catalogue.

modules/atomic_exploit_bridge.py

Depends on: core/logging.py, core/safe_exec.py, modules/c2_surfaces.py, modules/emulation_runner.py, modules/outcome_bus.py, modules/world_model.py Imported by: cli/commands/command_and_control_migrated.py, modules/autonomous_exploit_engine.py, modules/c2_agent.py, modules/emulation_runner.py, modules/metasploitable_gym.py, modules/redteam_gym.py, skills/lazyown_mcp.py, tests/test_atomic_exploit_bridge.py, tests/test_c2_surfaces.py, tests/test_emulation_runner.py, tests/test_gym_cli.py, tests/test_metasploitable_gym.py, tests/test_outcome_bus.py

modules/atomic_resolver.py

Depends on: core/logging.py, core/safe_exec.py Imported by: cli/commands/command_and_control_migrated.py, modules/apt_playbooks.py, modules/atomic_cli.py, modules/emulation_runner.py, modules/ttpscope_bridge.py, skills/lazyown_mcp.py, tests/test_atomic_loop.py, tests/test_atomic_resolver.py

modules/attack_surface3d.py

Depends on: cli/surface_graph.py, modules/estorides_fusion.py, modules/finding_lifecycle.py, modules/intel_fusion.py Imported by: cli/commands/surface.py, lazyc2.py, modules/sinks/attack_graph.py, tests/test_attack_surface3d.py

  • build_attack_graph (function) modules/attack_surface3d.py:147 def build_attack_graph(sessions_dir, payload_path, est_cap) -- Fuse surface scans with campaign intel into one C2-centred graph.
  • add_edge (function) modules/attack_surface3d.py:155 def add_edge(src, dst, kind, evidence, weight) -- Append one provenance-tagged relation between known nodes.
  • tag (function) modules/attack_surface3d.py:166 def tag(nid, source) -- Record a corroborating artefact on a node, deduped.
  • refresh_summary (function) modules/attack_surface3d.py:460 def refresh_summary(graph, sessions_dir) -- Score exposure into intel_summary.json for the autonomous loop.

modules/auto_loop_memory.py

Imported by: skills/lazyown_mcp.py, tests/test_auto_loop_memory.py

modules/auto_pivot.py

Imported by: modules/autonomous_exploit_engine.py, skills/lazyown_mcp.py

modules/auto_purple.py

Depends on: core/config.py, core/logging.py, core/process.py, modules/detection_oracle.py Imported by: cli/commands/purple_team.py

modules/auto_registry.py

Depends on: modules/command_executor.py, modules/lazy_cli_bridge.py, modules/lazy_installer.py, modules/lazy_orchestrator_feedback.py, modules/orchestrator_config.py Imported by: cli/commands/command_and_control_migrated.py, cli/commands/lazyops.py, modules/command_executor.py, modules/custom_tools.py, modules/lazy_agent.py, modules/lazy_installer.py, modules/lazy_loop.py, modules/lazy_runner.py, modules/orchestrator_config.py, skills/lazyown_mcp.py, tests/test_atomic_loop.py, tests/test_auto_registry.py, tests/test_lazy_loop.py, tests/test_lazy_runner.py, tests/test_loop_auto_orchestrator.py

  • auto_verb_target (function) modules/auto_registry.py:66 def auto_verb_target(command) -- Return the target an auto <verb> <target> line carries, else ''.
  • verb_enabled (function) modules/auto_registry.py:296 def verb_enabled(name) -- Return whether one auto verb may be proposed or executed.
  • binary_available (function) modules/auto_registry.py:388 def binary_available(name) -- Return True when a command token can actually execute here.
  • missing_binary (function) modules/auto_registry.py:404 def missing_binary(command) -- Return the first binary a shell command needs but PATH lacks.
  • verb_gap (function) modules/auto_registry.py:416 def verb_gap(verb) -- Return a human reason when an automation verb cannot run, else ''.
  • verb_available (function) modules/auto_registry.py:428 def verb_available(verb) -- Return True when every binary an automation verb needs is installed.
  • service_tokens (function) modules/auto_registry.py:433 def service_tokens(service_text) -- Normalize a service asset value into matchable tokens.
  • iter_addon_triggers (function) modules/auto_registry.py:475 def iter_addon_triggers() -- Scan enabled lazyaddons for (name, trigger tokens) pairs.
  • iter_tool_triggers (function) modules/auto_registry.py:511 def iter_tool_triggers() -- Scan active pwntomate tools for (toolname, trigger tokens) pairs.
  • addon_hits_for (function) modules/auto_registry.py:534 def addon_hits_for(service_text, limit) -- Rank addon/tool names matching one service value.
  • propose_addon_intents (function) modules/auto_registry.py:560 def propose_addon_intents(service_texts, target, limit) -- Propose addon intents for discovered services.
  • is_routable_command (function) modules/auto_registry.py:586 def is_routable_command(line) -- Return True when the loop executor must route via the shell.
  • verbs (function) modules/auto_registry.py:604 def verbs() -- Return every canonical automation verb name.
  • is_shell_verb (function) modules/auto_registry.py:609 def is_shell_verb(token) -- Return True when token names a loop-routable shell verb.
  • build_command (function) modules/auto_registry.py:631 def build_command(verb, target) -- Build the shell command line for verb bound to target.
  • verbs_for (function) modules/auto_registry.py:642 def verbs_for(text) -- Return enabled verbs whose keywords appear in the text.
  • propose_intents (function) modules/auto_registry.py:648 def propose_intents(goal, target, finding_texts) -- Propose auto <verb> intent summaries for planner candidates.
  • steps_for (function) modules/auto_registry.py:733 def steps_for(text, target) -- Translate an intent summary into shell command lines, or None.
  • _TeeCapture.__init__ (method) modules/auto_registry.py:858 def __init__(self, observer)
  • _TeeCapture.write (method) modules/auto_registry.py:863 def write(self, data) -- Capture text and stream the chunk to the observer once.
  • execute_shell_verb (function) modules/auto_registry.py:876 def execute_shell_verb(shell, command, timeout_sec, on_output) -- Run a LazyOwn shell verb capturing stdout, with a hard timeout.
  • track_process (function) modules/auto_registry.py:986 def track_process(process) -- Register a live child process for global cancellation.
  • untrack_process (function) modules/auto_registry.py:991 def untrack_process(process) -- Drop a finished child process from the cancellation registry.
  • cancel_running_commands (function) modules/auto_registry.py:996 def cancel_running_commands() -- Kill every live streaming process group (operator Ctrl+C).
  • execute_streaming (function) modules/auto_registry.py:1019 def execute_streaming(command, on_output, timeout_sec) -- Run a bash command streaming lines while capturing the output.

modules/autonomous_exploit_engine.py

Depends on: core/defaults.py, core/safe_exec.py, modules/atomic_exploit_bridge.py, modules/auto_pivot.py, modules/db.py, modules/outcome_bus.py Imported by: cli/commands/pwn.py, cli/commands/session_ops.py, modules/ai_exploit_chain.py, modules/lazy_loop.py, skills/lazyown_mcp.py, tests/test_atomic_exploit_bridge.py, tests/test_emulation_runner.py, tests/test_phase1_data_gaps.py

modules/aws_attacks.py

Imported by: cli/commands/cloud_attacks.py

  • AWSAttackEngine.__init__ (method) modules/aws_attacks.py:91 def __init__(self, config)
  • AWSAttackEngine.enumerate_iam_permissions (method) modules/aws_attacks.py:95 def enumerate_iam_permissions(self) -- Enumerate IAM permissions for the current user/role.
  • AWSAttackEngine.lambda_backdoor (method) modules/aws_attacks.py:127 def lambda_backdoor(self, function_name) -- Plan a Lambda backdoor for privilege escalation.
  • AWSAttackEngine.sts_role_chain (method) modules/aws_attacks.py:155 def sts_role_chain(self, target_role_arn) -- Enumerate and exploit STS AssumeRole privilege escalation chains.
  • AWSAttackEngine.ec2_user_data_exfil (method) modules/aws_attacks.py:181 def ec2_user_data_exfil(self) -- Extract sensitive data from EC2 instance user data and metadata.
  • AWSAttackEngine.s3_enumeration (method) modules/aws_attacks.py:206 def s3_enumeration(self) -- Enumerate S3 buckets and their permissions.
  • AWSAttackEngine.cloudformation_drift (method) modules/aws_attacks.py:242 def cloudformation_drift(self) -- Exploit CloudFormation for privilege escalation.
  • AWSAttackEngine.ec2_ssm_session_abuse (method) modules/aws_attacks.py:274 def ec2_ssm_session_abuse(self) -- Abuse SSM to gain shell access to EC2 instances.
  • AWSAttackEngine.summary (method) modules/aws_attacks.py:293 def summary(self)

modules/backdoor/backdoor.c

Depends on: modules/backdoor/keylogger.h

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.

Next: API_p10.md

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally