Skip to content

Agent KB_root_p2

grisun0 edited this page Oct 17, 2026 · 22 revisions

Subsystem: root (page 2 of 2)

Previous: KB_root.md

lazyown.py

  • Doc: lazyown Author: Gris Iscomeback Email: grisiscomeback at gmail dot com Creation Date...
  • Layer: utility
  • Language: py
  • Symbols:
    • _ux_debug (function, line 157) def _ux_debug(context, exc)
    • _parse_bool_setting (function, line 212) def _parse_bool_setting(value)
    • _PayloadSettableProxy (class, line 234) class _PayloadSettableProxy
    • LazyOwnShell (class, line 299) class LazyOwnShell(Cmd)
    • main (function, line 5002) def main()
    • __init__ (method, line 246) def __init__(self, params)
    • __getattr__ (method, line 250) def __getattr__(self, name)
    • __setattr__ (method, line 256) def __setattr__(self, name, value)
    • __init__ (method, line 374) def __init__(self)
    • _register_ux_settables (method, line 677) def _register_ux_settables(self)
    • _load_extended_params (method, line 748) def _load_extended_params(self)
    • log_command (method, line 781) def log_command(self, cmd_name, cmd_args, start_time, end_time, duration_ms)
    • default (method, line 844) def default(self, line)
    • scripts (method, line 873) def scripts(self)
    • refresh_prompt (method, line 892) def refresh_prompt(self)
    • do_set (method, line 903) def do_set(self, line)
    • _ui_hints_level (method, line 928) def _ui_hints_level(self)
    • _toast_hook (method, line 939) def _toast_hook(self, data)
    • _unified_tips_hook (method, line 968) def _unified_tips_hook(self, data)
    • _sync_chain_active (method, line 1004) def _sync_chain_active(self, tips_engine)
    • _chain_boot_prompt (method, line 1018) def _chain_boot_prompt(self)
    • _build_chain_prompt_engine (method, line 1033) def _build_chain_prompt_engine(self)
    • _chain_resolver (method, line 1058) def _chain_resolver(self, cmd, phase)
    • _maybe_chain_prompt (method, line 1076) def _maybe_chain_prompt(self, cmd, phase)
    • _install_crypto_signal_handlers (method, line 1122) def _install_crypto_signal_handlers(self)
    • _run_auto_decrypt (method, line 1148) def _run_auto_decrypt(self)
    • _run_auto_encrypt (method, line 1160) def _run_auto_encrypt(self)
    • _read_recent_commands_for_autosuggest (method, line 1177) def _read_recent_commands_for_autosuggest(self, limit)
    • _refresh_autosuggest (method, line 1204) def _refresh_autosuggest(self, executed_command)
    • _recording_hook (method, line 1230) def _recording_hook(self, data)
    • _did_you_mean (method, line 1243) def _did_you_mean(self, query, limit)
    • logcsv (method, line 1284) def logcsv(self, line, start_time, end_time, duration_ms)
    • cmd (method, line 1325) def cmd(self, line)
    • onecmd_plus_hooks (method, line 1417) def onecmd_plus_hooks(self, statement, add_to_history, raise_keyboard_interrupt, orig_rl_history_length)
    • _split_and_chain (method, line 1520) def _split_and_chain(raw_input)
    • _run_and_chain (method, line 1565) def _run_and_chain(self, parts, add_to_history, raise_keyboard_interrupt)
    • _chain_part_exists (method, line 1647) def _chain_part_exists(self, part)
    • _build_scope_offensive (method, line 1675) def _build_scope_offensive(self)
    • _resolve_offensive (method, line 1694) def _resolve_offensive(self, name)
    • _scope_check (method, line 1713) def _scope_check(self, cmd_name)
    • _scope_confirm (method, line 1760) def _scope_confirm(self, decision)
    • one_cmd (method, line 1781) def one_cmd(self, command)
    • emptyline (method, line 1827) def emptyline(self)
    • load_user_commands (method, line 1852) def load_user_commands(self)
    • save_user_command (method, line 1864) def save_user_command(self, alias, command)
    • list_files_in_directory (method, line 1876) def list_files_in_directory(self, directory)
    • register_tool_commands (method, line 1882) def register_tool_commands(self)
    • _register_lua_command (method, line 2039) def _register_lua_command(self, command_name, lua_function)
    • load_plugins (method, line 2066) def load_plugins(self)
    • load_yaml_plugins (method, line 2096) def load_yaml_plugins(self)
    • register_yaml_plugin (method, line 2119) def register_yaml_plugin(self, plugin_data)
    • register_all_adversary_commands (method, line 2265) def register_all_adversary_commands(self)
    • _register_adversary_command (method, line 2278) def _register_adversary_command(self, adv)
    • display_toastr (method, line 2294) def display_toastr(self, message, type)
    • _wrap_text (method, line 2356) def _wrap_text(self, text, max_width)
    • completedefault (method, line 2373) def completedefault(self, text, line, begidx, endidx)
    • preloop (method, line 2398) def preloop(self)
    • postparsing_precmd (method, line 2536) def postparsing_precmd(self, statement)
    • postloop (method, line 2564) def postloop(self)
    • complete_phase (method, line 2597) def complete_phase(self, text, line, begidx, endidx)
    • complete_l00t (method, line 2602) def complete_l00t(self, text, line, begidx, endidx)
    • complete_loot (method, line 2608) def complete_loot(self, text, line, begidx, endidx)
    • complete_assign (method, line 2613) def complete_assign(self, text, line, begidx, endidx)
    • complete_scope (method, line 2630) def complete_scope(self, text, line, begidx, endidx)
    • _scope_entries (method, line 2643) def _scope_entries(self)
    • _scope_save (method, line 2649) def _scope_save(self, entries, mode)
    • _scope_render (method, line 2667) def _scope_render(self, entries, mode)
    • complete_palette (method, line 2681) def complete_palette(self, text, line, begidx, endidx)
    • run_lazysearch (method, line 2698) def run_lazysearch(self)
    • run_lazysearch_gui (method, line 2715) def run_lazysearch_gui(self)
    • run_lazyown (method, line 2745) def run_lazyown(self)
    • run_update_db (method, line 2771) def run_update_db(self)
    • run_lazynmap (method, line 2801) def run_lazynmap(self)
    • run_lazywerkzeugdebug (method, line 2866) def run_lazywerkzeugdebug(self)
    • run_lazygath (method, line 2923) def run_lazygath(self)
    • run_lazynmapdiscovery (method, line 2955) def run_lazynmapdiscovery(self)
    • run_lazysniff (method, line 2970) def run_lazysniff(self)
    • run_lazyftpsniff (method, line 3019) def run_lazyftpsniff(self)
    • run_lazynetbios (method, line 3065) def run_lazynetbios(self)
    • run_lazyhoneypot (method, line 3116) def run_lazyhoneypot(self)
    • run_lazysearch_bot (method, line 3182) def run_lazysearch_bot(self)
    • run_lazymetaextract0r (method, line 3233) def run_lazymetaextract0r(self)
    • run_lazyownratcli (method, line 3274) def run_lazyownratcli(self)
    • run_lazyownrat (method, line 3334) def run_lazyownrat(self)
    • run_lazybotnet (method, line 3395) def run_lazybotnet(self)
    • run_lazylfi2rce (method, line 3451) def run_lazylfi2rce(self)
    • run_lazylogpoisoning (method, line 3532) def run_lazylogpoisoning(self)
    • run_lazybotcli (method, line 3579) def run_lazybotcli(self)
    • run_lazyssh77enum (method, line 3635) def run_lazyssh77enum(self)
    • run_lazyburpfuzzer (method, line 3685) def run_lazyburpfuzzer(self)
    • run_lazyreverse_shell (method, line 3811) def run_lazyreverse_shell(self)
    • run_lazyarpspoofing (method, line 3861) def run_lazyarpspoofing(self)
    • run_lazyattack (method, line 3915) def run_lazyattack(self)
    • run_lazymsfvenom (method, line 3970) def run_lazymsfvenom(self)
    • run_lazyaslrcheck (method, line 4147) def run_lazyaslrcheck(self)
    • run_lazypathhijacking (method, line 4194) def run_lazypathhijacking(self)
    • run_script (method, line 4227) def run_script(self, script_name)
    • run_command (method, line 4259) def run_command(self, command)
    • _render_chain_next (method, line 4306) def _render_chain_next(self, raw_args)
    • get_output (method, line 4339) def get_output(self)
    • upload_file_to_c2 (method, line 4344) def upload_file_to_c2(self, file_path, clientid)
    • complete_upload_c2 (method, line 4370) def complete_upload_c2(self, text, line, begidx, endidx)
    • download_file_from_c2 (method, line 4398) def download_file_from_c2(self, file_name, clientid)
    • _sync_c2_credentials (method, line 4430) def _sync_c2_credentials(self)
    • issue_command_to_c2 (method, line 4467) def issue_command_to_c2(self, command, client_id)
    • complete_issue_command_to_c2 (method, line 4501) def complete_issue_command_to_c2(self, text, line, begidx, endidx)
    • view_code (method, line 4567) def view_code(self, stdscr)
    • get_available_actions (method, line 4672) def get_available_actions(self)
    • _create_strict_yaml_prompt (method, line 4678) def _create_strict_yaml_prompt(self, base_prompt, nmap_services, knowledge_base)
    • process_scan_csv (method, line 4755) def process_scan_csv(self, csv_file, ip, port, all_data, processed_ips)
    • process_vuln_csv (method, line 4778) def process_vuln_csv(self, csv_file, ip, all_data, processed_ips)
    • _load_adversaries (method, line 4837) def _load_adversaries(self)
    • _parse_adversary_args (method, line 4851) def _parse_adversary_args(self, line)
    • _patch_template_if_needed (method, line 4860) def _patch_template_if_needed(self, adversary, path, replacements)
    • _build_command_stack (method, line 4870) def _build_command_stack(self, adversary, r)
    • _display_adversary_info (method, line 4884) def _display_adversary_info(self, adversary, commands)
    • _execute_commands (method, line 4891) def _execute_commands(self, confirm, remote_cmds)
    • do_event_log (method, line 4910) def do_event_log(self, line)
    • do_state_snapshot (method, line 4940) def do_state_snapshot(self, line)
    • do_route (method, line 4979) def do_route(self, line)
    • _persist (function, line 694) def _persist(name, _old, _new)
    • wrapper (function, line 2043) def wrapper(arg)
    • wrapper_yaml (function, line 2159) def wrapper_yaml(arg)
    • cmd_wrapper (function, line 2287) def cmd_wrapper(_)
    • show_toastr (function, line 2351) def show_toastr()
    • _handler (function, line 1139) def _handler(received, frame, _signum)
    • _chain_perror (function, line 1602) def _chain_perror()
    • make_wrapper (function, line 1941) def make_wrapper(cmd_template, tname, default_target)
    • tool_wrapper (function, line 1942) def tool_wrapper(arg)
  • 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

mutate.sh

  • Layer: utility
  • Language: sh

pwntomate.py

  • Doc: This software must not be used by military or secret service organisations.
  • Layer: utility
  • Language: py
  • Symbols:
    • _build_substitutions (function, line 113) def _build_substitutions(host_addr, port, toolname_value, basedir_value, tunnel)
    • _fix_sessions_owner (function, line 143) def _fix_sessions_owner()
    • _run_tool (function, line 203) def _run_tool(cmd)
  • Depends on: modules/security_sanitizers.py, skills/claude_md_orchestrator/parser.py

py2elf.sh

  • Doc: Nombre del script: py2elf.sh Autor: Gris Iscomeback Correo electrónico...
  • Layer: utility
  • Language: sh

readmeneitor.py

  • Doc: — Automated documentation generator for LazyOwn RedTeam Framework.
  • Layer: utility
  • Language: py
  • Symbols:
    • normalize_trailing_newline (function, line 74) def normalize_trailing_newline(output_path)
    • load_command_index (function, line 83) def load_command_index(index_path)
    • build_command_map (function, line 104) def build_command_map(index_data)
    • extract_docstrings_from_file (function, line 132) def extract_docstrings_from_file(filepath)
    • extract_docstrings_from_dir (function, line 161) def extract_docstrings_from_dir(dirpath)
    • group_commands_by_phase (function, line 187) def group_commands_by_phase(cmd_map)
    • extract_functions_from_file (function, line 209) def extract_functions_from_file(filepath)
    • write_utils_md (function, line 241) def write_utils_md(functions, output_path)
    • write_commands_md (function, line 276) def write_commands_md(cmd_map, docstrings, groups, output_path)
    • convert_to_html (function, line 343) def convert_to_html(md_path, html_path)
    • main (function, line 379) def main()

run_telegram_hermes.sh

  • Doc: Launcher for telegram_hermes.py Uses the dedicated venv with python-telegram-bot dependencies
  • Layer: utility
  • Language: sh

run_topoexploit_agent.sh

  • Doc: Run TopoExploit against an ExploitGym task using the local model.
  • Layer: utility
  • Language: sh
  • Symbols:
    • banner (function, line 29)
    • start_api (function, line 38)

setup.py

  • Doc: Compatibility shim for legacy python setup.py invocations.
  • Layer: infrastructure
  • Language: py

slack_c2_bot.py

  • Layer: utility
  • Language: py
  • Symbols:
    • SecureSessionManager (class, line 28) class SecureSessionManager
    • capture_shell_output (function, line 95) def capture_shell_output(cmd)
    • handle_message (function, line 113) def handle_message(event, say, logger)
    • cmd_addcli (function, line 177) def cmd_addcli(ack, respond, command)
    • cmd_clients (function, line 195) def cmd_clients(ack, respond, command)
    • cmd_download (function, line 209) def cmd_download(ack, respond, command)
    • handle_file (function, line 240) def handle_file(event, say, logger)
    • mentioned (function, line 252) def mentioned(ack, say, event)
    • __init__ (method, line 29) def __init__(self)
    • register_failed_attempt (method, line 34) def register_failed_attempt(self, user_id)
    • check_lockout (method, line 42) def check_lockout(self, user_id)
    • check_rate_limit (method, line 52) def check_rate_limit(self, user_id)
    • create_session (method, line 63) def create_session(self, user_id)
    • validate_session (method, line 71) def validate_session(self, user_id)
    • set_client (method, line 81) def set_client(self, user_id, client_id)
    • get_client (method, line 85) def get_client(self, user_id)
  • Depends on: core/parsers.py, lazyown.py, modules/llm_adapter.py, utils.py

