Repository navigation
Agent API_p6
Previous: API_p5.md
-
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)
-
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)
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)
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()
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()
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()
-
rmrf(function)contrib/legacy/lazypwnkit.py:8def rmrf(path)-- Elimina recursivamente un directorio y su contenido. -
create_exploit_environment(function)contrib/legacy/lazypwnkit.py:13def create_exploit_environment()-- Crea el entorno necesario para el exploit. -
cleanup_exploit_environment(function)contrib/legacy/lazypwnkit.py:31def cleanup_exploit_environment()-- Limpia el entorno creado para el exploit. -
execute_exploit(function)contrib/legacy/lazypwnkit.py:37def execute_exploit(cmd)-- Ejecuta el exploit. -
main(function)contrib/legacy/lazypwnkit.py:79def main()
Depends on: modules/lazyencoder_decoder.py
-
parse_hash_file(function)contrib/legacy/lazyreversentlmv2.py:11def parse_hash_file(file_path) -
reverse_shell(function)contrib/legacy/lazyreversentlmv2.py:58def reverse_shell(target_ip, username, domain, lmhash, nthash, callback_ip, callback_port)
-
highlight_term(function)contrib/legacy/lazysearch.py:29def highlight_term(text, term) -
search_in_parquet(function)contrib/legacy/lazysearch.py:32def search_in_parquet(term, parquet_files) -
main(function)contrib/legacy/lazysearch.py:44def main()
Depends on: core/logging.py
-
signal_handler(function)contrib/legacy/lazysearch_bot.py:59def signal_handler(sig, frame) -
show_help(function)contrib/legacy/lazysearch_bot.py:65def show_help(message) -
check_api_key(function)contrib/legacy/lazysearch_bot.py:69def check_api_key() -
configure_logging(function)contrib/legacy/lazysearch_bot.py:75def configure_logging(debug) -
parse_args(function)contrib/legacy/lazysearch_bot.py:79def parse_args() -
create_complex_prompt(function)contrib/legacy/lazysearch_bot.py:86def create_complex_prompt(base_prompt, history, knowledge_base, error_message) -
execute_command(function)contrib/legacy/lazysearch_bot.py:109def execute_command(command) -
load_knowledge_base(function)contrib/legacy/lazysearch_bot.py:112def load_knowledge_base(file_path) -
save_knowledge_base(function)contrib/legacy/lazysearch_bot.py:118def save_knowledge_base(knowledge_base, file_path) -
add_to_knowledge_base(function)contrib/legacy/lazysearch_bot.py:122def add_to_knowledge_base(prompt, command, file_path) -
get_relevant_knowledge(function)contrib/legacy/lazysearch_bot.py:127def get_relevant_knowledge(prompt) -
transform_knowledge_base(function)contrib/legacy/lazysearch_bot.py:135def transform_knowledge_base(client) -
main(function)contrib/legacy/lazysearch_bot.py:158def main()
Depends on: modules/colors.py
-
Config.__init__(method)contrib/legacy/lazyseo.py:15def __init__(self, config_dict) -
load_payload(function)contrib/legacy/lazyseo.py:23def load_payload() -
make_request(function)contrib/legacy/lazyseo.py:28def make_request(url, retries, timeout) -
results(function)contrib/legacy/lazyseo.py:49def results(file) -
crawl(function)contrib/legacy/lazyseo.py:57def crawl(url) -
ffuf(function)contrib/legacy/lazyseo.py:66def ffuf() -
analyze_seo(function)contrib/legacy/lazyseo.py:76def analyze_seo(url)
Depends on: core/logging.py, utils.py
-
check_sudo(function)contrib/legacy/lazysmbrelay.py:15def check_sudo() -
start_smb_server(function)contrib/legacy/lazysmbrelay.py:27def start_smb_server() -
start_smb_relay(function)contrib/legacy/lazysmbrelay.py:35def start_smb_relay(target, command) -
CustomSMBRelayServer.__init__(method)contrib/legacy/lazysmbrelay.py:42def __init__(self) -
CustomSMBRelayServer.handleData(method)contrib/legacy/lazysmbrelay.py:46def handleData(self) -
CustomSMBRelayServer.execute_remote_command(method)contrib/legacy/lazysmbrelay.py:50def execute_remote_command(self)
-
check_sudo(function)contrib/legacy/lazysniff.py:41def check_sudo() -
signal_handler(function)contrib/legacy/lazysniff.py:50def signal_handler(sig, frame) -
setup_curses(function)contrib/legacy/lazysniff.py:57def setup_curses() -
restore_curses(function)contrib/legacy/lazysniff.py:66def restore_curses(stdscr) -
show_banner(function)contrib/legacy/lazysniff.py:73def show_banner(stdscr, banner) -
process_packet(function)contrib/legacy/lazysniff.py:80def process_packet(packet, packets, win_top, win_bottom) -
analyze_packet(function)contrib/legacy/lazysniff.py:90def analyze_packet(packet) -
capture_packets(function)contrib/legacy/lazysniff.py:112def capture_packets(interface, count, filter, pcap_file, packets, win_top, win_bottom) -
main_curses(function)contrib/legacy/lazysniff.py:118def main_curses(stdscr, packets, interface, count, filter, pcap_file) -
parse_arguments(function)contrib/legacy/lazysniff.py:188def parse_arguments() -
main(function)contrib/legacy/lazysniff.py:197def main()
-
send_payload(function)contrib/legacy/lazysqli.py:13def send_payload(payload, url, s, sql_time) -
sqli_dichotomie(function)contrib/legacy/lazysqli.py:30def sqli_dichotomie(payload_brute, offset, url, s, sql_time) -
sqli_thread(function)contrib/legacy/lazysqli.py:51def sqli_thread(url, db, table, col, sql_time, threads) -
main(function)contrib/legacy/lazysqli.py:89def main(args)
Depends on: core/logging.py
-
execute(function)contrib/legacy/lazyssh.py:13def execute(hostname, port, command)
Depends on: cli/commands/pwn.py
-
connect(function)contrib/legacy/lazyvsftp.py:7def connect(host, port) -
exploit(function)contrib/legacy/lazyvsftp.py:16def exploit(host, port) -
handle_backdoor(function)contrib/legacy/lazyvsftp.py:61def handle_backdoor(s)
Depends on: cli/commands/pwn.py
-
def_handler(function)contrib/legacy/sql.py:8def def_handler(sig, frame) -
getUnicode(function)contrib/legacy/sql.py:15def getUnicode(sqli) -
makeRequest(function)contrib/legacy/sql.py:22def makeRequest(sqli_modified)
Imported by: lazyc2/app_factory.py, lazyc2/blueprints/api.py, tests/test_api_authz.py, tests/test_api_v1.py
-
ApiKey.to_dict(method)core/api_authz.py:94def to_dict(self) -
ApiKey.from_dict(method)core/api_authz.py:107def from_dict(cls, data) -
ApiKey.is_expired(method)core/api_authz.py:119def is_expired(self) -
ApiKey.is_retired(method)core/api_authz.py:124def is_retired(self) -
ApiKey.has_permission(method)core/api_authz.py:127def has_permission(self, permission) -
ApiKey.has_all_permissions(method)core/api_authz.py:130def has_all_permissions(self, permissions) -
ApiKeyStore.__init__(method)core/api_authz.py:170def __init__(self, config) -
ApiKeyStore.config(method)core/api_authz.py:176def config(self)-- The configuration this store was built with. -
ApiKeyStore.list_keys(method)core/api_authz.py:217def list_keys(self, tenant_id)-- List all active keys, optionally filtered by tenant_id. -
ApiKeyStore.find_by_hash(method)core/api_authz.py:229def find_by_hash(self, key_hash)-- Look up a key record by its SHA-256 hash. -
ApiKeyStore.create_key(method)core/api_authz.py:238def create_key(self, tenant_id, label, permissions, expires_in_days)-- Create a new API key and return(ApiKey, plaintext_secret). -
ApiKeyStore.revoke_key(method)core/api_authz.py:273def revoke_key(self, label, tenant_id)-- Revoke every key with label within tenant_id. -
ApiKeyStore.validate_key(method)core/api_authz.py:287def validate_key(self, plaintext)-- Validate a plaintext API key and return the ApiKey record. -
ApiKeyStore.rotate_key(method)core/api_authz.py:309def rotate_key(self, label, tenant_id)-- Rotate an existing key by label. -
require_api_auth(function)core/api_authz.py:365def require_api_auth(store, permissions, require_tenant)-- Flask-route decorator that enforces API-key + tenant authorization. -
decorator(function)core/api_authz.py:405def decorator(f) -
decorated(function)core/api_authz.py:407def decorated() -
create_api_token(function)core/api_authz.py:440def create_api_token(store, tenant_id, label, permissions, expires_in_days)-- Create an API key and return the one-time plaintext token.
Imported by: cli/commands/exploit_migrated.py, cli/commands/mcp_bridge.py, lazyown.py, modules/lazy_runner.py, tests/test_lazy_runner.py
-
is_autonomous(function)core/autonomous.py:21def is_autonomous()-- Return True while an autonomous loop run owns the process. -
autonomous_mode(function)core/autonomous.py:27def autonomous_mode()-- Suppress interactive prompts for the duration of a loop run.
Depends on: lazyown.py
Imported by: tests/test_core_command_bridge.py
-
CommandBridge.__init__(method)core/command_bridge.py:18def __init__(self) -
CommandBridge.ready(method)core/command_bridge.py:25def ready(self)-- Whether the bridge has been successfully initialized. -
CommandBridge.error(method)core/command_bridge.py:30def error(self)-- Error message if initialization failed, or None. -
CommandBridge.onecmd(method)core/command_bridge.py:65def onecmd(self, command)-- Execute a LazyOwn internal command via the shell. -
CommandBridge.one_cmd(method)core/command_bridge.py:89def one_cmd(self, command)-- Execute a command using the shell's one_cmd method. -
CommandBridge.execute(method)core/command_bridge.py:110def execute(self, command)-- Alias for one_cmd. -
get_bridge(function)core/command_bridge.py:126def get_bridge()-- Get or create the singleton CommandBridge instance.
Depends on: core/logging.py, core/payload_schema.py
Imported by: cli/aliases.py, cli/commands/bof_registry.py, cli/commands/command_and_control_migrated.py, cli/commands/defaults.py, cli/commands/help_ui.py, cli/commands/mcp_bridge.py, cli/commands/misc_migrated.py, cli/commands/persist_migrated.py, cli/commands/purple_team.py, cli/commands/recon_migrated.py, cli/commands/security.py, cli/commands/session_ops.py, cli/commands/ux.py, cli/engagement_hooks.py, cli/lazy_orchestrator.py, core/__init__.py, core/credential_vault.py, core/hardening.py, core/prompt.py, lazyc2/blueprints/api.py, lazyown.py, modules/auto_purple.py, modules/beacon_config_builder.py, modules/c2_profile_engine.py, modules/cli_auth.py, modules/config_store.py, modules/db.py, modules/lazy_agent.py, modules/lazy_cli_bridge.py, modules/lazy_installer.py, modules/lazy_intel.py, modules/lazy_loop.py, modules/lazy_sandbox.py, modules/operator_profiles.py, modules/opsec_scorer.py, modules/orchestrator_config.py, modules/reactive_engine.py, modules/redteam_gym.py, skills/lazyown_mcp.py, tests/test_aes_key_propagation.py, tests/test_cli_assign.py, tests/test_cli_command_sets.py, tests/test_core.py, tests/test_core_config.py, tests/test_improvements_spec.py, tests/test_lazy_agent.py, tests/test_lazy_orchestrator.py, tests/test_lazy_runner.py, tests/test_loop_supervision.py, tests/test_orchestrator_yaml.py, utils.py
-
Config.__init__(method)core/config.py:219def __init__(self, config_dict, sessions_dir) -
Config.as_params(method)core/config.py:234def as_params(self)-- Return a shallow copy of the underlying parameter dictionary. -
Config.overridden_keys(method)core/config.py:244def overridden_keys(self)-- Return sorted list of keys that were overridden viaLAZYOWN_*env vars. -
resolve_aes_key(function)core/config.py:261def resolve_aes_key(config_dict)-- Return a 32-byte AES key derived from config, disk, or randomness. -
load_payload(function)core/config.py:327def load_payload(path)-- Load and return the JSON payload atpath. -
load_and_validate(function)core/config.py:345def load_and_validate(path)-- Load[payload.json](https://github.com/grisuno/LazyOwn/blob/2f44e17e04bdafed2bc1a36ee7fe88300d346017/payload.json), validate against the schema, and return a result dict. -
save_payload(function)core/config.py:396def save_payload(payload, path)-- Atomically writepayloadas pretty-printed JSON topath.
Imported by: cli/command_explorer.py, cli/commands/help_ui.py, cli/commands/misc_migrated.py, cli/commands/orchestration.py, cli/commands/recon.py, cli/commands/security.py, cli/commands/ux.py, cli/config_status.py, cli/contextual_help.py, cli/doctor.py, cli/exploit_advisor.py, cli/exploration_view.py, cli/protips.py, cli/reactive_hints.py, cli/session_resumer.py, cli/splash.py, cli/surface_tui.py, cli/tips_engine.py, cli/toast_bus.py, cli/tutorial.py, cli/wizard.py, contrib/legacy/lazybinenc.py, core/__init__.py, core/error_advice.py, core/http.py, core/network.py, core/process.py, core/safe_console.py, core/validators.py, key.py, lazy_sentinel4.py, lazyown.py, modules/apt_playbooks.py, modules/atomic_cli.py, modules/ia_code_analysis.py, modules/ia_logs_analysis.py, modules/ia_network_analysis.py, modules/lilsplunky.py, modules/privesc_predictor.py, modules/rich_tui.py, tests/test_console_stdio.py, tests/test_core.py, tests/test_exploration_and_addons.py, tests/test_lazy_parity.py, tests/test_loop_progress.py, tests/test_scope_guard_integration.py, tests/test_toast_bus.py, tests/test_tui_splash.py, tests/test_tui_style.py, tests/test_tui_themes.py, utils.py
-
colors_enabled(function)core/console.py:98def colors_enabled()-- Return False when NO_COLOR or ANSI_COLORS_DISABLED is set. -
format_line(function)core/console.py:121def format_line(prefix, message, glyph)-- Build a single log line with standard prefix and sanitized message. -
print_error(function)core/console.py:137def print_error(error)-- Print a red error message to stdout (never raises on broken pipes). -
print_msg(function)core/console.py:143def print_msg(msg)-- Print a green informational message to stdout (never raises). -
print_warn(function)core/console.py:149def print_warn(warn)-- Print a magenta/yellow warning message to stdout (never raises). -
print_succ(function)core/console.py:155def print_succ(msg)-- Print a bright green success message to stdout (never raises). -
ensure_blocking_stdio(function)core/console.py:161def ensure_blocking_stdio()-- Restore blocking mode on stdio fds inherited as non-blocking. -
write_stdout(function)core/console.py:180def write_stdout(text)-- Writetextto stdout, tolerating non-blocking or broken pipes.
Depends on: core/config.py, core/crypto.py, core/logging.py
Imported by: cli/commands/security.py, core/hardening.py, lazyown.py, tests/test_credential_vault.py
-
check_dangerous_defaults(function)core/credential_vault.py:63def check_dangerous_defaults(payload)-- Scan payload for unchanged default credential values. -
seal_value(function)core/credential_vault.py:93def seal_value(plaintext, key)-- Encrypt a single credential value. -
unseal_value(function)core/credential_vault.py:112def unseal_value(sealed, key)-- Decrypt a sealed credential value. -
seal_payload(function)core/credential_vault.py:141def seal_payload(payload, key)-- Return a copy ofpayloadwith all sensitive values encrypted. -
unseal_payload(function)core/credential_vault.py:164def unseal_payload(payload, key)-- Return a copy ofpayloadwith all sealed values decrypted. -
rotate_aes_key(function)core/credential_vault.py:186def rotate_aes_key(payload, current_key)-- Generate a new AES key, re-encrypt all sealed values under it. -
generate_secure_defaults(function)core/credential_vault.py:215def generate_secure_defaults()-- Generate cryptographically random default values for sensitive keys.
Imported by: cli/auto_crypto.py, cli/commands/exfiltration.py, core/__init__.py, core/credential_vault.py, modules/db.py, modules/lazy_loop.py, modules/phishing_orchestrator.py, modules/rootkit/rootkit.c, tests/test_core.py, utils.py
-
generate_salt(function)core/crypto.py:24def generate_salt(length)-- Generate a cryptographically random salt. -
derive_key(function)core/crypto.py:36def derive_key(password, salt)-- Derive a Fernet-compatible key from a password using PBKDF2HMAC. -
xor_encrypt_decrypt(function)core/crypto.py:67def xor_encrypt_decrypt(data, key)-- Returnbytearrayproduced by XOR-ing each byte ofdatawithkey. -
generate_xor_key(function)core/crypto.py:83def generate_xor_key(length)-- Generate a random XOR key of the given length as a hex string. -
AESencrypt(function)core/crypto.py:98def AESencrypt(plaintext, key)-- Encryptplaintextwith AES-256-GCM using a random nonce. -
AESdecrypt(function)core/crypto.py:123def AESdecrypt(data, key)-- Decrypt data produced byAESencrypt. -
dropFile(function)core/crypto.py:154def dropFile(key, ciphertext)-- Write AES key and ciphertext tosessions/cipher.binandsessions/key.bin.
Imported by: cli/commands/cred_migrated.py, cli/commands/defaults.py, lazyc2/blueprints/api.py, lazyown.py, modules/autonomous_exploit_engine.py, modules/hash_cracker.py, tests/test_security_codeql_batch.py
-
load_defaults(function)core/defaults.py:21def load_defaults(path)-- Load and cache the defaults document. -
clear_cache(function)core/defaults.py:44def clear_cache()-- Drop cached documents (tests only). -
get(function)core/defaults.py:49def get(section, key, default)-- Returndefaults[section][key]ordefaultwhen absent. -
default_lport(function)core/defaults.py:63def default_lport()-- Return the fallback listener port as an int. -
default_rport(function)core/defaults.py:72def default_rport()-- Return the fallback remote port as an int. -
rockyou_wordlist(function)core/defaults.py:81def rockyou_wordlist()-- Return the default wordlist path. -
common_wordlists(function)core/defaults.py:90def common_wordlists()-- Return the ordered wordlist fallback candidates. -
sessions_dir(function)core/defaults.py:100def sessions_dir()-- Return the sessions directory path.
Imported by: core/__init__.py, tests/test_dependencies.py, utils.py
-
MissingDependencyError.__init__(method)core/dependencies.py:45def __init__(self, import_name, pip_package, feature)-- Build a remediation-oriented error message. -
_DeferredImport.__init__(method)core/dependencies.py:115def __init__(self, spec)-- Store the dependency spec used to build remediation errors. -
_DeferredImport.__call__(method)core/dependencies.py:136def __call__(self)-- Reject calling a missing dependency. -
optional_import(function)core/dependencies.py:183def optional_import(import_name)-- Import an optional module, returning a deferred proxy when absent. -
optional_attr(function)core/dependencies.py:209def optional_attr(import_name, attr)-- Import an attribute from an optional module, deferring failure. -
DependencyReport.missing(method)core/dependencies.py:278def missing(self)-- Return the optional Python dependencies that are not installed. -
DependencyReport.ok(method)core/dependencies.py:283def ok(self)-- ReturnTruewhen every declared dependency is present. -
probe_python_dependency(function)core/dependencies.py:288def probe_python_dependency(spec)-- Probe a single Python dependency by importing it. -
collect_dependency_report(function)core/dependencies.py:312def collect_dependency_report()-- Probe every declared optional Python dependency. -
format_report(function)core/dependencies.py:323def format_report(report)-- Render a :class:DependencyReportas an aligned, human-readable block. -
main(function)core/dependencies.py:368def main()-- Print the optional-dependency report and return a process exit code.
Depends on: core/console.py
-
ErrorAdvice.docs_url(method)core/error_advice.py:35def docs_url(self, config)-- Return absolute documentation URL for this advice. -
get_advice(function)core/error_advice.py:74def get_advice(key)-- Return advice for key or None when unknown. -
render_advice(function)core/error_advice.py:86def render_advice(key, config)-- Render advice as four plain lines with explicit level tags.
Depends on: cli/commands/enum.py
Imported by: core/__init__.py
-
LazyOwnError.__init__(method)core/errors.py:61def __init__(self, message, error_code) -
LazyOwnError.to_dict(method)core/errors.py:66def to_dict(self)-- Return a serialisable dict with code, type, and message. -
ConfigError.__init__(method)core/errors.py:81def __init__(self, message, error_code) -
TargetError.__init__(method)core/errors.py:88def __init__(self, message, error_code) -
AuthError.__init__(method)core/errors.py:95def __init__(self, message, error_code) -
ToolError.__init__(method)core/errors.py:102def __init__(self, message, error_code) -
PayloadError.__init__(method)core/errors.py:109def __init__(self, message, error_code) -
DatabaseError.__init__(method)core/errors.py:116def __init__(self, message, error_code) -
NetworkError.__init__(method)core/errors.py:123def __init__(self, message, error_code) -
PermissionError.__init__(method)core/errors.py:130def __init__(self, message, error_code) -
ValidationError.__init__(method)core/errors.py:137def __init__(self, message, error_code)
Depends on: core/logging.py
Imported by: tests/test_core_executor.py
-
safe_run(function)core/executor.py:96def safe_run(command) -
safe_run(function)core/executor.py:98def safe_run(command) -
safe_run(function)core/executor.py:101def safe_run(command)-- Execute a command with logging and timeout. -
run_shell(function)core/executor.py:149def run_shell(cmd)-- Execute a shell command and return its stdout.
Depends on: core/config.py, core/credential_vault.py, core/host_policy.py, core/logging.py
Imported by: cli/commands/anti_forensics.py, cli/commands/cloud.py, cli/commands/command_and_control_migrated.py, cli/commands/exfiltration.py, cli/commands/lateral_migrated.py, cli/commands/nethelpers.py, cli/commands/persist_migrated.py, cli/commands/pivoting.py, core/process.py, core/reverse_shell_secret.py, core/safe_subprocess.py, lazyc2.py, lazyown.py, modules/atomic_cli.py, modules/domain_dominance.py, modules/lazy_loop.py, modules/lazy_proxy.py, modules/phishing_orchestrator.py, modules/websocket_beacon.py, scripts/devtools/core_smoke.py, skills/claude_md_orchestrator/validators.py, skills/lazyown_mcp.py, tests/test_host_policy.py, tests/test_security_alerts_fix.py, tests/test_security_hardening_v3.py, tests/test_shell_semantics.py
-
reject_option_injection(function)core/hardening.py:85def reject_option_injection(argv)-- Reject argument-injection payloads in argv. -
escape_powershell_single_quoted(function)core/hardening.py:104def escape_powershell_single_quoted(value)-- Escape a value for embedding in a PowerShell single-quoted string. -
terminal_env(function)core/hardening.py:129def terminal_env(base)-- Return a child environment that keeps ANSI colors on a pipe. -
safe_subprocess_run(function)core/hardening.py:150def safe_subprocess_run(argv)-- Execute a command via subprocess without shell interpretation. -
safe_clipboard_copy(function)core/hardening.py:195def safe_clipboard_copy(content)-- Copy content to system clipboard without shell interpretation. -
build_sshpass_command(function)core/hardening.py:234def build_sshpass_command(password, ssh_args)-- Build an sshpass command using SSHPASS env var (sshpass -e). -
set_sshpass_env(function)core/hardening.py:263def set_sshpass_env(password)-- Create an environment dict with SSHPASS set for sshpass -e. -
escape_html_content(function)core/hardening.py:282def escape_html_content(value)-- Escape HTML special characters to prevent XSS. -
safe_path_join(function)core/hardening.py:294def safe_path_join(base_dir, user_path)-- Join base_dir and user_path safely, preventing path traversal. -
validate_network_cidr(function)core/hardening.py:320def validate_network_cidr(cidr)-- Validate a network CIDR notation string. -
validate_port_spec(function)core/hardening.py:332def validate_port_spec(ports)-- Validate a port specification string. -
validate_host(function)core/hardening.py:348def validate_host(host)-- Validate a hostname or IP address. -
require_encryption_key(function)core/hardening.py:368def require_encryption_key(env_key, secret_file)-- Require a proper encryption key; never fall back to a static default. -
defused_xml_parse(function)core/hardening.py:396def defused_xml_parse(source)-- Parse XML safely using defusedxml. -
sanitize_filename(function)core/hardening.py:418def sanitize_filename(filename, max_length)-- Sanitize a filename by removing dangerous characters. -
tls_secure_context(function)core/hardening.py:438def tls_secure_context(extra_ca)-- Build a verifying client TLS context with a TLS 1.2 floor. -
tls_lab_unverified_allowed(function)core/hardening.py:463def tls_lab_unverified_allowed(host)-- Return True only when unverified lab TLS is explicitly opted in. -
tls_lab_fallback_context(function)core/hardening.py:490def tls_lab_fallback_context()-- Build the gated unverified context for lab self-signed hosts. -
validate_upstream_path(function)core/hardening.py:512def validate_upstream_path(path)-- Validate an origin-form upstream path without regular expressions. -
is_safe_path_segment(function)core/hardening.py:541def is_safe_path_segment(segment)-- Validate one path segment with a linear charset scan (no regex). -
is_safe_dir_path(function)core/hardening.py:562def is_safe_dir_path(raw)-- Validate a relative directory path with linear scans (no regex). -
is_safe_yaml_name(function)core/hardening.py:588def is_safe_yaml_name(name)-- Validate a YAML filename with linear scans (no regex). -
safe_join_under(function)core/hardening.py:607def safe_join_under(base_dir, user_path)-- Join and resolveuser_pathunderbase_dir(symlink-safe). -
safe_open_under(function)core/hardening.py:636def safe_open_under(base_dir, user_path, mode)-- Open a file underbase_dirafter traversal validation. -
store_secret_owner_only(function)core/hardening.py:663def store_secret_owner_only(path, text)-- Atomically store a secret owner-only (0600, dir 0700). -
contains_emoji(function)core/hardening.py:706def contains_emoji(text)-- Return True whentextcarries any emoji codepoint. -
iter_emoji_spans(function)core/hardening.py:721def iter_emoji_spans(text)-- Return(offset, char)for every emoji char intext. -
seal_secret(function)core/hardening.py:754def seal_secret(plaintext)-- Seal a secret with Fernet (AES-128-CBC + HMAC) for storage. -
unseal_secret(function)core/hardening.py:785def unseal_secret(stored)-- Reveal a secret stored by :func:seal_secret(legacy-compatible). -
redact_text(function)core/hardening.py:826def redact_text(text)-- Mask credential-like patterns before persistence or display.
Imported by: core/hardening.py, core/validators.py, tests/test_host_policy.py
-
rejects_shell_meta(function)core/host_policy.py:20def rejects_shell_meta(value)-- Return True when value contains characters usable for shell injection. -
is_valid_cidr(function)core/host_policy.py:32def is_valid_cidr(value)-- Check value is a valid CIDR block. -
is_valid_host(function)core/host_policy.py:48def is_valid_host(value)-- Check value is a plain IP, CIDR, or hostname without shell metacharacters.
Depends on: core/console.py
Imported by: core/__init__.py
-
generate_http_req(function)core/http.py:18def generate_http_req(host, port, uri, custom_header, cmd)-- Build and send an HTTP GET request. -
get_banner(function)core/http.py:50def get_banner(host, port)-- Fetch a banner by connecting via HTTP to the given host and port. -
get_command(function)core/http.py:69def get_command(url, lhost)-- Fetch a command payload from a remote URL. -
send_command(function)core/http.py:87def send_command(cmd, url, lhost)-- Send a command via HTTP POST. -
exploitalert(function)core/http.py:106def exploitalert(content)-- Parse ExploitAlert search results HTML. -
packetstormsecurity(function)core/http.py:125def packetstormsecurity(content)-- Parse Packet Storm Security search results HTML. -
nvddb(function)core/http.py:143def nvddb(content)-- Parse NVD JSON vulnerability feed. -
scrape_news(function)core/http.py:174def scrape_news()-- Scrape Hacker News top stories. -
display_news(function)core/http.py:198def display_news(titles, links, scores)-- Display scraped news in the console. -
inject_payloads(function)core/http.py:211def inject_payloads(urls, payload_url, request_timeout)-- Attempt to inject a payload URL into a list of target URLs.
Imported by: cli/commands/ai.py, modules/llm_factory.py, skills/lazyown_mcp.py, tests/test_llm_budget.py
-
LLMBackendLike.generate(method)core/llm_budget.py:61def generate(self, prompt) -
LLMBackendLike.stream_generate(method)core/llm_budget.py:63def stream_generate(self, prompt) -
LLMBackendLike.complete(method)core/llm_budget.py:65def complete(self, system, user, max_tokens, temperature) -
ModelPrice.from_mapping(method)core/llm_budget.py:81def from_mapping(cls, data)-- Build a ModelPrice from a JSON friendly mapping. -
BudgetLedger.record(method)core/llm_budget.py:232def record(self, entry)-- Append a charge to the ledger and persist the new state. -
BudgetLedger.spent_today(method)core/llm_budget.py:251def spent_today(self)-- Return the dollar amount the ledger charged for the current day. -
BudgetLedger.calls_today(method)core/llm_budget.py:256def calls_today(self)-- Return the number of calls the ledger recorded for the current day. -
BudgetLedger.reset(method)core/llm_budget.py:261def reset(self)-- Clear the ledger for the current day and persist the empty state. -
TokenEstimator.__init__(method)core/llm_budget.py:278def __init__(self, encoding_name) -
TokenEstimator.count(method)core/llm_budget.py:292def count(self, text)-- Return the number of tokens the input text contains. -
BudgetGuard.__init__(method)core/llm_budget.py:319def __init__(self, config, estimator, ledger) -
BudgetGuard.price_for(method)core/llm_budget.py:329def price_for(self, model)-- Return the price the guard applies to a model identifier. -
BudgetGuard.estimate_cost(method)core/llm_budget.py:343def estimate_cost(self, model, input_tokens, output_tokens)-- Return the dollar cost the guard would charge for a call. -
BudgetGuard.estimate_and_check(method)core/llm_budget.py:356def estimate_and_check(self, prompt, model, output_tokens)-- Check the budget and record a charge when the call fits. -
BudgetedBackend.__init__(method)core/llm_budget.py:417def __init__(self, inner, guard, model) -
BudgetedBackend.generate(method)core/llm_budget.py:422def generate(self, prompt)-- Forward a non streaming call and record a charge. -
BudgetedBackend.stream_generate(method)core/llm_budget.py:430def stream_generate(self, prompt)-- Forward a streaming call. -
BudgetedBackend.complete(method)core/llm_budget.py:435def complete(self, system, user, max_tokens, temperature)-- Forward a role aware call. -
default_model_prices(function)core/llm_budget.py:442def default_model_prices()-- Return the default price table the guard ships with. -
default_sessions_dir(function)core/llm_budget.py:461def default_sessions_dir()-- Return the directory the ledger writes to by default. -
load_budget_config(function)core/llm_budget.py:552def load_budget_config(payload, sessions_dir)-- Build a BudgetConfig from a payload mapping. -
read_budget_status(function)core/llm_budget.py:585def read_budget_status(payload, sessions_dir)-- Return a structured snapshot of the current budget. -
format_budget_status(function)core/llm_budget.py:616def format_budget_status(config, ledger)-- Render the budget status as a human readable block. -
wrap_backend_with_budget(function)core/llm_budget.py:657def wrap_backend_with_budget(backend, config, estimator, model, ledger)-- Wrap a concrete backend with a budgeted proxy.
Imported by: cli/auto_crypto.py, cli/chain_mode.py, cli/reactive_hints.py, cli/recommendation_signals.py, cli/session_resumer.py, cli/tips_engine.py, contrib/legacy/lazydeepseekcli.py, contrib/legacy/lazygptcli.py, contrib/legacy/lazygptcli_unified.py, contrib/legacy/lazyhoneypot.py, contrib/legacy/lazyopenssh77enum2.py, contrib/legacy/lazyphishingai.py, contrib/legacy/lazysearch_bot.py, contrib/legacy/lazysmbrelay.py, contrib/legacy/lazyssh.py, core/config.py, core/credential_vault.py, core/executor.py, core/hardening.py, core/safe_exec.py, core/scheduler.py, core/security.py, lazy_sentinel4.py, lazyc2.py, lazyc2/blueprints/addons.py, lazyc2/blueprints/api.py, lazyc2/blueprints/api_v1.py, lazyc2/blueprints/auth.py, lazyc2/blueprints/beacon.py, lazyc2/blueprints/phishing.py, lazyc2/extensions/short_urls.py, lazyc2/extensions/storage.py, lazygui/app.py, lazygui/config/c2_credentials.py, lazygui/config/settings.py, lazygui/services/local_backend.py, lazygui/services/teamserver_backend.py, lazygui/theme/manager.py, lazyown.py, modules/addon_updater.py, modules/agent_runner.py, modules/ai_model.py, modules/atomic_cli.py, modules/atomic_enricher.py, modules/atomic_exploit_bridge.py, modules/atomic_resolver.py, modules/auto_purple.py, modules/beacon_config_builder.py, modules/beacon_history.py, modules/bof_registry.py, modules/c2_agent.py, modules/c2_profile.py, modules/c2_profile_engine.py, modules/c2_surfaces.py, modules/chain_registry.py, modules/collab_bp.py, modules/command_executor.py, modules/compliance.py, modules/conditional_hooks.py, modules/config_store.py, modules/credential_reuse.py, modules/cve_matcher.py, modules/db.py, modules/detection_feed.py, modules/detection_oracle.py, modules/emulation_runner.py, modules/engagement_hooks.py, modules/estorides_importer.py, modules/event_bus.py, modules/event_consumers.py, modules/gym_registry.py, modules/hash_cracker.py, modules/ia_code_analysis.py, modules/ia_logs_analysis.py, modules/ia_network_analysis.py, modules/icmp_server.py, modules/integrations/misp_export.py, modules/integrations/nuclei_bridge.py, modules/integrations/nuclei_parser.py, modules/integrations/searchsploit.py, modules/intelligence_engine.py, modules/killchain.py, modules/lazy_loop.py, modules/lazy_proxy.py, modules/lazy_rbac.py, modules/lazyownerweb.py, modules/lesson_ingestor.py, modules/lilsplunky.py, modules/llm_adapter.py, modules/llm_client.py, modules/logging_config.py, modules/mcp_agent_bridge.py, modules/metasploitable_gym.py, modules/metrics.py, modules/module_registry.py, modules/moe_router.py, modules/obs_parser.py, modules/operation.py, modules/operator_profiles.py, modules/opsec_scorer.py, modules/orchestrator_config.py, modules/outcome_bus.py, modules/pipeline_engine.py, modules/planner.py, modules/playbook_engine.py, modules/reactive_engine.py, modules/rl_trainer.py, modules/session_rag.py, modules/sleep_obfuscation.py, modules/socks_proxy.py, modules/state_manager.py, modules/sudo_tiocsti.py, modules/threat_model.py, modules/toposwarm_bridge.py, modules/ttp_coverage.py, modules/ttpscope_bridge.py, modules/unified_bridge.py, modules/unified_dashboard.py, modules/vulnbot.py, modules/world_model.py, skills/aci_planner.py, skills/autonomous_daemon.py, skills/autonomous_replay.py, skills/hive_mind.py, skills/lazyown_automapper.py, skills/lazyown_campaign.py, skills/lazyown_daemon.py, skills/lazyown_facts.py, skills/lazyown_llm.py, skills/lazyown_mcp.py, skills/lazyown_parquet_db.py, skills/lazyown_policy.py, skills/sessions_watcher.py, skills/swan_agent.py, skills/toposwarm_autonomous.py, skills/update_knowledge.py, tests/test_logging_config.py, tests/test_security_codeql_batch.py, tests/test_structured_logging.py
-
_JsonLineFormatter.__init__(method)core/logging.py:74def __init__(self, redacted_fields) -
_JsonLineFormatter.format(method)core/logging.py:78def format(self, record) -
_ConsoleFormatter.format(method)core/logging.py:132def format(self, record) -
StructuredLogger.makeRecord(method)core/logging.py:148def makeRecord(self, name, level, fn, lno, msg, args, exc_info, func, extra, sinfo) -
get_logger(function)core/logging.py:231def get_logger(name)-- Return a cached :class:StructuredLoggerfor name. -
install_json_handler(function)core/logging.py:251def install_json_handler(name, config)-- Install a JSON-lines file handler on name, preserving existing handlers. -
reconfigure(function)core/logging.py:300def reconfigure(config)-- Replace the cached configuration globally.
Depends on: core/console.py
Imported by: core/__init__.py
-
parse_ip_mac(function)core/network.py:18def parse_ip_mac(input_string)-- Extract IP and MAC from a formatted string. -
create_arp_packet(function)core/network.py:33def create_arp_packet(src_mac, src_ip, dst_ip, dst_mac)-- Build a raw ARP request/reply packet. -
send_packet(function)core/network.py:66def send_packet(packet, iface)-- Send a raw packet on a given network interface. -
parse_proc_net_file(function)core/network.py:78def parse_proc_net_file(file_path)-- Parse a/proc/net/*file and extract (ip, port) pairs. -
get_open_ports(function)core/network.py:105def get_open_ports()-- Discover listening TCP ports from/proc/net/tcpandtcp6. -
is_port_in_use(function)core/network.py:120def is_port_in_use(port, host)-- Check whether a TCP port is already bound. -
get_banner(function)core/network.py:134def get_banner(ip, port)-- Grab a TCP banner from the given host and port. -
get_network_info(function)core/network.py:154def get_network_info()-- Collect local network information.
Imported by: cli/banner_config.py, core/__init__.py, discord_c2.py, lazyc2.py, slack_c2_bot.py, telegram_c2.py, telegram_hermes.py, tests/test_single_implementation.py, utils.py
-
strip_ansi(function)core/parsers.py:15def strip_ansi(text)-- Remove ANSI escape sequences and readline markers from a string.
Depends on: cli/commands/enum.py, modules/llm_factory.py
Imported by: cli/assign.py, cli/commands/session_ops.py, cli/wizard.py, core/__init__.py, core/config.py, scripts/devtools/core_smoke.py, skills/lazyown_mcp.py, tests/test_core_config.py, tests/test_core_defaults.py, tests/test_infra_disposable.py, tests/test_payload_schema.py, tests/test_placeholder_coverage.py
-
field_for(function)core/payload_schema.py:1582def field_for(key)-- Return the :class:FieldSpecforkeyorNoneif it is unknown. -
coerce_value(function)core/payload_schema.py:1587def coerce_value(key, raw)-- Returnrawcoerced to the canonical type declared forkey. -
validate_value(function)core/payload_schema.py:1610def validate_value(key, value)-- Validatevalueagainst the schema entry forkey. -
validate_payload(function)core/payload_schema.py:1684def validate_payload(payload)-- Validate an entire payload dictionary and return all issues found. -
format_issue(function)core/payload_schema.py:1719def format_issue(issue)-- Render a :class:ValidationIssueas a single human-readable line. -
default_payload(function)core/payload_schema.py:1737def default_payload()-- Return a freshly built payload dict populated from the schema defaults. -
categories(function)core/payload_schema.py:1745def categories()-- Return schema entries grouped by :attr:FieldSpec.category.
Depends on: core/console.py, core/hardening.py, core/safe_exec.py, core/safe_subprocess.py, core/validators.py
Imported by: cli/commands/lazyops.py, cli/commands/misc_migrated.py, cli/commands/mobile_macos.py, core/__init__.py, modules/auto_purple.py, modules/lazy_loop.py, static/js/particles.js, static/js/vis-network-9.1.2.min.js, static/js/vis-network.min.js, tests/test_lazy_runner.py, tests/test_shell_semantics.py, utils.py
-
check_go_tool_installed(function)core/process.py:34def check_go_tool_installed(tool_name)-- Check if a Go tool binary is installed and runnable. -
is_binary_present(function)core/process.py:54def is_binary_present(binary_name)-- Check whether binary is onPATH. -
handle_multiple_rhosts(function)core/process.py:68def handle_multiple_rhosts(func)-- Decorator that iterates over a list of remote hosts. -
wrapper(function)core/process.py:82def wrapper(self) -
check_sudo(function)core/process.py:97def check_sudo()-- Re-launch the script withsudoif not already root. -
run(function)core/process.py:108def run(command)-- Execute a shell command viaSafeRunner. -
is_package_installed(function)core/process.py:143def is_package_installed(package_name)-- Check whether a Python package is importable. -
run_command(function)core/process.py:183def run_command(command, timeout)-- Run a command, streaming output in real time. -
ensure_tmux_session(function)core/process.py:253def ensure_tmux_session(session_name)-- Create a tmux session if it does not already exist. -
activate_server(function)core/process.py:271def activate_server(httpd, url, lhost)-- Start an HTTP server and print the serving URL.
Imported by: cli/doctor.py, cli/wizard.py, tests/test_profiles.py
-
active_profile(function)core/profiles.py:40def active_profile()-- Return the selected runtime profile. -
is_light(function)core/profiles.py:59def is_light()-- ReturnTruewhen the light profile is selected. -
specs_for_profile(function)core/profiles.py:64def specs_for_profile(specs)-- Filter dependency specs down to the ones the active profile needs.
Depends on: core/config.py
Imported by: contrib/legacy/lazybinenc.py, key.py, static/js/quill-2.0.3.js
-
get_git_info(function)core/prompt.py:35def get_git_info()-- Return current git branch and dirty-status for the prompt. -
get_venv_info(function)core/prompt.py:60def get_venv_info()-- Return the active virtualenv name, or empty string if none. -
get_kernel(function)core/prompt.py:68def get_kernel()-- Return the running kernel version (short form). -
get_terminal_size(function)core/prompt.py:78def get_terminal_size()-- Return(width, height)of the terminal, defaulting to 80x24. -
get_local_ips(function)core/prompt.py:87def get_local_ips()-- Return a comma-separated string of non-loopback IPv4 addresses. -
copy2clip(function)core/prompt.py:109def copy2clip(text)-- Copytextto the system clipboard via xclip. -
getprompt(function)core/prompt.py:127def getprompt()-- Build the coloured status line for the CLI header and C2 dashboard.
Imported by: tests/test_core.py
-
Selector.suggest(method)core/protocols.py:27def suggest(self, target, phase, context)-- Return{"command": str, "reasoning": str, "mitre": str}orNone. -
LLMBackend.complete(method)core/protocols.py:40def complete(self, system, user, max_tokens, temperature)-- Return the model completion as a string. -
MemoryStore.put(method)core/protocols.py:54def put(self, key, value) -
MemoryStore.get(method)core/protocols.py:56def get(self, key, default) -
MemoryStore.search(method)core/protocols.py:58def search(self, query, k) -
BridgeCatalog.filter(method)core/protocols.py:65def filter(self, phase, os_id)-- Return command entries matchingphaseandos_id. -
OutcomeEvaluator.evaluate(method)core/protocols.py:73def evaluate(self, command, output, target, phase)-- Return a reward in[0.0, 1.0].
Depends on: core/hardening.py
Imported by: lazyc2.py, tests/test_security_alerts_fix.py
-
seal_reverse_shell_password(function)core/reverse_shell_secret.py:24def seal_reverse_shell_password(plaintext)-- Seal a fallback password for storage. -
load_reverse_shell_password(function)core/reverse_shell_secret.py:41def load_reverse_shell_password(secret_path)-- Load a persisted fallback password, unsealing vault values. -
generate_reverse_shell_password(function)core/reverse_shell_secret.py:65def generate_reverse_shell_password()-- Generate a fresh cryptographically random fallback password. -
is_configured_password_valid(function)core/reverse_shell_secret.py:74def is_configured_password_valid(candidate, minimum_length)-- Return True when an operator-configured password meets the floor.
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
-
supports_unicode(function)core/safe_console.py:33def supports_unicode()-- Return True when stdout can encode box-drawing glyphs and emoji. -
get_console(function)core/safe_console.py:42def get_console()-- Build a Rich console with safe color/box defaults. -
panel_box(function)core/safe_console.py:52def panel_box()-- Return the ROUNDED box on UTF-8 sinks, ASCII otherwise. -
milestone_glyph(function)core/safe_console.py:57def milestone_glyph(state)-- Glyph for a milestone state: done / active / pending (or other). -
progress_bar(function)core/safe_console.py:67def progress_bar(ratio, width)-- Fixed-width fill bar, unicode blocks or ASCII hashes.
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/chain_runner.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
-
needs_shell(function)core/safe_exec.py:52def needs_shell(command)-- Return True when a command string needs a shell to be interpreted. -
safe_system(function)core/safe_exec.py:69def safe_system(command)-- Execute a fixed command string through the shell safely. -
safe_run_argv(function)core/safe_exec.py:106def safe_run_argv(argv)-- Execute a command via subprocess without shell interpretation. -
safe_run_shell(function)core/safe_exec.py:146def safe_run_shell(command)-- Execute a command through the shell, gated by policy. -
safe_clear_screen(function)core/safe_exec.py:192def safe_clear_screen()-- Clear the terminal screen without using os.system. -
validate_url(function)core/safe_exec.py:207def validate_url(url)-- Validate a URL string, rejecting shell metacharacters. -
safe_git_clone(function)core/safe_exec.py:234def safe_git_clone(repo_url, target_dir)-- Clone a git repository safely using subprocess list-form. -
safe_ip_show(function)core/safe_exec.py:268def safe_ip_show(interface)-- Parse IP addresses fromip showoutput in Python. -
safe_find_tool(function)core/safe_exec.py:305def safe_find_tool(name)-- Find a tool on PATH using shutil.which. -
safe_file_read(function)core/safe_exec.py:321def safe_file_read(path)-- Read a file safely with a size limit.
Imported by: cli/commands/campaign.py, tests/test_campaign_import_safety.py
-
is_safe_identifier(function)core/safe_import.py:20def is_safe_identifier(name)-- Return True whennameis a bare SQL identifier. -
filter_columns(function)core/safe_import.py:32def filter_columns(src_columns, dest_columns)-- Intersect source columns with destination columns, safely. -
safe_extract_zip(function)core/safe_import.py:51def safe_extract_zip(archive, dest)-- Extract a zip archive with ZipSlip protection. -
safe_copy_tree(function)core/safe_import.py:93def safe_copy_tree(src, dest)-- Copy a directory tree without symlink escape.
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
-
SafeRunner.__init__(method)core/safe_subprocess.py:70def __init__(self, audit_log_path) -
SafeRunner.run(method)core/safe_subprocess.py:73def run(self, argv)-- Executeargvwithout invoking a shell. -
SafeRunner.run_shell(method)core/safe_subprocess.py:105def run_shell(self, command)-- Executecommandthrough the system shell, gated by policy.
Next: API_p7.md
Generated offline by readmenator from commit 2f44e17e04bd. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_cli_commands
- community_10_modules_surface_graph
- community_11_modules_opsec_scorer
- 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_modules_lazy_loop
- community_3_cli
- community_4_modules_autonomous_daemon
- community_5_lazygui_panels
- community_6_modules_llm_budget
- community_7_static_js
- community_8_skills_claude_md_orchestrator
- community_9_skills_hermes_lazyown
- 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_p15
- 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_sinks
- 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_p42
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes