Skip to content

Agent KB_services

grisun0 edited this page Oct 16, 2026 · 19 revisions

Subsystem: services

lazygui/services/init.py

lazygui/services/backend.py

lazygui/services/event_log.py

lazygui/services/factory.py

lazygui/services/local_backend.py

  • Doc: Local backend that runs the LazyOwn cmd2 console on a PTY.
  • Layer: business_logic
  • Language: py
  • Symbols:
    • LocalPtyBackend (class, line 30) class LocalPtyBackend(Backend)
    • __init__ (method, line 38) def __init__(self, constants, paths, parent)
    • start (method, line 62) def start(self)
    • stop (method, line 87) def stop(self)
    • send_command (method, line 112) def send_command(self, command, target_session)
    • refresh (method, line 117) def refresh(self)
    • resize_terminal (method, line 121) def resize_terminal(self, columns, rows)
    • feed_terminal_input (method, line 127) def feed_terminal_input(self, data)
    • known_sessions (method, line 137) def known_sessions(self)
    • known_listeners (method, line 141) def known_listeners(self)
    • _exec_child_process (method, line 147) def _exec_child_process(self)
    • _configure_master_fd (method, line 156) def _configure_master_fd(self)
    • _install_window_size (method, line 163) def _install_window_size(self)
    • _install_read_notifier (method, line 173) def _install_read_notifier(self)
    • _install_reaper (method, line 180) def _install_reaper(self)
    • _on_master_readable (method, line 187) def _on_master_readable(self)
    • _handle_pty_eof (method, line 215) def _handle_pty_eof(self)
    • _reap_child (method, line 220) def _reap_child(self)
    • _emit_event (method, line 235) def _emit_event(self, level, message)
    • announce_local_operator (method, line 249) def announce_local_operator(self)
  • Depends on: core/logging.py, lazygui/config/constants.py, lazygui/config/paths.py, lazygui/services/backend.py, lazygui/services/models.py
  • Imported by: lazygui/services/__init__.py, lazygui/services/factory.py

lazygui/services/models.py

lazygui/services/teamserver_backend.py

  • Doc: Teamserver backend with Socket.IO real-time and full HTTP API coverage.
  • Layer: business_logic
  • Language: py
  • Symbols:
    • TeamserverCredentials (class, line 39) class TeamserverCredentials
    • TeamserverBackend (class, line 48) class TeamserverBackend(Backend)
    • __init__ (method, line 51) def __init__(self, constants, credentials, parent)
    • start (method, line 80) def start(self)
    • stop (method, line 97) def stop(self)
    • send_command (method, line 112) def send_command(self, command, target_session)
    • refresh (method, line 124) def refresh(self)
    • resize_terminal (method, line 139) def resize_terminal(self, columns, rows)
    • feed_terminal_input (method, line 151) def feed_terminal_input(self, data)
    • known_sessions (method, line 169) def known_sessions(self)
    • known_listeners (method, line 173) def known_listeners(self)
    • known_topology (method, line 177) def known_topology(self)
    • known_campaigns (method, line 181) def known_campaigns(self)
    • request_beacon_results (method, line 185) def request_beacon_results(self, client_id)
    • request_world_model (method, line 210) def request_world_model(self)
    • request_beacon_history (method, line 224) def request_beacon_history(self, client_id)
    • _poll_beacon_results (method, line 242) def _poll_beacon_results(self)
    • _establish_flask_session (method, line 285) def _establish_flask_session(self)
    • _build_http_session (method, line 302) def _build_http_session(self)
    • _build_url (method, line 312) def _build_url(self, path)
    • _http_get_json (method, line 318) def _http_get_json(self, path)
    • _http_post_form (method, line 332) def _http_post_form(self, path, payload)
    • _post_session_command (method, line 346) def _post_session_command(self, command, client_id)
    • _send_command_via_pty (method, line 357) def _send_command_via_pty(self, command)
    • _dispatch_terminal_lines (method, line 378) def _dispatch_terminal_lines(self, data)
    • _refresh_topology (method, line 386) def _refresh_topology(self)
    • _refresh_dashboard (method, line 396) def _refresh_dashboard(self)
    • _install_http_polling (method, line 424) def _install_http_polling(self)
    • _start_socketio (method, line 443) def _start_socketio(self)
    • _stop_socketio (method, line 520) def _stop_socketio(self)
    • _update_from_payload (method, line 530) def _update_from_payload(self, payload)
    • _update_sessions (method, line 537) def _update_sessions(self, payload)
    • _update_listeners (method, line 577) def _update_listeners(self, payload)
    • _update_operator (method, line 608) def _update_operator(self, payload)
    • _parse_graph_nodes (method, line 621) def _parse_graph_nodes(self, payload)
    • _parse_graph_edges (method, line 645) def _parse_graph_edges(self, payload)
    • _build_topology_from_payload (method, line 664) def _build_topology_from_payload(self, payload)
    • _emit_event (method, line 780) def _emit_event(self, level, message)
    • _connect_sio (function, line 444) def _connect_sio()
    • _on_pty_connect (function, line 461) def _on_pty_connect()
    • _on_pty_output (function, line 465) def _on_pty_output(data)
    • _on_terminal_connect (function, line 471) def _on_terminal_connect()
    • _on_terminal_response (function, line 475) def _on_terminal_response(data)
    • _on_output (function, line 481) def _on_output(data)
    • _on_connect (function, line 487) def _on_connect()
    • _on_disconnect (function, line 491) def _on_disconnect()
  • Depends on: core/logging.py, lazyc2/blueprints/auth.py, lazygui/config/constants.py, lazygui/services/backend.py, lazygui/services/models.py
  • Imported by: lazygui/app.py, lazygui/services/__init__.py, lazygui/services/factory.py, lazygui/windows/connect_dialog.py, tests/test_lazygui_backend.py

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally