Repository navigation
Agent KB_root_p3
grisun0 edited this page Oct 28, 2026
·
1 revision
Previous: KB_root_p2.md
- 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)
-
- Doc: Compatibility shim for legacy
python setup.pyinvocations. - Layer: infrastructure
- Language: 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
- 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
- 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
- Layer: testing
- Language: sh
- 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)
-
- Layer: utility
- Language: sh
- Doc: Author: Gris Iscomeback Email: grisiscomeback[at]gmail[dot]com Creation date: 09/06/2024...
- Layer: utility
- Language: py
- Symbols:
-
lazyown_set_config(function, line 324)def lazyown_set_config(key, value, config_obj) -
needs_sudo(function, line 358)def needs_sudo(command) -
sudo_available(function, line 382)def sudo_available() -
_retry_sudo_gate(function, line 418)def _retry_sudo_gate() -
redact_secrets(function, line 434)def redact_secrets(text) -
parse_ip_mac(function, line 454)def parse_ip_mac(input_string) -
create_arp_packet(function, line 476)def create_arp_packet(src_mac, src_ip, dst_ip, dst_mac) -
send_packet(function, line 511)def send_packet(packet, iface) -
load_version(function, line 529)def load_version() -
parse_bool(function, line 555)def parse_bool(value) -
signal_handler(function, line 573)def signal_handler(sig, frame) -
activate_virtualenv(function, line 598)def activate_virtualenv(venv_path) -
parse_proc_net_file(function, line 623)def parse_proc_net_file(file_path) -
get_open_ports(function, line 667)def get_open_ports() -
rotate_char(function, line 686)def rotate_char(c, shift) -
get_network_info(function, line 708)def get_network_info() -
get_git_info(function, line 743)def get_git_info() -
get_venv_info(function, line 762)def get_venv_info() -
_load_prompt_payload(function, line 769)def _load_prompt_payload() -
getprompt(function, line 783)def getprompt() -
copy2clip(function, line 801)def copy2clip(text) -
clean_output(function, line 821)def clean_output(output) -
teclado_usuario(function, line 834)def teclado_usuario(filename) -
salida_strace(function, line 870)def salida_strace(filename) -
exploitalert(function, line 906)def exploitalert(content) -
packetstormsecurity(function, line 945)def packetstormsecurity(content) -
nvddb(function, line 983)def nvddb(content) -
find_ss(function, line 1029)def find_ss(keyword) -
find_ea(function, line 1091)def find_ea(keyword) -
find_ps(function, line 1141)def find_ps(keyword) -
run(function, line 1173)def run(command) -
is_exist(function, line 1232)def is_exist(file) -
get_domain(function, line 1261)def get_domain(url) -
generate_random_cve_id(function, line 1278)def generate_random_cve_id() -
generate_certificates(function, line 1290)def generate_certificates() -
generate_emails(function, line 1373)def generate_emails(full_name, domain) -
clean_url(function, line 1433)def clean_url(host) -
random_string(function, line 1440)def random_string(length) -
generate_http_req(function, line 1446)def generate_http_req(host, port, uri, custom_header, cmd) -
format_openssh_key(function, line 1470)def format_openssh_key(raw_key) -
format_rsa_key(function, line 1502)def format_rsa_key(raw_key) -
is_package_installed(function, line 1533)def is_package_installed(package_name) -
extract(function, line 1544)def extract(string, extract_flag) -
clean_html(function, line 1568)def clean_html(html_string) -
get_credentials(function, line 1595)def get_credentials(file, ncred) -
obfuscate_payload(function, line 1651)def obfuscate_payload(payload) -
read_payloads(function, line 1676)def read_payloads(file_path) -
inject_payloads(function, line 1698)def inject_payloads(urls, payload_url, request_timeout) -
prompt(function, line 1798)def prompt(label, default) -
add(function, line 1806)def add(str_part, delimiter, i) -
detect_delimiter(function, line 1823)def detect_delimiter(foo_bar) -
transform(function, line 1842)def transform(parts, delimiter, casing) -
handle(function, line 1872)def handle(input_str) -
get_users_dic(function, line 1902)def get_users_dic(txt) -
get_hash(function, line 1937)def get_hash(dir) -
is_digit(function, line 1978)def is_digit(the_digit) -
crack_password(function, line 1990)def crack_password(crypttext) -
get_terminal_size(function, line 2030)def get_terminal_size() -
halp(function, line 2039)def halp() -
ensure_tmux_session(function, line 2094)def ensure_tmux_session(session_name) -
get_xml(function, line 2130)def get_xml(directory) -
get_domain_from_xml(function, line 2143)def get_domain_from_xml(xml_file) -
shellcode_to_sylk(function, line 2173)def shellcode_to_sylk(shellcode_path) -
get_banner(function, line 2198)def get_banner(ip, port) -
list_binaries(function, line 2215)def list_binaries(directory) -
select_binary(function, line 2235)def select_binary(binaries) -
decode(function, line 2260)def decode(data) -
get_command(function, line 2278)def get_command(url, lhost) -
send_command(function, line 2289)def send_command(cmd, url, lhost) -
activate_server(function, line 2317)def activate_server(httpd, url, lhost) -
Spray(function, line 2328)def Spray(domain, users, password, target_url, wait, verbose, more_verbose) -
ProcessResults(function, line 2375)def ProcessResults(results, outfile) -
generate_index(function, line 2390)def generate_index(repo_dir) -
replace_variables(function, line 2440)def replace_variables(command, variables) -
create_caldera_config(function, line 2461)def create_caldera_config(file_path) -
extract_banners(function, line 2557)def extract_banners(xml_file) -
scrape_news(function, line 2606)def scrape_news() -
display_news(function, line 2641)def display_news(titles, links, scores) -
htmlify(function, line 2655)def htmlify(data) -
de_htmlify(function, line 2666)def de_htmlify(data) -
is_port_in_use(function, line 2678)def is_port_in_use(port, host) -
return_creds(function, line 2687)def return_creds() -
query_arin_ip(function, line 2701)def query_arin_ip(ip) -
get_org(function, line 2720)def get_org(data) -
load_adversary(function, line 2737)def load_adversary() -
replace_placeholders(function, line 2743)def replace_placeholders(template, replacements) -
replace_command_placeholders(function, line 2761)def replace_command_placeholders(command, params) -
parse_nmap_csv(function, line 2787)def parse_nmap_csv(csv_path) -
query_ollama(function, line 2801)def query_ollama(prompt, model) -
preprocess_llm_response(function, line 2816)def preprocess_llm_response(response) -
manual_yaml_extraction(function, line 2851)def manual_yaml_extraction(content) -
create_synthetic_yaml(function, line 2917)def create_synthetic_yaml(nmap_services) -
parse_yaml_response(function, line 2990)def parse_yaml_response(content) -
fix_common_yaml_issues(function, line 3025)def fix_common_yaml_issues(yaml_content) -
aggressive_yaml_fix(function, line 3065)def aggressive_yaml_fix(yaml_content) -
save_playbook(function, line 3096)def save_playbook(playbook_data, playbook_name) -
load_knowledge_base(function, line 3108)def load_knowledge_base(knowledge_file) -
anti_debug(function, line 3116)def anti_debug() -
create_msfshellcoder_parser(function, line 3125)def create_msfshellcoder_parser() -
load_user_aliases(function, line 3145)def load_user_aliases() -
MyServer(class, line 3157)class MyServer(HTTPServer) -
SimpleHTTPRequestHandler(class, line 3165)class SimpleHTTPRequestHandler(BaseHTTPRequestHandler) -
IP2ASN(class, line 3195)class IP2ASN -
VulnerabilityScanner(class, line 3284)class VulnerabilityScanner -
_build_startup_parser(function, line 3461)def _build_startup_parser() -
_redact(function, line 1200)def _redact(text) -
send_request(function, line 1723)def send_request(raw_url) -
handle_forms(function, line 1760)def handle_forms(content, url) -
replace_match(function, line 2779)def replace_match(match) -
log_request(method, line 3170)def log_request(self) -
log_message(method, line 3173)def log_message(self) -
do_GET(method, line 3176)def do_GET(self) -
__init__(method, line 3196)def __init__(self) -
open_file(method, line 3201)def open_file(self, filename) -
open_reader(method, line 3206)def open_reader(self, reader) -
_parse_file(method, line 3216)def _parse_file(self, reader) -
as_of_ip(method, line 3246)def as_of_ip(self, ip) -
_rec_index_has_ip(method, line 3252)def _rec_index_has_ip(self, idx, ip) -
as_name(method, line 3261)def as_name(self, asn) -
as_country(method, line 3265)def as_country(self, asn) -
__init__(method, line 3302)def __init__(self, user_agent, max_workers, sessions_dir, description_language) -
search_cves(method, line 3328)def search_cves(self, service) -
_enrich_cve(method, line 3377)def _enrich_cve(self, cve_info) -
persist(method, line 3398)def persist(self, service, target, cves) -
pretty_print(method, line 3435)def pretty_print(self, cves_details) -
_cvss_sort_key(function, line 3448)def _cvss_sort_key(record)
-
- Depends on:
cli/banner_config.py,core/config.py,core/console.py,core/crypto.py,core/dependencies.py,core/logging.py,core/parsers.py,core/process.py,core/safe_subprocess.py,core/validators.py,modules/backdoor/server.c,modules/lazyencoder_decoder.py,skills/claude_md_orchestrator/parser.py - Imported by:
banner.py,cli/commands/_base.py,cli/commands/ai.py,cli/commands/anti_forensics.py,cli/commands/applocker_bypass.py,cli/commands/bitm.py,cli/commands/bof_registry.py,cli/commands/c2_profile.py,cli/commands/c2_session.py,cli/commands/caldera.py,cli/commands/campaign.py,cli/commands/catalog.py,cli/commands/cicd.py,cli/commands/cli_auth.py,cli/commands/cloud.py,cli/commands/collaboration.py,cli/commands/command_and_control.py,cli/commands/command_and_control_migrated.py,cli/commands/containers.py,cli/commands/cred.py,cli/commands/cred_migrated.py,cli/commands/crystal_ball.py,cli/commands/daemon_ctl.py,cli/commands/database.py,cli/commands/defaults.py,cli/commands/demo.py,cli/commands/dns_exfil.py,cli/commands/dpapi.py,cli/commands/edr_detect.py,cli/commands/encoding.py,cli/commands/enum.py,cli/commands/estorides.py,cli/commands/evasive_payload.py,cli/commands/exfiltration.py,cli/commands/exploit.py,cli/commands/exploit_migrated.py,cli/commands/exploitgym.py,cli/commands/golden_paths.py,cli/commands/gym_matrix.py,cli/commands/help_ui.py,cli/commands/infra.py,cli/commands/lab.py,cli/commands/lateral.py,cli/commands/lateral_migrated.py,cli/commands/lazyloop.py,cli/commands/lazyops.py,cli/commands/marketplace.py,cli/commands/mcp_bridge.py,cli/commands/misc_migrated.py,cli/commands/mobile_macos.py,cli/commands/module_manager.py,cli/commands/nethelpers.py,cli/commands/params_ops.py,cli/commands/payload_generation.py,cli/commands/persist.py,cli/commands/persist_migrated.py,cli/commands/phishing_wizard.py,cli/commands/pivoting.py,cli/commands/postexp.py,cli/commands/postexp_migrated.py,cli/commands/privilege_escalation.py,cli/commands/pwn.py,cli/commands/recon.py,cli/commands/recon_migrated.py,cli/commands/redteam_gym.py,cli/commands/resource_scripting.py,cli/commands/retry_ops.py,cli/commands/scan.py,cli/commands/scan_migrated.py,cli/commands/session_ops.py,cli/commands/shellsys.py,cli/commands/sleep_obfuscation.py,cli/commands/socks_proxy.py,cli/commands/supply_chain.py,cli/commands/surface.py,cli/commands/ux.py,cli/commands/verb_admin.py,cli/commands/winbox_gym.py,cli/retry_support.py,contrib/legacy/lazysmbrelay.py,lazyc2.py,lazyc2/blueprints/phishing.py,lazyown.py,modules/atomic_cli.py,modules/c2_builder.py,modules/lazy_intel.py,modules/lazy_loop.py,modules/lazy_runner.py,modules/listener_manager.py,modules/winbox_gym.py,slack_c2_bot.py,tests/test_api_key_resolution.py,tests/test_audit_remediation.py,tests/test_boyscout_contracts.py,tests/test_fuzzy_picker.py,tests/test_lazy_worker_safety.py,tests/test_php2shell_addon.py,tests/test_retry_session.py,tests/test_scope_guard.py,tests/test_security_hardening_v5.py,tests/test_single_implementation.py
Generated offline by readmenator from commit e742884c3073. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_modules_lazyown_mcp
- community_10_skills_claude_md_orchestrator
- community_11_modules_kerberos_core
- community_12_modules_saas_attacks
- community_13_skills_hermes_lazyown
- community_14_modules_polymorphic_engine
- community_15_contrib_legacy
- community_16_tests
- community_17_scripts_journal
- community_18_modules_backdoor
- community_19_poc_tui
- community_1_cli_commands
- community_20_scripts_check_contract_manifest
- community_21_scripts_migrate_lazyown
- community_22_tools
- community_23_orphans
- community_2_modules_lazy_loop
- community_3_modules_world_model
- community_4_cli
- community_5_modules_html2pdf_bundle_min
- community_6_lazyc2_security
- community_7_lazygui_panels
- community_8_modules_llm_budget
- community_9_modules_chain_runner
- 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_p24
- 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
- ARCHITECTURE_p8
- ARCHITECTURE_p9
- 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_guardrails
- 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_mediation
- KB_misc
- KB_modules
- KB_modules_p10
- KB_modules_p11
- KB_modules_p12
- KB_modules_p13
- KB_modules_p14
- KB_modules_p15
- KB_modules_p16
- 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_root_p3
- 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_p18
- KB_tests_p19
- KB_tests_p2
- KB_tests_p20
- KB_tests_p21
- 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_p43
- SYMBOLS_p44
- SYMBOLS_p45
- SYMBOLS_p46
- SYMBOLS_p47
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes