Skip to content

Agent KB_root_p3

grisun0 edited this page Oct 28, 2026 · 1 revision

Subsystem: root (page 3 of 3)

Previous: KB_root_p2.md

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 20) class SecureSessionManager
    • Config (class, line 79) class Config
    • load_payload (function, line 89) def load_payload()
    • start (function, line 95) def start(update, context)
    • exce_cmd (function, line 118) def exce_cmd(update, context)
    • add_cli (function, line 193) def add_cli(update, context)
    • handle_file (function, line 205) def handle_file(update, context)
    • download_c2 (function, line 232) def download_c2(update, context)
    • send_connected_clients (function, line 273) def send_connected_clients(update, context)
    • main (function, line 288) def main()
    • _resolve_c2_secret (function, line 317) def _resolve_c2_secret(raw)
    • __init__ (method, line 21) def __init__(self)
    • register_failed_attempt (method, line 26) def register_failed_attempt(self, user_id)
    • check_lockout (method, line 33) def check_lockout(self, user_id)
    • check_rate_limit (method, line 42) def check_rate_limit(self, user_id)
    • create_session (method, line 55) def create_session(self, user_id, client_id)
    • validate_session (method, line 63) def validate_session(self, user_id)
    • __init__ (method, line 80) def __init__(self, config_dict)
    • __getitem__ (method, line 85) 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 65) def run_lazyown_command(command, timeout)
    • c2_request (function, line 149) def c2_request(path, method, body)
    • load_payload (function, line 181) def load_payload()
    • SecureSessionManager (class, line 190) class SecureSessionManager
    • start (function, line 259) def start(update, context)
    • help_cmd (function, line 288) def help_cmd(update, context)
    • execute_command (function, line 316) def execute_command(update, context)
    • sitrep (function, line 347) def sitrep(update, context)
    • config_cmd (function, line 383) def config_cmd(update, context)
    • add_cli (function, line 432) def add_cli(update, context)
    • list_clients (function, line 447) def list_clients(update, context)
    • c2_command (function, line 474) def c2_command(update, context)
    • run_agent (function, line 514) def run_agent(update, context)
    • delegate_task_cmd (function, line 543) def delegate_task_cmd(update, context)
    • cron_schedule_cmd (function, line 574) def cron_schedule_cmd(update, context)
    • status_cmd (function, line 607) def status_cmd(update, context)
    • stop_daemon_cmd (function, line 640) def stop_daemon_cmd(update, context)
    • download_file_cmd (function, line 657) def download_file_cmd(update, context)
    • handle_file_upload (function, line 685) def handle_file_upload(update, context)
    • text_command (function, line 722) def text_command(update, context)
    • main (function, line 782) def main()
    • _resolve_auth_secret (function, line 825) def _resolve_auth_secret(raw)
    • _resolve_allowlist (function, line 843) def _resolve_allowlist(raw)
    • __init__ (method, line 191) def __init__(self)
    • register_failed_attempt (method, line 196) def register_failed_attempt(self, user_id)
    • check_lockout (method, line 203) def check_lockout(self, user_id)
    • check_rate_limit (method, line 212) def check_rate_limit(self, user_id)
    • create_session (method, line 225) def create_session(self, user_id, client_id)
    • validate_session (method, line 233) def validate_session(self, user_id)
    • get_client_id (method, line 245) def get_client_id(self, user_id)
    • set_client_id (method, line 249) 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