Agent API_p5 - grisuno/LazyOwn GitHub Wiki
API (page 5 of 23)
Previous: API_p4.md
cli/splash.py
Depends on: cli/style.py, core/console.py
Imported by: lazyown.py, tests/test_tui_splash.py
SplashEffect.render(method)cli/splash.py:71def render(self, console, lines, tokens, config)TypewriterEffect.render(method)cli/splash.py:90def render(self, console, lines, tokens, config)InstantEffect.render(method)cli/splash.py:150def render(self, console, lines, tokens, config)render_splash(function)cli/splash.py:166def render_splash(console, lines, payload, config, effect_name)-- Render the splash overlay and optionally clear the screen.
cli/status_bar.py
Depends on: cli/reactive_hints.py, cli/themes.py
Imported by: lazyown.py, tests/test_improvements_spec.py, tests/test_status_bar_operators.py
StatusBarConfig.from_payload(method)cli/status_bar.py:99def from_payload(cls, payload)-- Return a config with overrides applied from a[payload.json](https://github.com/grisuno/LazyOwn/blob/146a52570ef792d1ec01ec4d3709b0c159990e47/payload.json)mapping.IStatusSource.collect(method)cli/status_bar.py:146def collect(self)-- Return the field value for this source as a plain string.FileSystemReader.__init__(method)cli/status_bar.py:160def __init__(self, config, root)-- Initialise with the active config and optional explicit root.FileSystemReader.root(method)cli/status_bar.py:179def root(self)-- Return the resolved root directory backing this reader.FileSystemReader.read_text(method)cli/status_bar.py:183def read_text(self, relative)-- Return the contents ofrelativetruncated tomax_file_bytes.FileSystemReader.read_json(method)cli/status_bar.py:204def read_json(self, relative)-- Return parsed JSON fromrelativeorNoneon failure.FileSystemReader.glob_latest(method)cli/status_bar.py:222def glob_latest(self, pattern)-- Return the most recently modified path matchingpattern.PayloadTargetSource.__init__(method)cli/status_bar.py:271def __init__(self, config, payload)-- Bind to the live config and a payload mapping.PayloadTargetSource.collect(method)cli/status_bar.py:283def collect(self)-- Return the first non-empty target key from[payload.json](https://github.com/grisuno/LazyOwn/blob/146a52570ef792d1ec01ec4d3709b0c159990e47/payload.json).WorldModelPhaseSource.__init__(method)cli/status_bar.py:295def __init__(self, config, reader, payload)-- Bind to config, sessions reader and payload mapping.WorldModelPhaseSource.collect(method)cli/status_bar.py:306def collect(self)-- Return the active phase fromworld_model.jsonthen payload then default.SessionFindingSource.__init__(method)cli/status_bar.py:322def __init__(self, config, reader)-- Bind to config and sessions reader.SessionFindingSource.collect(method)cli/status_bar.py:327def collect(self)-- Return a short description of the freshest credential / vuln / note.CommandHintSuggestionSource.__init__(method)cli/status_bar.py:426def __init__(self, config, reader, phase_provider, hint_provider)-- Bind to config, reader and the current-phase callable.CommandHintSuggestionSource.collect(method)cli/status_bar.py:451def collect(self)-- Return the top kill-chain suggestion or the configured fallback.GraphSuggestionSource.__init__(method)cli/status_bar.py:511def __init__(self, config, reader, advisor_factory)-- Bind to config, reader, and an optional advisor factory.GraphSuggestionSource.collect(method)cli/status_bar.py:530def collect(self)-- Return a one-token suggestion.CollabPresenceSource.__init__(method)cli/status_bar.py:601def __init__(self, config, reader, clock)-- Bind to the active config, reader, and an injectable clock.CollabPresenceSource.collect(method)cli/status_bar.py:622def collect(self)-- Return the active-operator count formatted as a short string.StatusBarRenderer.__init__(method)cli/status_bar.py:659def __init__(self, config)-- Bind to the active configuration.StatusBarRenderer.render_plain(method)cli/status_bar.py:664def render_plain(self, ctx)-- Return the line without ANSI colour or readline markers.StatusBarRenderer.render_prompt(method)cli/status_bar.py:687def render_prompt(self, ctx, base_prompt, color_open, color_close, readline_safe)-- Returnbase_promptwith the status line prefixed.StatusBarManager.__init__(method)cli/status_bar.py:752def __init__(self, config, sources, renderer, payload)-- Bind config, sources, renderer and a payload mapping.StatusBarManager.enabled(method)cli/status_bar.py:783def enabled(self)-- ReturnTruewhen the bar should render on this shell.StatusBarManager.collect_context(method)cli/status_bar.py:798def collect_context(self)-- Return a fresh :class:StatusContextby polling every source.StatusBarManager.render_prompt(method)cli/status_bar.py:811def render_prompt(self, base_prompt, readline_safe)-- Return the prompt with the status line prefixed when enabled.StatusBarManager.render_plain_line(method)cli/status_bar.py:833def render_plain_line(self, ctx)-- Return the rendered status line without ANSI / readline markers.StatusBarManager.set_enabled(method)cli/status_bar.py:847def set_enabled(self, enabled)-- Persist a new enabled state in the payload-backed flag.StatusBarManager.install(method)cli/status_bar.py:857def install(self, shell, base_prompt_attribute, prompt_attribute)-- Wire the manager intoshellvia a precommand hook.build_default_manager(function)cli/status_bar.py:969def build_default_manager(payload, sessions_dir, advisor_factory, config)-- Wire the canonical multi-source manager used by the live shell.
cli/style.py
Depends on: cli/themes.py
Imported by: cli/splash.py, static/js/force-graph-1.43.5.min.js, static/js/jquery-3.5.1.slim.min.js, static/js/showdown-2.1.0.min.js
style(function)cli/style.py:49def style(token, theme)-- Return the Rich style string for a semantic token.active_tokens(function)cli/style.py:68def active_tokens(payload)-- Resolve every :data:TOKEN_KEYSentry for the payload's theme.paint(function)cli/style.py:84def paint(text, token, payload)-- Rendertextwith the style oftokenfor the active theme.render_prompt(function)cli/style.py:98def render_prompt(console, segments, payload)-- Print a themed prompt line composed of(text, token)pairs.
cli/surface_graph.py
Imported by: cli/surface_tui.py, modules/attack_surface3d.py, tests/test_surface_graph.py
SurfaceNode.to_dict(method)cli/surface_graph.py:102def to_dict(self)-- Return a JSON-serialisable view of the node.SurfaceEdge.to_dict(method)cli/surface_graph.py:120def to_dict(self)-- Return a JSON-serialisable view of the edge.SurfaceGraph.to_dict(method)cli/surface_graph.py:135def to_dict(self)-- Return a JSON-serialisable view (mirrors the web UI payload).SurfaceGraph.stats(method)cli/surface_graph.py:146def stats(self)-- Return per-kind node counts plus edge count.SurfaceGraph.children_of(method)cli/surface_graph.py:153def children_of(self, node_id)-- Return nodes thatnode_idpoints to via an outgoing edge.SurfaceGraph.get(method)cli/surface_graph.py:165def get(self, node_id)-- Return the node withnode_idorNone.SurfaceGraphBuilder.__init__(method)cli/surface_graph.py:199def __init__(self, config)SurfaceGraphBuilder.build(method)cli/surface_graph.py:202def build(self)-- Read every session artefact and return the assembled graph.build_surface_graph(function)cli/surface_graph.py:633def build_surface_graph(sessions_dir, payload_path)-- Convenience factory: build a graph from on-disk artefacts.iter_descendants(function)cli/surface_graph.py:650def iter_descendants(graph, root_id)-- Yield every node reachable fromroot_idvia outgoing edges.
cli/surface_tui.py
Depends on: cli/commands/containers.py, cli/surface_graph.py, core/console.py
Imported by: cli/commands/recon_migrated.py
render_static(function)cli/surface_tui.py:65def render_static(graph, sessions_dir, payload_path, console)-- Render the surface graph as a Rich tree and return it.render_json(function)cli/surface_tui.py:92def render_json(graph, sessions_dir, payload_path)-- Return the surface graph as a JSON string.launch_tui(function)cli/surface_tui.py:112def launch_tui(sessions_dir, payload_path)-- Open the full-screen Textual surface explorer.SurfaceExplorer.__init__(method)cli/surface_tui.py:148def __init__(self, sessions_dir, payload_path)SurfaceExplorer.compose(method)cli/surface_tui.py:154def compose(self)SurfaceExplorer.on_mount(method)cli/surface_tui.py:161def on_mount(self)SurfaceExplorer.action_refresh(method)cli/surface_tui.py:164def action_refresh(self)SurfaceExplorer.action_expand_all(method)cli/surface_tui.py:168def action_expand_all(self)SurfaceExplorer.action_collapse_all(method)cli/surface_tui.py:172def action_collapse_all(self)SurfaceExplorer.on_tree_node_selected(method)cli/surface_tui.py:176def on_tree_node_selected(self, event)
cli/themes.py
Imported by: cli/command_form.py, cli/graph_overlay.py, cli/palette_overlay.py, cli/sessions_browser.py, cli/status_bar.py, cli/style.py, cli/timeline_browser.py, cli/tips_engine.py, cli/toast_bus.py, cli/tui_theme.py, tests/test_lazy_parity.py, tests/test_themes.py, tests/test_toast_bus.py, tests/test_tui_style.py, tests/test_tui_theme_command.py, tests/test_tui_themes.py
get_theme(function)cli/themes.py:222def get_theme(name)-- Return the registered :class:Themefornamewith safe fallback.theme_from_payload(function)cli/themes.py:238def theme_from_payload(payload)-- Return the theme selected bypayload["tui_theme"].
cli/timeline_browser.py
Depends on: cli/commands/containers.py, cli/themes.py
Imported by: cli/commands/misc_migrated.py, tests/test_timeline_browser.py
TimelineReader.__init__(method)cli/timeline_browser.py:75def __init__(self, config, root)-- Bind to config and resolve the sessions root.TimelineReader.root(method)cli/timeline_browser.py:81def root(self)-- Return the resolved sessions root.TimelineReader.read(method)cli/timeline_browser.py:85def read(self)-- Return the parsed entries, newest last.TimelineState.reload(method)cli/timeline_browser.py:130def reload(self)-- Drop the cache so the next :meth:entriescall re-reads disk.TimelineState.entries(method)cli/timeline_browser.py:134def entries(self)-- Return filtered entries; reads disk on the first call.TimelineState.column_value(method)cli/timeline_browser.py:148def column_value(self, entry, column)-- Return the first non-empty value amongcolumn.source_keys.build_state(function)cli/timeline_browser.py:157def build_state(payload, sessions_dir, config)-- Wire the canonical state used by :func:launch_scrubber.launch_scrubber(function)cli/timeline_browser.py:169def launch_scrubber(payload, state, runner)-- Open the scrubber and return the highlighted row index on exit._TimelineBrowserApp.__init__(method)cli/timeline_browser.py:228def __init__(self)_TimelineBrowserApp.compose(method)cli/timeline_browser.py:234def compose(self)_TimelineBrowserApp.on_mount(method)cli/timeline_browser.py:242def on_mount(self)_TimelineBrowserApp.on_input_changed(method)cli/timeline_browser.py:249def on_input_changed(self, event)_TimelineBrowserApp.on_data_table_row_highlighted(method)cli/timeline_browser.py:253def on_data_table_row_highlighted(self, event)_TimelineBrowserApp.action_refresh(method)cli/timeline_browser.py:259def action_refresh(self)_TimelineBrowserApp.action_close(method)cli/timeline_browser.py:263def action_close(self)
cli/tips_engine.py
Depends on: cli/autosuggest.py, cli/engagement_hooks.py, cli/noise_verbs.py, cli/ops_commands.py, cli/palette.py, cli/phase_labels.py, cli/reactive_hints.py, cli/recommendation_signals.py, cli/themes.py, core/console.py, core/logging.py, core/safe_console.py, core/text_utils.py, modules/cli_auth.py, modules/killchain.py, modules/lazy_rbac.py
Imported by: lazyown.py, tests/test_evidence_hints.py, tests/test_killchain_auto_refresh.py, tests/test_phase_labels.py, tests/test_tips_engine.py
TipsEngine.__init__(method)cli/tips_engine.py:194def __init__(self, config, autosuggest_engine)-- Wire the engine with its configuration and optional autosuggest handle.TipsEngine.enabled(method)cli/tips_engine.py:221def enabled(self)-- Whether the engine renders any output.TipsEngine.set_enabled(method)cli/tips_engine.py:225def set_enabled(self, value)-- Toggle rendering without dropping state.TipsEngine.render(method)cli/tips_engine.py:229def render(self, cmd, phase)-- Run all surfaces for the given command.TipsEngine.render_session_start(method)cli/tips_engine.py:408def render_session_start(self, phase, os_id)-- Print a single tip at session start (once per boot).TipsEngine.get_state_snapshot(method)cli/tips_engine.py:440def get_state_snapshot(self)-- Return a read-only snapshot of current engagement state.TipsEngine.reset_session(method)cli/tips_engine.py:455def reset_session(self)-- Reset session counters without clearing cross-session progress.TipsEngine.heal_commands_seen(method)cli/tips_engine.py:460def heal_commands_seen(self, known)-- Purge non-command entries from persistedcommands_seen.build_default_tips_config(function)cli/tips_engine.py:1240def build_default_tips_config()-- Build a :class:TipsConfigpopulated from the live framework tables.
cli/toast_bus.py
Depends on: cli/themes.py, core/console.py, core/text_utils.py
Imported by: cli/commands/misc_migrated.py, cli/commands/ux.py, cli/dashboard_tui.py, lazyown.py, tests/test_lazy_parity.py, tests/test_toast_bus.py
ToastState.__init__(method)cli/toast_bus.py:129def __init__(self, config, root)-- Bind to config and resolve the on-disk state path.ToastState.path(method)cli/toast_bus.py:144def path(self)-- Return the resolved state-file path.ToastState.get(method)cli/toast_bus.py:148def get(self, name)-- Return the persisted offset fornameor 0.ToastState.set(method)cli/toast_bus.py:153def set(self, name, offset)-- Recordoffsetfornamein memory.ToastState.reset(method)cli/toast_bus.py:159def reset(self)-- Forget every persisted offset (force replay on next read).ToastState.flush(method)cli/toast_bus.py:164def flush(self)-- Persist the current offsets atomically.ToastReader.__init__(method)cli/toast_bus.py:206def __init__(self, config, root)-- Bind to config and resolve the events root directory.ToastReader.root(method)cli/toast_bus.py:217def root(self)-- Return the resolved events root directory.ToastReader.read_unseen(method)cli/toast_bus.py:221def read_unseen(self, name, start_offset)-- Return events emitted paststart_offsetplus the new end offset.ToastFormatter.__init__(method)cli/toast_bus.py:333def __init__(self, config, theme)-- Bind to config and the active theme.ToastFormatter.format(method)cli/toast_bus.py:338def format(self, event)-- Return a single themed line forevent.ToastFormatter.is_prominent(method)cli/toast_bus.py:350def is_prominent(self, event)-- Return True when an event deserves a full toastr panel.ToastFormatter.format_prominent(method)cli/toast_bus.py:360def format_prominent(self, event)-- Render an event as a toastr panel with the complete summary.ToastFormatter.format_ephemeral(method)cli/toast_bus.py:377def format_ephemeral(self, event)-- Return a single sonner-style line with severity icon forevent.ToastFormatter.duration_for(method)cli/toast_bus.py:405def duration_for(self, event)-- Return the auto-dismiss delay in seconds forevent.ToastFormatter.digest_line(method)cli/toast_bus.py:430def digest_line(dropped)-- Summarise over-budget events so none vanish silently.ToastFormatter.format_many(method)cli/toast_bus.py:438def format_many(self, events, width)-- Render several events as one Rich renderable.ToastBus.__init__(method)cli/toast_bus.py:518def __init__(self, config, state, reader, formatter, console)-- Bind every collaborator.ToastBus.collect(method)cli/toast_bus.py:533def collect(self)-- Return every unseen event across :attr:ToastConfig.event_files.ToastBus.render(method)cli/toast_bus.py:545def render(self, enabled)-- Collect, render and persist offsets in a single call.ToastBus.mark_all_seen(method)cli/toast_bus.py:574def mark_all_seen(self)-- Advance the offset for every configured file to its current size.ToastBus.render_ephemeral(method)cli/toast_bus.py:581def render_ephemeral(self, enabled, duration)-- Collect unseen events and print each as an auto-expiring line.toasts_enabled(function)cli/toast_bus.py:679def toasts_enabled(payload, config)-- ReturnTruewhen toast rendering is permitted.build_default_bus(function)cli/toast_bus.py:702def build_default_bus(payload, sessions_dir, console)-- Wire the canonical bus used by the shell postcmd hook.render_toasts(function)cli/toast_bus.py:731def render_toasts(payload, sessions_dir, console, bus_factory)-- One-shot helper used by the cmd2 postcmd hook.ephemeral_enabled(function)cli/toast_bus.py:755def ephemeral_enabled(payload, config)-- Return True when toasts must auto-dismiss like sonner.render_ephemeral_toasts(function)cli/toast_bus.py:771def render_ephemeral_toasts(payload, sessions_dir, console, duration, bus_factory)-- Collect unseen events and print each as an auto-expiring line.emit_toast(function)cli/toast_bus.py:801def emit_toast(message, severity, event_type, sessions_dir, config)-- Append one toast event so the existing render hook displays it.read_recent_toasts(function)cli/toast_bus.py:846def read_recent_toasts(sessions_dir, limit, config)-- Return the most recent toast events without touching read offsets.build_toast_renderable(function)cli/toast_bus.py:890def build_toast_renderable(events, payload, width, config)-- Render events with the active theme for any surface.
cli/tui_theme.py
Depends on: cli/themes.py
Imported by: cli/commands/help_ui.py
run(function)cli/tui_theme.py:87def run(args, payload, save)-- Execute thetui_themecommand.
cli/tutorial.py
Depends on: core/console.py
Imported by: cli/commands/help_ui.py
is_done(function)cli/tutorial.py:83def is_done(config)-- Return True if the tutorial has already been completed.mark_done(function)cli/tutorial.py:89def mark_done(config)-- Persist the tutorial completion marker.render_header(function)cli/tutorial.py:96def render_header()-- Print the tutorial welcome banner.render_phase_table(function)cli/tutorial.py:113def render_phase_table()-- Print the full phase overview before starting.run_step(function)cli/tutorial.py:128def run_step(index, command, description, why, params, command_runner)-- Execute one tutorial step and return True if the user wants to continue.run(function)cli/tutorial.py:185def run(params, command_runner)-- Run the interactive tutorial.
cli/wizard.py
Depends on: cli/marketplace_config.py, core/console.py, core/payload_schema.py, core/profiles.py, modules/cli_auth.py, modules/llm_factory.py
Imported by: cli/commands/help_ui.py, cli/commands/misc_migrated.py, cli/doctor.py, tests/test_doctor.py, tests/test_wizard_llm.py
run(function)cli/wizard.py:169def run(params, save)-- Run the interactive setup wizard and return a :class:WizardResult.run_non_interactive(function)cli/wizard.py:234def run_non_interactive(params, save, values)-- Apply configuration without prompts — Docker/CI/headless first runs.check_binaries(function)cli/wizard.py:947def check_binaries(specs, which)-- Return the presence status of every spec without executing it.
cli/wizard_scope.py
Imported by: cli/commands/help_ui.py
parse_scope(function)cli/wizard_scope.py:38def parse_scope(tokens, config)-- Parse --show and --only=a,b flags from wizard tokens.status_rows(function)cli/wizard_scope.py:64def status_rows(params)-- Build display rows for the current configuration state.
contrib/legacy/lazy_http_bof.py
genHeader(function)contrib/legacy/lazy_http_bof.py:6def genHeader(raw)exploit(function)contrib/legacy/lazy_http_bof.py:29def exploit(target, port, payload)
contrib/legacy/lazy_packet_image_sniffer.py
check_sudo(function)contrib/legacy/lazy_packet_image_sniffer.py:23def check_sudo()list_interfaces(function)contrib/legacy/lazy_packet_image_sniffer.py:31def list_interfaces()choose_interface(function)contrib/legacy/lazy_packet_image_sniffer.py:49def choose_interface(interfaces)get_subnet_from_interface(function)contrib/legacy/lazy_packet_image_sniffer.py:61def get_subnet_from_interface(interface)get_ip_addresses(function)contrib/legacy/lazy_packet_image_sniffer.py:65def get_ip_addresses(interface)handle_packet(function)contrib/legacy/lazy_packet_image_sniffer.py:111def handle_packet(packet)save_image(function)contrib/legacy/lazy_packet_image_sniffer.py:161def save_image(src_ip, end_idx)run(function)contrib/legacy/lazy_packet_image_sniffer.py:187def run()daemonize(function)contrib/legacy/lazy_packet_image_sniffer.py:192def daemonize()
contrib/legacy/lazyaddon_creator.py
Depends on: modules/llm_client.py
parse_github_url(function)contrib/legacy/lazyaddon_creator.py:49def parse_github_url(url)-- Extrae (owner, repo) de una URL de GitHub.github_api_get(function)contrib/legacy/lazyaddon_creator.py:58def github_api_get(owner, repo, endpoint)-- GET a la API pública de GitHub (sin auth, rate-limit 60/hr).fetch_repo_metadata(function)contrib/legacy/lazyaddon_creator.py:68def fetch_repo_metadata(owner, repo)-- Devuelve metadata básica del repo.fetch_readme(function)contrib/legacy/lazyaddon_creator.py:73def fetch_readme(owner, repo)-- Descarga y decodifica el README.fetch_root_files(function)contrib/legacy/lazyaddon_creator.py:85def fetch_root_files(owner, repo)-- Lista nombres de archivos en el directorio raíz.build_llm_prompt(function)contrib/legacy/lazyaddon_creator.py:98def build_llm_prompt(meta, readme, root_files)-- Construye el prompt para el LLM.extract_json_from_response(function)contrib/legacy/lazyaddon_creator.py:164def extract_json_from_response(text)-- Extrae el primer bloque JSON de una respuesta de LLM.heuristic_install_command(function)contrib/legacy/lazyaddon_creator.py:192def heuristic_install_command(root_files, language)-- Infiere un install_command básico a partir de los archivos raíz.heuristic_execute_command(function)contrib/legacy/lazyaddon_creator.py:211def heuristic_execute_command(name, root_files, language)-- Infiere un execute_command básico.heuristic_params(function)contrib/legacy/lazyaddon_creator.py:245def heuristic_params(name, readme, root_files)-- Infiere parámetros comunes basándose en el nombre y README.fallback_yaml_data(function)contrib/legacy/lazyaddon_creator.py:276def fallback_yaml_data(meta, readme, root_files)-- Genera datos de addon usando solo heurísticas locales (sin LLM).build_yaml(function)contrib/legacy/lazyaddon_creator.py:300def build_yaml(data, repo_url)-- Construye la estructura de dict que representa el addon YAML.save_yaml(function)contrib/legacy/lazyaddon_creator.py:336def save_yaml(addon, output_dir)-- Guarda el dict como archivo YAML en output_dir.main(function)contrib/legacy/lazyaddon_creator.py:357def main()
contrib/legacy/lazyarpspoofing.py
check_sudo(function)contrib/legacy/lazyarpspoofing.py:27def check_sudo()enable_ip_forward(function)contrib/legacy/lazyarpspoofing.py:35def enable_ip_forward()disable_ip_forward(function)contrib/legacy/lazyarpspoofing.py:38def disable_ip_forward()get_local_ip(function)contrib/legacy/lazyarpspoofing.py:41def get_local_ip(ifname)get_mac(function)contrib/legacy/lazyarpspoofing.py:49def get_mac(ip, device, retries, timeout)spoofer(function)contrib/legacy/lazyarpspoofing.py:69def spoofer(target, spoofed, device)main(function)contrib/legacy/lazyarpspoofing.py:80def main()
contrib/legacy/lazybinenc.py
Depends on: cli/commands/pwn.py, core/console.py, core/prompt.py
generate_key_iv(function)contrib/legacy/lazybinenc.py:12def generate_key_iv(sessions_path)main(function)contrib/legacy/lazybinenc.py:54def main()
contrib/legacy/lazybotcli.py
encrypt(function)contrib/legacy/lazybotcli.py:30def encrypt(plaintext, key)decrypt(function)contrib/legacy/lazybotcli.py:36def decrypt(ciphertext, key)main(function)contrib/legacy/lazybotcli.py:42def main()
contrib/legacy/lazybotnet.py
encrypt(function)contrib/legacy/lazybotnet.py:46def encrypt(plaintext, key)decrypt(function)contrib/legacy/lazybotnet.py:52def decrypt(ciphertext, key)add_to_botnet(function)contrib/legacy/lazybotnet.py:58def add_to_botnet(ip, port, botnet_file)clean_botnet(function)contrib/legacy/lazybotnet.py:62def clean_botnet(ip, port, botnet_file)send_to_botnet(function)contrib/legacy/lazybotnet.py:71def send_to_botnet(cmd, key, botnet_file)Keylogger.__init__(method)contrib/legacy/lazybotnet.py:90def __init__(self, key, log_file)Keylogger.on_press(method)contrib/legacy/lazybotnet.py:95def on_press(self, key)Keylogger.start(method)contrib/legacy/lazybotnet.py:106def start(self)Keylogger.get_log(method)contrib/legacy/lazybotnet.py:110def get_log(self)Keylogger.save_log(method)contrib/legacy/lazybotnet.py:113def save_log(self)Keylogger.run(method)contrib/legacy/lazybotnet.py:120def run(self)Keylogger.setup_persistence(method)contrib/legacy/lazybotnet.py:125def setup_persistence(self)Keylogger.create_shortcut(method)contrib/legacy/lazybotnet.py:136def create_shortcut(self, script_path, shortcut_path)handle_client(function)contrib/legacy/lazybotnet.py:144def handle_client(conn, key, botnet_file, log_file)start_server(function)contrib/legacy/lazybotnet.py:182def start_server(host, port, key, botnet_file, log_file)
contrib/legacy/lazycam.py
RTSPScanner.__init__(method)contrib/legacy/lazycam.py:33def __init__(self, verbose, wspace)RTSPScanner.run(method)contrib/legacy/lazycam.py:49def run(self)RTSPScanner.resizeImg(method)contrib/legacy/lazycam.py:68def resizeImg(self, img, output, height, ratio, fmt)RTSPScanner.splitCSV(method)contrib/legacy/lazycam.py:77def splitCSV(self, csv)RTSPScanner.scanner(method)contrib/legacy/lazycam.py:83def scanner(self)RTSPScanner.delCameras(method)contrib/legacy/lazycam.py:136def delCameras(self)RTSPScanner.addCameras(method)contrib/legacy/lazycam.py:149def addCameras(self)cla(function)contrib/legacy/lazycam.py:212def cla()main(function)contrib/legacy/lazycam.py:257def main()
contrib/legacy/lazydeepseekcli.py
Depends on: core/logging.py
Imported by: modules/llm_adapter.py, tests/test_c2_surfaces.py
truncate_message(function)contrib/legacy/lazydeepseekcli.py:41def truncate_message(message, max_chars)configure_logging(function)contrib/legacy/lazydeepseekcli.py:45def configure_logging(debug)load_knowledge_base(function)contrib/legacy/lazydeepseekcli.py:167def load_knowledge_base(file_path)save_knowledge_base(function)contrib/legacy/lazydeepseekcli.py:174def save_knowledge_base(knowledge_base, file_path)add_to_knowledge_base(function)contrib/legacy/lazydeepseekcli.py:179def add_to_knowledge_base(prompt, command, file_path)get_relevant_knowledge(function)contrib/legacy/lazydeepseekcli.py:185def get_relevant_knowledge(prompt)transform_knowledge_base(function)contrib/legacy/lazydeepseekcli.py:193def transform_knowledge_base(prompt_builder)generate(function)contrib/legacy/lazydeepseekcli.py:232def generate()process_prompt_local(function)contrib/legacy/lazydeepseekcli.py:261def process_prompt_local(prompt, debug, mode)process_prompt_localreport(function)contrib/legacy/lazydeepseekcli.py:269def process_prompt_localreport(prompt, debug, mode)parse_args(function)contrib/legacy/lazydeepseekcli.py:277def parse_args()
contrib/legacy/lazydisassebler.py
X64Disassembler.__init__(method)contrib/legacy/lazydisassebler.py:34def __init__(self)-- Initializes the X64Disassembler instance.X64Disassembler.read_elf_header(method)contrib/legacy/lazydisassebler.py:79def read_elf_header(self, data)-- Reads the ELF header and finds the code section.X64Disassembler.parse_modrm(method)contrib/legacy/lazydisassebler.py:135def parse_modrm(self, modrm, rex)-- Parses the ModR/M byte and extracts mod, reg, and rm fields.X64Disassembler.parse_sib(method)contrib/legacy/lazydisassebler.py:173def parse_sib(self, sib, rex)-- Parses the SIB byte and extracts scale, index, and base fields.X64Disassembler.get_operand_str(method)contrib/legacy/lazydisassebler.py:212def get_operand_str(self, mod, rm, rex, bytes_data, offset)-- Gets the string representation of the operand based on mod/rm.X64Disassembler.disassemble(method)contrib/legacy/lazydisassebler.py:305def disassemble(self, bytes_data, file_offset, vaddr, size, entry_point)-- Main disassembler for x86-64 code.main(function)contrib/legacy/lazydisassebler.py:489def main()-- Main function for the disassembler.
contrib/legacy/lazyftpsniff.py
check_sudo(function)contrib/legacy/lazyftpsniff.py:21def check_sudo()signal_handler(function)contrib/legacy/lazyftpsniff.py:34def signal_handler(sig, frame)parse_arguments(function)contrib/legacy/lazyftpsniff.py:42def parse_arguments()sniffer_ftp(function)contrib/legacy/lazyftpsniff.py:56def sniffer_ftp(pkt)main(function)contrib/legacy/lazyftpsniff.py:69def main()
contrib/legacy/lazygalazy.py
Depends on: modules/backdoor/server.c
SamsungKnoxExploitServer.do_GET(method)contrib/legacy/lazygalazy.py:11def do_GET(self)SamsungKnoxExploitServer.apk_bytes(method)contrib/legacy/lazygalazy.py:33def apk_bytes(self)SamsungKnoxExploitServer.launch_html(method)contrib/legacy/lazygalazy.py:36def launch_html(self)SamsungKnoxExploitServer.exploit_js(method)contrib/legacy/lazygalazy.py:49def exploit_js(self)SamsungKnoxExploitServer.rand_word(method)contrib/legacy/lazygalazy.py:93def rand_word(self)main(function)contrib/legacy/lazygalazy.py:97def main()
contrib/legacy/lazygptcli.py
Depends on: contrib/legacy/lazygptcli_unified.py, core/logging.py, modules/colors.py
signal_handler(function)contrib/legacy/lazygptcli.py:66def signal_handler(sig, frame)show_help(function)contrib/legacy/lazygptcli.py:73def show_help(message)check_api_key(function)contrib/legacy/lazygptcli.py:77def check_api_key()configure_logging(function)contrib/legacy/lazygptcli.py:83def configure_logging(debug)parse_args(function)contrib/legacy/lazygptcli.py:87def parse_args()create_complex_prompt(function)contrib/legacy/lazygptcli.py:94def create_complex_prompt(base_prompt, history, knowledge_base, error_message)execute_command(function)contrib/legacy/lazygptcli.py:108def execute_command(command)load_knowledge_base(function)contrib/legacy/lazygptcli.py:118def load_knowledge_base(file_path)save_knowledge_base(function)contrib/legacy/lazygptcli.py:124def save_knowledge_base(knowledge_base, file_path)add_to_knowledge_base(function)contrib/legacy/lazygptcli.py:128def add_to_knowledge_base(prompt, command, file_path)get_relevant_knowledge(function)contrib/legacy/lazygptcli.py:133def get_relevant_knowledge(prompt)transform_knowledge_base(function)contrib/legacy/lazygptcli.py:141def transform_knowledge_base(client)cleanup_temp_files(function)contrib/legacy/lazygptcli.py:164def cleanup_temp_files()main(function)contrib/legacy/lazygptcli.py:177def main()
contrib/legacy/lazygptcli_unified.py
Depends on: core/logging.py, modules/colors.py
Imported by: contrib/legacy/lazygptcli.py
truncate_message(function)contrib/legacy/lazygptcli_unified.py:53def truncate_message(message, max_chars)process_prompt(function)contrib/legacy/lazygptcli_unified.py:318def process_prompt(client, prompt, debug)-- Generate a single-line shell command from a user prompt.process_prompt_script(function)contrib/legacy/lazygptcli_unified.py:323def process_prompt_script(client, prompt, debug)-- Generate a full script from a user prompt.process_prompt_adversary(function)contrib/legacy/lazygptcli_unified.py:328def process_prompt_adversary(client, prompt, debug)-- Answer questions about MITRE ATT&CK techniques and Atomic Red Team.process_prompt_general(function)contrib/legacy/lazygptcli_unified.py:333def process_prompt_general(client, prompt, debug)-- General red team assistant with payload.json context and DeepSeek fallback.process_prompt_search(function)contrib/legacy/lazygptcli_unified.py:341def process_prompt_search(client, prompt, debug)-- Research and threat intelligence analysis.process_prompt_task(function)contrib/legacy/lazygptcli_unified.py:346def process_prompt_task(client, prompt, debug)-- Analyze task assessment JSON for completion status and next commands.process_prompt_vuln(function)contrib/legacy/lazygptcli_unified.py:356def process_prompt_vuln(client, prompt, debug, event)-- Analyze Nmap output for vulnerabilities and generate penetration test action plan.process_prompt_redop(function)contrib/legacy/lazygptcli_unified.py:382def process_prompt_redop(client, prompt, debug)-- Evaluate Red Team operation status from JSON database params.
contrib/legacy/lazyhoneypot.py
Depends on: core/logging.py
parse_args(function)contrib/legacy/lazyhoneypot.py:34def parse_args()setup_logging(function)contrib/legacy/lazyhoneypot.py:52def setup_logging(log_file)generate_rsa_key(function)contrib/legacy/lazyhoneypot.py:56def generate_rsa_key(key_filename)Server.__init__(method)contrib/legacy/lazyhoneypot.py:61def __init__(self)Server.check_channel_request(method)contrib/legacy/lazyhoneypot.py:64def check_channel_request(self, kind, chanid)Server.check_auth_password(method)contrib/legacy/lazyhoneypot.py:69def check_auth_password(self, username, password)handle_connection(function)contrib/legacy/lazyhoneypot.py:74def handle_connection(client_socket, host_key, commands_log, downloads_log, downloads_dir)handle_file_download(function)contrib/legacy/lazyhoneypot.py:110def handle_file_download(command, downloads_dir, downloads_log)log_command(function)contrib/legacy/lazyhoneypot.py:128def log_command(command, commands_log)log_downloaded_file(function)contrib/legacy/lazyhoneypot.py:132def log_downloaded_file(filename, url, downloads_log)analyze_traffic(function)contrib/legacy/lazyhoneypot.py:136def analyze_traffic()process_packet(function)contrib/legacy/lazyhoneypot.py:137def process_packet(packet)alert_admin(function)contrib/legacy/lazyhoneypot.py:147def alert_admin(message)main(function)contrib/legacy/lazyhoneypot.py:165def main()
contrib/legacy/lazyhttpreverseshell.py
Depends on: modules/backdoor/server.c
encrypt(function)contrib/legacy/lazyhttpreverseshell.py:14def encrypt(data)decrypt(function)contrib/legacy/lazyhttpreverseshell.py:17def decrypt(data)compress(function)contrib/legacy/lazyhttpreverseshell.py:20def compress(data)decompress(function)contrib/legacy/lazyhttpreverseshell.py:23def decompress(data)reverse_http_shell_client(function)contrib/legacy/lazyhttpreverseshell.py:26def reverse_http_shell_client(lhost, rhost, rport)reverse_http_shell_server(function)contrib/legacy/lazyhttpreverseshell.py:50def reverse_http_shell_server(lhost, lport)RequestHandler.do_GET(method)contrib/legacy/lazyhttpreverseshell.py:52def do_GET(self)RequestHandler.do_POST(method)contrib/legacy/lazyhttpreverseshell.py:65def do_POST(self)parse_arguments(function)contrib/legacy/lazyhttpreverseshell.py:88def parse_arguments(args)
contrib/legacy/lazykeygen.py
pad(function)contrib/legacy/lazykeygen.py:8def pad(s)encrypt(function)contrib/legacy/lazykeygen.py:11def encrypt(plaintext, key)decrypt(function)contrib/legacy/lazykeygen.py:17def decrypt(ciphertext, key)generate_key(function)contrib/legacy/lazykeygen.py:23def generate_key(length)main(function)contrib/legacy/lazykeygen.py:26def main()
contrib/legacy/lazylfi2rce.py
signal_handler(function)contrib/legacy/lazylfi2rce.py:29def signal_handler(sig, frame)check_lfi_success(function)contrib/legacy/lazylfi2rce.py:35def check_lfi_success(response_text)check_rfi_success(function)contrib/legacy/lazylfi2rce.py:39def check_rfi_success(response_text)main(function)contrib/legacy/lazylfi2rce.py:43def main()
contrib/legacy/lazyllmchat.py
Depends on: modules/ai_model.py, modules/llm_factory.py
LazyOwnShellBridge.__init__(method)contrib/legacy/lazyllmchat.py:25def __init__(self, script_path)no_history_init(function)contrib/legacy/lazyllmchat.py:38def no_history_init(self_)LazyOwnShellBridge.execute(method)contrib/legacy/lazyllmchat.py:65def execute(self, command)target(function)contrib/legacy/lazyllmchat.py:70def target()SessionContextProvider.__init__(method)contrib/legacy/lazyllmchat.py:105def __init__(self, session_path)SessionContextProvider.get_last_lines(method)contrib/legacy/lazyllmchat.py:108def get_last_lines(self, count)PromptBuilder.for_command_analysis(method)contrib/legacy/lazyllmchat.py:133def for_command_analysis(command, output, context, history)PromptBuilder.for_direct_query(method)contrib/legacy/lazyllmchat.py:149def for_direct_query(query, context, history)LLMEngine.__init__(method)contrib/legacy/lazyllmchat.py:164def __init__(self)LLMEngine.is_ready(method)contrib/legacy/lazyllmchat.py:179def is_ready(self)LLMEngine.ask(method)contrib/legacy/lazyllmchat.py:182def ask(self, prompt)LLMEngine.get_history_text(method)contrib/legacy/lazyllmchat.py:194def get_history_text(self)LazyOwnPromptRenderer.render(method)contrib/legacy/lazyllmchat.py:208def render(self)LazyOwnPromptRenderer.banner(method)contrib/legacy/lazyllmchat.py:223def banner(self)LazyOwnLLMChat.__init__(method)contrib/legacy/lazyllmchat.py:235def __init__(self)LazyOwnLLMChat.run(method)contrib/legacy/lazyllmchat.py:280def run(self, initial_query)main(function)contrib/legacy/lazyllmchat.py:309def main()
contrib/legacy/lazylogpoisoning.py
Depends on: modules/lazyencoder_decoder.py
ensure_http_prefix(function)contrib/legacy/lazylogpoisoning.py:39def ensure_http_prefix(url)signal_handler(function)contrib/legacy/lazylogpoisoning.py:45def signal_handler(sig, frame)main(function)contrib/legacy/lazylogpoisoning.py:53def main()
contrib/legacy/lazymariadb_rce_cve_2016-662.py
info(function)contrib/legacy/lazymariadb_rce_cve_2016-662.py:59def info(str)errmsg(function)contrib/legacy/lazymariadb_rce_cve_2016-662.py:63def errmsg(str)shutdown(function)contrib/legacy/lazymariadb_rce_cve_2016-662.py:67def shutdown(code)
contrib/legacy/lazymidm.py
get_mac(function)contrib/legacy/lazymidm.py:12def get_mac(ip)spoof(function)contrib/legacy/lazymidm.py:18def spoof(target_ip, spoof_ip)restore(function)contrib/legacy/lazymidm.py:27def restore(target_ip, spoof_ip)mitm(function)contrib/legacy/lazymidm.py:37def mitm(target_ip, gateway_ip)start_sslstrip(function)contrib/legacy/lazymidm.py:50def start_sslstrip(port)start_tcpdump(function)contrib/legacy/lazymidm.py:54def start_tcpdump(interface, output_file)setup_monitor_mode(function)contrib/legacy/lazymidm.py:58def setup_monitor_mode(interface)main(function)contrib/legacy/lazymidm.py:68def main()
contrib/legacy/lazymitmap.py
print_header(function)contrib/legacy/lazymitmap.py:45def print_header()run_cmd_write(function)contrib/legacy/lazymitmap.py:49def run_cmd_write(cmd_args, s)-- Write a file using sudo.write_file(function)contrib/legacy/lazymitmap.py:63def write_file(path, s)append_file(function)contrib/legacy/lazymitmap.py:67def append_file(path, s)-- Append to the file, don't overwrite.create_dir(function)contrib/legacy/lazymitmap.py:72def create_dir(directory)-- Create directory with sudo if it does not exist.set_permissions(function)contrib/legacy/lazymitmap.py:77def set_permissions(directory, permissions)-- Set directory permissions with sudo.install_dependencies(function)contrib/legacy/lazymitmap.py:84def install_dependencies()-- Install required dependencies.backup_file(function)contrib/legacy/lazymitmap.py:121def backup_file(filepath)-- Backup a given file.restore_file(function)contrib/legacy/lazymitmap.py:128def restore_file(filepath)-- Restore a backed-up file.restart_service(function)contrib/legacy/lazymitmap.py:138def restart_service(service)-- Restart a given service.flush_iptables(function)contrib/legacy/lazymitmap.py:145def flush_iptables()-- Flush iptables rules.setup_network_manager(function)contrib/legacy/lazymitmap.py:153def setup_network_manager(ap_iface)-- Setup NetworkManager configuration for the AP interface.configure_dnsmasq(function)contrib/legacy/lazymitmap.py:163def configure_dnsmasq(ap_iface, ap_ip_range_start, ap_ip_range_end, ap_ip_gateway, dns_ip_1, dns_ip_2, sslstrip)-- Configure dnsmasq based on SSLSTRIP usage.configure_hostapd(function)contrib/legacy/lazymitmap.py:195def configure_hostapd(ap_iface, ssid, channel, wpa_passphrase)-- Configure hostapd based on user input.setup_iptables(function)contrib/legacy/lazymitmap.py:228def setup_iptables(ap_iface, ap_ip, net_iface)-- Setup iptables rules.set_speed_limit(function)contrib/legacy/lazymitmap.py:248def set_speed_limit(ap_iface, speed_up, speed_down)-- Set speed limit for the clients.start_services(function)contrib/legacy/lazymitmap.py:254def start_services(ap_iface, script_path, sslstrip, wireshark, driftnet, tshark)-- Start necessary services based on user input.cleanup(function)contrib/legacy/lazymitmap.py:315def cleanup()-- Cleanup actions to restore system state.signal_handler(function)contrib/legacy/lazymitmap.py:324def signal_handler(sig, frame)
contrib/legacy/lazynetbios.py
check_sudo(function)contrib/legacy/lazynetbios.py:30def check_sudo()signal_handler(function)contrib/legacy/lazynetbios.py:38def signal_handler(sig, frame)scan_netbios(function)contrib/legacy/lazynetbios.py:45def scan_netbios(ip_range)check_arp(function)contrib/legacy/lazynetbios.py:58def check_arp(ip)check_netbios(function)contrib/legacy/lazynetbios.py:71def check_netbios(ip)send_nbns_spoof(function)contrib/legacy/lazynetbios.py:90def send_nbns_spoof(target_ip, target_name, spoof_ip, trans_id)generate_ip_range(function)contrib/legacy/lazynetbios.py:115def generate_ip_range(start_ip, end_ip)
contrib/legacy/lazyntlrelayx.py
parse_hash_file(function)contrib/legacy/lazyntlrelayx.py:5def parse_hash_file(file_path)ntlm_relay(function)contrib/legacy/lazyntlrelayx.py:52def ntlm_relay(target_ip, credentials)
contrib/legacy/lazyopenssh77enum2.py
Depends on: core/logging.py
add_boolean(function)contrib/legacy/lazyopenssh77enum2.py:19def add_boolean()service_accept(function)contrib/legacy/lazyopenssh77enum2.py:30def service_accept()invalid_username(function)contrib/legacy/lazyopenssh77enum2.py:36def invalid_username()check_user(function)contrib/legacy/lazyopenssh77enum2.py:50def check_user(username)
contrib/legacy/lazyphishingai.py
Depends on: core/logging.py
Imported by: modules/llm_adapter.py
clean_think(function)contrib/legacy/lazyphishingai.py:28def clean_think(texto)clean_yaml(function)contrib/legacy/lazyphishingai.py:31def clean_yaml(texto)truncate_message(function)contrib/legacy/lazyphishingai.py:37def truncate_message(message, max_chars)configure_logging(function)contrib/legacy/lazyphishingai.py:42def configure_logging(debug)create_complex_prompt(function)contrib/legacy/lazyphishingai.py:46def create_complex_prompt(base_prompt, history, knowledge_base)load_knowledge_base(function)contrib/legacy/lazyphishingai.py:101def load_knowledge_base(file_path)save_knowledge_base(function)contrib/legacy/lazyphishingai.py:110def save_knowledge_base(knowledge_base, file_path)add_to_knowledge_base(function)contrib/legacy/lazyphishingai.py:117def add_to_knowledge_base(prompt, command, file_path)get_relevant_knowledge(function)contrib/legacy/lazyphishingai.py:122def get_relevant_knowledge(prompt)process_prompt_local_yaml(function)contrib/legacy/lazyphishingai.py:132def process_prompt_local_yaml(prompt, debug, mode, output_file)generate(function)contrib/legacy/lazyphishingai.py:155def generate()parse_args(function)contrib/legacy/lazyphishingai.py:192def parse_args()
contrib/legacy/lazyproxy.py
Depends on: modules/colors.py
check_sudo(function)contrib/legacy/lazyproxy.py:40def check_sudo()signal_handler(function)contrib/legacy/lazyproxy.py:47def signal_handler(sig, frame)hexdump(function)contrib/legacy/lazyproxy.py:52def hexdump(src, length)receive_from(function)contrib/legacy/lazyproxy.py:63def receive_from(connection)request_handler(function)contrib/legacy/lazyproxy.py:77def request_handler(buffer)response_handler(function)contrib/legacy/lazyproxy.py:82def response_handler(buffer)get_ip_from_url(function)contrib/legacy/lazyproxy.py:87def get_ip_from_url(url)handle_request(function)contrib/legacy/lazyproxy.py:104def handle_request(client_socket, address)start_proxy(function)contrib/legacy/lazyproxy.py:183def start_proxy()
contrib/legacy/lazypwn.py
Depends on: cli/commands/pwn.py
BinaryFinder.__init__(method)contrib/legacy/lazypwn.py:25def __init__(self)BinaryFinder.find_suid_binaries(method)contrib/legacy/lazypwn.py:28def find_suid_binaries(self)BinaryFinder.find_capabilities_binaries(method)contrib/legacy/lazypwn.py:36def find_capabilities_binaries(self)BinaryFinder.find_executable_binaries(method)contrib/legacy/lazypwn.py:44def find_executable_binaries(self)BinaryFinder.find_specific_name_binaries(method)contrib/legacy/lazypwn.py:52def find_specific_name_binaries(self, names)BinaryFinder.process_output(method)contrib/legacy/lazypwn.py:61def process_output(self, output)BinaryFinder.get_found_binaries(method)contrib/legacy/lazypwn.py:67def get_found_binaries(self)BinaryAttacker.__init__(method)contrib/legacy/lazypwn.py:71def __init__(self, binary_path)BinaryAttacker.analyze_with_ltrace(method)contrib/legacy/lazypwn.py:76def analyze_with_ltrace(self)BinaryAttacker.extract_strings(method)contrib/legacy/lazypwn.py:83def extract_strings(self)BinaryAttacker.prepare_attack(method)contrib/legacy/lazypwn.py:90def prepare_attack(self)BinaryAttacker.exploit_with_pwntools(method)contrib/legacy/lazypwn.py:170def exploit_with_pwntools(self)main(function)contrib/legacy/lazypwn.py:181def main()
Next: API_p6.md