Agent KB_modules_p14 - grisuno/LazyOwn GitHub Wiki
Subsystem: modules (page 14 of 14)
Previous: KB_modules_p13.md
modules/venator.py
- Layer: utility
- Language: py
- Symbols:
getUUID(function, line 38)def getUUID()getSystemInfo(function, line 66)def getSystemInfo(output_file)getVTResult(function, line 83)def getVTResult(fileHash)getHash(function, line 112)def getHash(file, ignoreVFlag)checkSignature(function, line 132)def checkSignature(file, bundle)datetime_handler(function, line 210)def datetime_handler(x)parseAgentsDaemons(function, line 215)def parseAgentsDaemons(item, path)getLaunchAgents(function, line 287)def getLaunchAgents(path, output_file, ignoreVFlag)getLaunchDaemons(function, line 302)def getLaunchDaemons(path, output_file, ignoreVFlag)getUsers(function, line 317)def getUsers(output_file)getSafariExtensions(function, line 338)def getSafariExtensions(path, output_file)getChromeExtensions(function, line 357)def getChromeExtensions(path, output_file)getChromeDownloads(function, line 388)def getChromeDownloads(chromeHistoryDbPath, output_file)getFirefoxExtensions(function, line 442)def getFirefoxExtensions(path, output_file)getInstallHistory(function, line 477)def getInstallHistory(output_file)getCronJobs(function, line 494)def getCronJobs(users, output_file)getEmond(function, line 513)def getEmond(output_file)getKext(function, line 530)def getKext(sipStatus, kextPath, output_file, ignoreVFlag)getEnv(function, line 577)def getEnv(output_file)getPeriodicScripts(function, line 592)def getPeriodicScripts(output_file)getConnections(function, line 609)def getConnections(output_file)SIPStatus(function, line 637)def SIPStatus(output_file)GatekeeperStatus(function, line 651)def GatekeeperStatus(output_file)parseApp(function, line 663)def parseApp(app, ignoreVFlag)getLoginItems(function, line 706)def getLoginItems(path, output_file, ignoreVFlag)getApps(function, line 741)def getApps(path, output_file, ignoreVFlag)getEventTaps(function, line 763)def getEventTaps(output_file)getBashHistory(function, line 786)def getBashHistory(output_file, users)getShellStartupScripts(function, line 804)def getShellStartupScripts(users, output_file)hmac_sha256(function, line 842)def hmac_sha256(key, data)amzn_sig(function, line 846)def amzn_sig(secret_access_key, data, aws_region, aws_service)amzn_canonical_req(function, line 856)def amzn_canonical_req(filename_path, headers_list)s3_upload(function, line 866)def s3_upload(data, content_type, filename_path, access_key_id, secret_access_key, s3_bucket, aws_region)io_key(function, line 49)def io_key(keyname)
modules/vuln_bot_cli.py
- Layer: utility
- Language: py
- Symbols:
parse_args(function, line 10)def parse_args()main(function, line 22)def main()
- Depends on:
modules/vulnbot.py
modules/vulnbot.py
- Doc: list_files: Lista archivos en un directorio
- Layer: presentation
- Language: py
- Symbols:
VulnBotCLI(class, line 29)class VulnBotCLI__init__(method, line 30)def __init__(self, provider, mode, debug, script_path)_load_model(method, line 46)def _load_model(self)_setup_agent(method, line 61)def _setup_agent(self, script_path)_register_file_tools(method, line 83)def _register_file_tools(self)_load_external_tools(method, line 109)def _load_external_tools(self, script_path)_stream_agent_response(method, line 136)def _stream_agent_response(self, prompt)load_knowledge_base(method, line 145)def load_knowledge_base(self)save_knowledge_base(method, line 151)def save_knowledge_base(self, kb)get_relevant_knowledge(method, line 155)def get_relevant_knowledge(self, prompt)create_complex_prompt(method, line 160)def create_complex_prompt(self, base_prompt, history, knowledge)read_file_content(method, line 176)def read_file_content(self, file_path)load_event_config(method, line 182)def load_event_config(self)process_with_context(method, line 190)def process_with_context(self, file_path, event)stream_response(method, line 206)def stream_response(self, prompt)add_to_knowledge_base(method, line 212)def add_to_knowledge_base(self, prompt, response)list_files(function, line 86)def list_files(directory)read_file(function, line 90)def read_file(path)edit_file(function, line 95)def edit_file(path, content, old_text)generate(function, line 139)def generate()generate(function, line 207)def generate()
- Depends on:
core/logging.py,modules/agent_runner.py,modules/ai_model.py,modules/llm_factory.py,modules/logging_config.py - Imported by:
modules/vuln_bot_cli.py
modules/websocket_beacon.py
- Doc: WebSocket beacon transport for modern C2 channels.
- Layer: utility
- Language: py
- Symbols:
WebSocketBeacon(class, line 46)class WebSocketBeaconWebSocketC2Handler(class, line 274)class WebSocketC2Handler__init__(method, line 62)def __init__(self, server_url, beacon_id, encryption_key, sleep_seconds, jitter_percent, ssl_verify, proxy)_encrypt(method, line 91)def _encrypt(self, data)_decrypt(method, line 97)def _decrypt(self, data)_build_message(method, line 103)def _build_message(self, msg_type, payload)_jittered_sleep(method, line 114)def _jittered_sleep(self)connect(method, line 122)def connect(self)check_in(method, line 157)def check_in(self)send_result(method, line 191)def send_result(self, task_id, output, exit_code)run(method, line 214)def run(self, command_handler)shutdown(method, line 263)def shutdown(self)__init__(method, line 288)def __init__(self, host, port, ssl_context, beacon_callback, task_callback, result_callback)_handle_connection(method, line 310)def _handle_connection(self, websocket, path)start(method, line 382)def start(self)stop(method, line 392)def stop(self)start_in_thread(method, line 399)def start_in_thread(self)_run_loop(method, line 410)def _run_loop(self, loop)send_task(method, line 416)def send_task(self, beacon_id, command)list_beacons(method, line 447)def list_beacons(self)remove_stale_beacons(method, line 464)def remove_stale_beacons(self, timeout)
- Depends on:
core/hardening.py
modules/wineconfig.sh
- Layer: utility
- Language: sh
modules/workspace.py
- Doc: Confined workspace file browser for operators and loop agents.
- Layer: utility
- Language: py
- Symbols:
root(function, line 21)def root()resolve(function, line 27)def resolve(rel)list_entries(function, line 46)def list_entries(rel)read_text(function, line 63)def read_text(rel, limit)write_text(function, line 72)def write_text(rel, content)make_dir(function, line 83)def make_dir(rel)remove(function, line 90)def remove(rel)
- Imported by:
tests/test_lazy_loop.py
modules/world_model.py
- Doc: modules/world_model.py
- Layer: business_logic
- Language: py
- Symbols:
_derive_crypto_key(function, line 58)def _derive_crypto_key(password, salt)_master_password(function, line 67)def _master_password()read_state_dict(function, line 72)def read_state_dict(path)write_state_dict(function, line 118)def write_state_dict(path, data)HostState(class, line 151)class HostState(StrEnum)EngagementPhase(class, line 167)class EngagementPhase(StrEnum)ServiceInfo(class, line 179)class ServiceInfoCredentialEntry(class, line 188)class CredentialEntryVulnerabilityEntry(class, line 197)class VulnerabilityEntryEmailEntry(class, line 206)class EmailEntryDomainEntry(class, line 214)class DomainEntryNetworkRelation(class, line 222)class NetworkRelationNetworkGraph(class, line 244)class NetworkGraphHostEntry(class, line 364)class HostEntry_PhaseDeriver(class, line 416)class _PhaseDeriverWorldModel(class, line 541)class WorldModelget_world_model(function, line 1126)def get_world_model(path)rank(method, line 160)def rank(self)can_advance_to(method, line 163)def can_advance_to(self, next_state)__init__(method, line 267)def __init__(self)add_relation(method, line 274)def add_relation(self, relation)neighbors(method, line 282)def neighbors(self, node)in_degree(method, line 286)def in_degree(self, node)out_degree(method, line 290)def out_degree(self, node)degree_centrality(method, line 294)def degree_centrality(self)pivot_candidates(method, line 309)def pivot_candidates(self, top_k)to_dict(method, line 331)def to_dict(self)from_dict(method, line 348)def from_dict(cls, data)add_service(method, line 373)def add_service(self, svc)advance(method, line 377)def advance(self, new_state)to_dict(method, line 385)def to_dict(self)from_dict(method, line 397)def from_dict(cls, d)derive(method, line 430)def derive(self, hosts)__init__(method, line 549)def __init__(self, path)add_host(method, line 565)def add_host(self, ip)reset_host(method, line 573)def reset_host(self, ip)advance_host(method, line 583)def advance_host(self, ip, new_state)add_service(method, line 592)def add_service(self, ip, port, name, version, protocol)add_note(method, line 609)def add_note(self, ip, note)set_os_hint(method, line 616)def set_os_hint(self, ip, os_hint)get_host(method, line 630)def get_host(self, ip)get_hosts_summary(method, line 642)def get_hosts_summary(self)add_credential(method, line 653)def add_credential(self, value, host, service)link_credential_to_success(method, line 685)def link_credential_to_success(self, value, host)link_credential_to_failure(method, line 706)def link_credential_to_failure(self, value, host)add_vulnerability(method, line 736)def add_vulnerability(self, description, host, cve, severity)add_email(method, line 742)def add_email(self, address, host, context)add_domain(method, line 748)def add_domain(self, domain, host, context)update_from_findings(method, line 762)def update_from_findings(self, findings)consume_policy_facts(method, line 835)def consume_policy_facts(self, facts_path)add_relation(method, line 927)def add_relation(self, source, target, relation, weight)pivot_candidates(method, line 948)def pivot_candidates(self, top_k)graph_snapshot(method, line 956)def graph_snapshot(self)get_phase(method, line 963)def get_phase(self)get_suggested_tools(method, line 967)def get_suggested_tools(self)to_context_string(method, line 970)def to_context_string(self)_save(method, line 1029)def _save(self)_load(method, line 1048)def _load(self)reload(method, line 1078)def reload(self)reset(method, line 1094)def reset(self)snapshot(method, line 1105)def snapshot(self)
- Depends on:
cli/commands/enum.py,core/logging.py - Imported by:
cli/commands/exploit_migrated.py,cli/commands/help_ui.py,cli/commands/mcp_bridge.py,cli/commands/pwn.py,cli/ops_commands.py,lazyc2.py,modules/atomic_exploit_bridge.py,modules/exploit_recommender.py,modules/integrations/nuclei_parser.py,modules/intelligence_engine.py,modules/killchain.py,modules/lazy_bridge.py,modules/lazy_intel.py,modules/live_surface.py,modules/operation.py,modules/planner.py,modules/playbook_engine.py,modules/state_manager.py,modules/unified_dashboard.py,skills/autonomous_daemon.py,skills/lazyown_mcp.py,tests/conftest.py,tests/integration_autonomous_flow.py,tests/test_autonomous_ops.py,tests/test_core_modules.py,tests/test_killchain_snapshot.py,tests/test_killchain_unified.py,tests/test_killchain_unified_v2.py,tests/test_moe_rl_swan.py,tests/test_ops_loot_phase.py,tests/test_phase1_data_gaps.py,tests/test_world_model_extended.py
modules/yaml_generator.py
- Doc: load_payload: Carga las variables desde payload.json
- Layer: utility
- Language: py
- Symbols:
YAMLPromptGenerator(class, line 17)class YAMLPromptGeneratormain(function, line 141)def main()__init__(method, line 18)def __init__(self, provider, api_key)load_payload(method, line 25)def load_payload(self)_load_model(method, line 32)def _load_model(self)generate_prompt(method, line 54)def generate_prompt(self, user_request)extract_yaml_from_markdown(method, line 100)def extract_yaml_from_markdown(self, text)create_yaml_addon(method, line 109)def create_yaml_addon(self, user_request, output_dir)
- Depends on:
modules/ai_model.py,modules/llm_factory.py
modules/yara_scanner.py
- Doc: YARA integration for malware classification and IOC scanning.
- Layer: utility
- Language: py
- Symbols:
YaraScanner(class, line 23)class YaraScannercreate_default_rules(function, line 371)def create_default_rules()__init__(method, line 31)def __init__(self, rules_dir, auto_compile)ensure_directory(method, line 41)def ensure_directory(self)_load_external_vars(method, line 45)def _load_external_vars(self)compile_all(method, line 54)def compile_all(self)scan_file(method, line 98)def scan_file(self, filepath, timeout)_scan_with_timeout(method, line 129)def _scan_with_timeout(self, filepath, externals, timeout)_format_match(method, line 162)def _format_match(self, match)scan_directory(method, line 187)def scan_directory(self, directory, recursive, extensions, max_files)_sha256(method, line 250)def _sha256(filepath)add_rule(method, line 258)def add_rule(self, name, content)list_rules(method, line 277)def list_rules(self)download_community_rules(method, line 300)def download_community_rules(self)ioc_scan(method, line 328)def ioc_scan(self, target_path, iocs)target(function, line 137)def target()
- Imported by:
cli/commands/postexp_migrated.py,modules/intelligence_engine.py