telegram_c2.py

  • Doc: download_c2: Handle the /download_c2 command to download a file from the C2.
  • Layer: utility
  • Language: py
  • Symbols:
    • SecureSessionManager (class, line 18) class SecureSessionManager
    • Config (class, line 77) class Config
    • load_payload (function, line 87) def load_payload()
    • start (function, line 93) def start(update, context)
    • exce_cmd (function, line 116) def exce_cmd(update, context)
    • add_cli (function, line 191) def add_cli(update, context)
    • handle_file (function, line 203) def handle_file(update, context)
    • download_c2 (function, line 230) def download_c2(update, context)
    • send_connected_clients (function, line 271) def send_connected_clients(update, context)
    • main (function, line 286) def main()
    • __init__ (method, line 19) def __init__(self)
    • register_failed_attempt (method, line 24) def register_failed_attempt(self, user_id)
    • check_lockout (method, line 31) def check_lockout(self, user_id)
    • check_rate_limit (method, line 40) def check_rate_limit(self, user_id)
    • create_session (method, line 53) def create_session(self, user_id, client_id)
    • validate_session (method, line 61) def validate_session(self, user_id)
    • __init__ (method, line 78) def __init__(self, config_dict)
    • __getitem__ (method, line 83) def __getitem__(self, key)
  • Depends on: core/parsers.py, lazyown.py, modules/llm_adapter.py

telegram_hermes.py

  • Doc: LazyOwn Telegram Bot with Hermes Gateway Integration This bot bridges Telegram to the full...
  • Layer: utility
  • Language: py
  • Symbols:
    • run_lazyown_command (function, line 61) def run_lazyown_command(command, timeout)
    • c2_request (function, line 145) def c2_request(path, method, body)
    • load_payload (function, line 177) def load_payload()
    • SecureSessionManager (class, line 186) class SecureSessionManager
    • start (function, line 255) def start(update, context)
    • help_cmd (function, line 278) def help_cmd(update, context)
    • execute_command (function, line 306) def execute_command(update, context)
    • sitrep (function, line 337) def sitrep(update, context)
    • config_cmd (function, line 373) def config_cmd(update, context)
    • add_cli (function, line 422) def add_cli(update, context)
    • list_clients (function, line 437) def list_clients(update, context)
    • c2_command (function, line 464) def c2_command(update, context)
    • run_agent (function, line 504) def run_agent(update, context)
    • delegate_task_cmd (function, line 533) def delegate_task_cmd(update, context)
    • cron_schedule_cmd (function, line 564) def cron_schedule_cmd(update, context)
    • status_cmd (function, line 597) def status_cmd(update, context)
    • stop_daemon_cmd (function, line 630) def stop_daemon_cmd(update, context)
    • download_file_cmd (function, line 647) def download_file_cmd(update, context)
    • handle_file_upload (function, line 675) def handle_file_upload(update, context)
    • text_command (function, line 712) def text_command(update, context)
    • main (function, line 772) def main()
    • __init__ (method, line 187) def __init__(self)
    • register_failed_attempt (method, line 192) def register_failed_attempt(self, user_id)
    • check_lockout (method, line 199) def check_lockout(self, user_id)
    • check_rate_limit (method, line 208) def check_rate_limit(self, user_id)
    • create_session (method, line 221) def create_session(self, user_id, client_id)
    • validate_session (method, line 229) def validate_session(self, user_id)
    • get_client_id (method, line 241) def get_client_id(self, user_id)
    • set_client_id (method, line 245) def set_client_id(self, user_id, client_id)
  • Depends on: core/parsers.py

test_bdd.sh

  • Layer: testing
  • Language: sh

testmeneitor.py

  • Layer: testing
  • Language: py
  • Symbols:
    • extract_functions (function, line 13) def extract_functions(script_path)
    • run_tests_with_script (function, line 30) def run_tests_with_script(script_path, functions)
    • run_command_with_timeout (function, line 54) def run_command_with_timeout(command, timeout)
    • run_tests_with_bash (function, line 80) def run_tests_with_bash(script_path, functions)
    • TestFunctions (class, line 35) class TestFunctions(TestCase)

user_split.sh

  • Layer: utility
  • Language: sh

utils.py

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally