Repository navigation
Agent KB_core_p2
grisun0 edited this page Oct 16, 2026
·
20 revisions
Previous: KB_core.md
- Doc: Stable structural interfaces (PEP 544
Protocol) for high-level orchestration. - Layer: utility
- Language: py
- Symbols:
-
Selector(class, line 17)class Selector(Protocol) -
LLMBackend(class, line 37)class LLMBackend(Protocol) -
MemoryStore(class, line 51)class MemoryStore(Protocol) -
BridgeCatalog(class, line 62)class BridgeCatalog(Protocol) -
OutcomeEvaluator(class, line 70)class OutcomeEvaluator(Protocol) -
suggest(method, line 27)def suggest(self, target, phase, context) -
complete(method, line 40)def complete(self, system, user, max_tokens, temperature) -
put(method, line 54)def put(self, key, value) -
get(method, line 56)def get(self, key, default) -
search(method, line 58)def search(self, query, k) -
filter(method, line 65)def filter(self, phase, os_id) -
evaluate(method, line 73)def evaluate(self, command, output, target, phase)
-
- Imported by:
tests/test_core.py
- Doc: Reverse-shell fallback secret — sealed persistence contract.
- Layer: utility
- Language: py
- Symbols:
-
seal_reverse_shell_password(function, line 24)def seal_reverse_shell_password(plaintext) -
load_reverse_shell_password(function, line 41)def load_reverse_shell_password(secret_path) -
generate_reverse_shell_password(function, line 65)def generate_reverse_shell_password() -
is_configured_password_valid(function, line 74)def is_configured_password_valid(candidate, minimum_length)
-
- Depends on:
core/hardening.py - Imported by:
lazyc2.py,tests/test_security_alerts_fix.py
- Doc: Terminal-safe Rich console factory.
- Layer: utility
- Language: py
- Symbols:
-
supports_unicode(function, line 33)def supports_unicode() -
get_console(function, line 42)def get_console() -
panel_box(function, line 52)def panel_box() -
milestone_glyph(function, line 57)def milestone_glyph(state) -
progress_bar(function, line 67)def progress_bar(ratio, width)
-
- Depends on:
core/console.py - Imported by:
cli/autosuggest.py,cli/ops_commands.py,cli/tips_engine.py,modules/loop_progress.py,tests/test_safe_console.py
- Doc: Centralized safe command execution for the LazyOwn framework.
- Layer: utility
- Language: py
- Symbols:
-
CommandInjectionError(class, line 44)class CommandInjectionError(PermissionError) -
UrlValidationError(class, line 48)class UrlValidationError(PermissionError) -
needs_shell(function, line 52)def needs_shell(command) -
safe_system(function, line 69)def safe_system(command) -
safe_run_argv(function, line 106)def safe_run_argv(argv) -
safe_run_shell(function, line 146)def safe_run_shell(command) -
safe_clear_screen(function, line 192)def safe_clear_screen() -
validate_url(function, line 207)def validate_url(url) -
safe_git_clone(function, line 234)def safe_git_clone(repo_url, target_dir) -
safe_ip_show(function, line 268)def safe_ip_show(interface) -
safe_find_tool(function, line 305)def safe_find_tool(name) -
safe_file_read(function, line 321)def safe_file_read(path)
-
- Depends on:
core/logging.py - Imported by:
cli/banner_config.py,cli/commands/misc_migrated.py,cli/commands/pwn.py,cli/commands/shellsys.py,core/process.py,core/safe_subprocess.py,lazyc2/blueprints/api_v1.py,modules/atomic_exploit_bridge.py,modules/atomic_resolver.py,modules/autonomous_exploit_engine.py,modules/command_executor.py,modules/conditional_hooks.py,modules/dns_beacon.py,modules/playbook_engine.py,modules/resource_script.py,modules/ttpscope_bridge.py,tests/test_atomic_exploit_bridge.py,tests/test_executor_kernel.py,tests/test_security_hardening_v4.py,tests/test_shell_semantics.py
- Doc: Fail-closed import of attacker-supplied campaign packages.
- Layer: utility
- Language: py
- Symbols:
-
is_safe_identifier(function, line 20)def is_safe_identifier(name) -
filter_columns(function, line 32)def filter_columns(src_columns, dest_columns) -
safe_extract_zip(function, line 51)def safe_extract_zip(archive, dest) -
safe_copy_tree(function, line 93)def safe_copy_tree(src, dest)
-
- Imported by:
cli/commands/campaign.py,tests/test_campaign_import_safety.py
- Doc: Safe subprocess runner for the LazyOwn framework.
- Layer: utility
- Language: py
- Symbols:
-
ShellNotAllowedError(class, line 39)class ShellNotAllowedError(PermissionError) -
SafeRunResult(class, line 44)class SafeRunResult -
SafeRunner(class, line 60)class SafeRunner -
__init__(method, line 70)def __init__(self, audit_log_path) -
run(method, line 73)def run(self, argv) -
run_shell(method, line 105)def run_shell(self, command) -
_audit(method, line 176)def _audit(self, record)
-
- Depends on:
core/hardening.py,core/safe_exec.py - Imported by:
core/process.py,tests/test_safe_subprocess.py,tests/test_safe_subprocess_behavior.py,tests/test_security_hardening.py,tests/test_shell_semantics.py,utils.py
- Doc: Centralized task scheduler for the LazyOwn framework.
- Layer: infrastructure
- Language: py
- Symbols:
-
_TaskInfo(class, line 41)class _TaskInfo -
TaskScheduler(class, line 50)class TaskScheduler -
get_scheduler(function, line 285)def get_scheduler() -
__init__(method, line 61)def __init__(self) -
instance(method, line 73)def instance(cls) -
start(method, line 81)def start(self) -
stop(method, line 100)def stop(self) -
schedule_task(method, line 123)def schedule_task(self, name, interval_seconds, func) -
schedule_once(method, line 157)def schedule_once(self, name, delay_seconds, func) -
cancel_task(method, line 192)def cancel_task(self, name) -
list_tasks(method, line 205)def list_tasks(self) -
_cancel_internal(method, line 224)def _cancel_internal(self, name) -
_schedule_recurring_stdlib(method, line 238)def _schedule_recurring_stdlib(self, info) -
_run_once_wrapper(method, line 254)def _run_once_wrapper(self, name, func) -
_run_stdlib_loop(method, line 268)def _run_stdlib_loop(self) -
_wrapper(function, line 241)def _wrapper() -
_wrapper(function, line 257)def _wrapper()
-
- Depends on:
core/logging.py
- Doc: Security helpers for LazyOwn — anti-debug, certificate generation.
- Layer: utility
- Language: py
- Symbols:
-
anti_debug(function, line 18)def anti_debug() -
generate_certificates(function, line 58)def generate_certificates(output_dir)
-
- Depends on:
core/logging.py
- Doc: Terminal state guard for interactive automation.
- Layer: utility
- Language: py
- Symbols:
-
_tty_fd(function, line 30)def _tty_fd() -
emit_restore_sequences(function, line 41)def emit_restore_sequences() -
apply_stty_sane(function, line 62)def apply_stty_sane() -
TerminalGuard(class, line 73)class TerminalGuard -
__init__(method, line 85)def __init__(self) -
__enter__(method, line 91)def __enter__(self) -
__exit__(method, line 104)def __exit__(self) -
restore(method, line 108)def restore(self)
-
- Imported by:
modules/lazy_runner.py,tests/test_lazy_runner.py
- Doc: Shared text helpers for terminal surfaces.
- Layer: utility
- Language: py
- Symbols:
-
truncate_text(function, line 10)def truncate_text(value, max_len, marker)
-
- Imported by:
cli/autosuggest.py,cli/graph_overlay.py,cli/palette_command.py,cli/palette_overlay.py,cli/reactive_hints.py,cli/reasoning_stream.py,cli/tips_engine.py,cli/toast_bus.py
- Doc: Input validators for runtime configuration values.
- Layer: utility
- Language: py
- Symbols:
-
check_rhost(function, line 26)def check_rhost(rhost) -
check_lhost(function, line 40)def check_lhost(lhost) -
check_lport(function, line 54)def check_lport(lport) -
check_port(function, line 64)def check_port(port, name) -
require_rhost(function, line 77)def require_rhost(params) -
require_lhost(function, line 94)def require_lhost(params) -
require_lport(function, line 107)def require_lport(params) -
require_rport(function, line 120)def require_rport(params)
-
- Depends on:
core/console.py,core/host_policy.py - Imported by:
cli/commands/_base.py,cli/commands/enum.py,cli/commands/mobile_macos.py,cli/commands/pwn.py,core/__init__.py,core/process.py,modules/c2_builder.py,tests/test_core.py,tests/test_host_policy.py,tests/test_input_fuzz.py,tests/test_require_guards.py,utils.py
Generated offline by readmenator from commit bb49626e7e46. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_cli_commands
- community_10_modules_opsec_scorer
- community_11_modules_finding_lifecycle
- community_12_modules_kerberos_core
- community_13_modules_saas_attacks
- community_14_modules_polymorphic_engine
- community_15_contrib_legacy
- community_16_scripts_journal
- community_17_modules_backdoor
- community_18_poc_tui
- community_19_scripts_check_contract_manifest
- community_1_modules_lazyc2
- community_20_scripts_migrate_lazyown
- community_21_tools
- community_22_orphans
- community_2_cli
- community_3_modules_autonomous_daemon
- community_4_modules_lazy_loop
- community_5_lazygui_panels
- community_6_skills_claude_md_orchestrator
- community_7_static_js
- community_8_modules_llm_budget
- community_9_modules_atomic_exploit_bridge
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p22
- API_p23
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- ARCHITECTURE_p5
- ARCHITECTURE_p6
- ARCHITECTURE_p7
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- INDEX_p3
- KB_backdoor
- KB_blueprints
- KB_cgi-bin
- KB_claude_md_orchestrator
- KB_cli
- KB_cli_p2
- KB_cli_p3
- KB_cli_p4
- KB_cli_p5
- KB_commands
- KB_commands_p2
- KB_commands_p3
- KB_commands_p4
- KB_config
- KB_contract
- KB_core
- KB_core_p2
- KB_devtools
- KB_extensions
- KB_hermes-lazyown
- KB_integrations
- KB_js
- KB_js_p2
- KB_js_p3
- KB_js_p4
- KB_lazyc2
- KB_lazygui
- KB_lazyown-docker
- KB_legacy
- KB_legacy_p2
- KB_misc
- KB_modules
- KB_modules_p10
- KB_modules_p11
- KB_modules_p12
- KB_modules_p13
- KB_modules_p14
- KB_modules_p2
- KB_modules_p3
- KB_modules_p4
- KB_modules_p5
- KB_modules_p6
- KB_modules_p7
- KB_modules_p8
- KB_modules_p9
- KB_modules_tools
- KB_palettes
- KB_panels
- KB_plugins
- KB_poc_tui
- KB_root
- KB_root_p2
- KB_rootkit
- KB_scripts
- KB_security
- KB_services
- KB_skills
- KB_skills_claude_md_orchestrator_tests
- KB_skills_p2
- KB_skills_p3
- KB_skills_p4
- KB_skills_p5
- KB_skills_tests
- KB_tests
- KB_tests_p10
- KB_tests_p11
- KB_tests_p12
- KB_tests_p13
- KB_tests_p14
- KB_tests_p15
- KB_tests_p16
- KB_tests_p17
- KB_tests_p2
- KB_tests_p3
- KB_tests_p4
- KB_tests_p5
- KB_tests_p6
- KB_tests_p7
- KB_tests_p8
- KB_tests_p9
- KB_theme
- KB_tools
- KB_widgets
- KB_win_rootkit
- KB_windows
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p28
- SYMBOLS_p29
- SYMBOLS_p3
- SYMBOLS_p30
- SYMBOLS_p31
- SYMBOLS_p32
- SYMBOLS_p33
- SYMBOLS_p34
- SYMBOLS_p35
- SYMBOLS_p36
- SYMBOLS_p37
- SYMBOLS_p38
- SYMBOLS_p39
- SYMBOLS_p4
- SYMBOLS_p40
- SYMBOLS_p41
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes