Agent API_p3 - grisuno/LazyOwn GitHub Wiki
API (page 3 of 23)
Previous: API_p2.md
cli/commands/orchestration.py
Depends on: cli/commands/_base.py, cli/reasoning_stream.py, core/console.py
Imported by: tests/test_improvements_spec.py
run_with_spinner(function)cli/commands/orchestration.py:94def run_with_spinner(execute)-- Run a blocking orchestrator call with a live reasoning spinner.OrchestrationCommandSet.do_status_bar(method)cli/commands/orchestration.py:190def do_status_bar(self, args)-- Inspect, toggle and refresh the prompt status bar.OrchestrationCommandSet.do_orchestrate(method)cli/commands/orchestration.py:216def do_orchestrate(self, args)-- Route a goal through the unified orchestrator and print the result.
cli/commands/payload_arsenal.py
Depends on: cli/commands/_base.py, modules/dotnet_payload.py, modules/linux_advanced_payloads.py, modules/macos_payloads.py, modules/polymorphic_engine.py, modules/staged_delivery.py
PayloadArsenalCommandSet.do_dotnet_payload(method)cli/commands/payload_arsenal.py:29def do_dotnet_payload(self, line)-- Generate a .NET/C# payload.PayloadArsenalCommandSet.do_arsenal_show(method)cli/commands/payload_arsenal.py:114def do_arsenal_show(self, line)-- Show payload arsenal items.PayloadArsenalCommandSet.do_staged_delivery(method)cli/commands/payload_arsenal.py:172def do_staged_delivery(self, line)-- Generate staged delivery artifacts (HTA, VBA, LNK, ISO, VHD).PayloadArsenalCommandSet.do_polymorphic(method)cli/commands/payload_arsenal.py:261def do_polymorphic(self, line)-- Apply polymorphic mutation to shellcode.PayloadArsenalCommandSet.do_macos_payload(method)cli/commands/payload_arsenal.py:328def do_macos_payload(self, line)-- Generate macOS payloads (.app bundles, persistence, TCC bypass).PayloadArsenalCommandSet.do_linux_advanced_payload(method)cli/commands/payload_arsenal.py:401def do_linux_advanced_payload(self, line)-- Generate advanced Linux payloads (LD_PRELOAD, eBPF, PAM, kernel module).
cli/commands/payload_generation.py
Depends on: cli/commands/_base.py, modules/payload_factory.py, utils.py
PayloadCommandSet.do_generate(method)cli/commands/payload_generation.py:37def do_generate(self, line)-- Generate a payload.
cli/commands/persist.py
Depends on: cli/commands/_base.py, modules/categories.py, utils.py
PersistenceCommandSet.do_createwebshell(method)cli/commands/persist.py:33def do_createwebshell(self, line)-- Create web shells (JPG-disguised PHP, p0wny-shell, ASP).PersistenceCommandSet.do_createrevshell(method)cli/commands/persist.py:47def do_createrevshell(self, line)-- Create a bash reverse shell script in sessions/.PersistenceCommandSet.do_createwinrevshell(method)cli/commands/persist.py:61def do_createwinrevshell(self, line)-- Create a Windows reverse shell (PowerShell).PersistenceCommandSet.do_conptyshell(method)cli/commands/persist.py:73def do_conptyshell(self, line)-- Download ConPtyShell and prepare a PowerShell run command.PersistenceCommandSet.do_pwncatcs(method)cli/commands/persist.py:89def do_pwncatcs(self, line)-- Start a pwncat-cs reverse shell listener.PersistenceCommandSet.do_revwin(method)cli/commands/persist.py:99def do_revwin(self, line)-- Create a Windows reverse shell executable.PersistenceCommandSet.do_wmi_persist(method)cli/commands/persist.py:112def do_wmi_persist(self, line)-- Create WMI Event Subscription persistence (fileless, no disk write).PersistenceCommandSet.do_wmi_lateral(method)cli/commands/persist.py:170def do_wmi_lateral(self, line)-- Execute a command on a remote host via WMI.PersistenceCommandSet.do_wmi_scheduled_task(method)cli/commands/persist.py:209def do_wmi_scheduled_task(self, line)-- Create a scheduled task for persistence via WMI.
cli/commands/persist_migrated.py
Depends on: cli/assign.py, cli/commands/_base.py, core/config.py, core/hardening.py, modules/traffic_morpher.py, utils.py
Imported by: tests/test_backdoor_random.py
PersistMigratedCommandSet.generate_backdoor_username(method)cli/commands/persist_migrated.py:37def generate_backdoor_username()-- Generate a random backdoor username (same shape as C2 operators).PersistMigratedCommandSet.generate_backdoor_password(method)cli/commands/persist_migrated.py:43def generate_backdoor_password()-- Generate a random backdoor password safe for assign, chpasswd and CLIs.PersistMigratedCommandSet.resolve_backdoor_creds(method)cli/commands/persist_migrated.py:53def resolve_backdoor_creds(params)-- Return configured creds, or fresh random ones when unset.PersistMigratedCommandSet.do_pwncat(method)cli/commands/persist_migrated.py:91def do_pwncat(self, line)-- Runspwncatwith the specified port for listening.PersistMigratedCommandSet.do_ftp(method)cli/commands/persist_migrated.py:135def do_ftp(self, line)-- Connects to an ftp host using credentials from a file and a specified port.PersistMigratedCommandSet.do_rdp(method)cli/commands/persist_migrated.py:194def do_rdp(self, line)-- Reads credentials from a file, encrypts the password, and executes the RDP connection command.PersistMigratedCommandSet.do_grisun0(method)cli/commands/persist_migrated.py:268def do_grisun0(self, line)-- Creates and copies a shell command to add a new user, assign a password, add the user to the sudo group, and switch...PersistMigratedCommandSet.do_grisun0w(method)cli/commands/persist_migrated.py:312def do_grisun0w(self, line)-- Creates and copies a PowerShell command to add a new user, assign a password, add the user to the Administrators...PersistMigratedCommandSet.do_asprevbase64(method)cli/commands/persist_migrated.py:354def do_asprevbase64(self, line)-- Creates a base64 encoded ASP reverse shell payload and copies it to the clipboard.PersistMigratedCommandSet.do_weevelygen(method)cli/commands/persist_migrated.py:392def do_weevelygen(self, line)-- Generate a PHP backdoor using Weevely, protected with the given password.PersistMigratedCommandSet.do_weevely(method)cli/commands/persist_migrated.py:432def do_weevely(self, line)-- Connect to PHP backdoor using Weevely, protected with the given password.PersistMigratedCommandSet.do_backdoor_factory(method)cli/commands/persist_migrated.py:478def do_backdoor_factory(self, line)-- Creates a backdoored executable usingbackdoor-factory.PersistMigratedCommandSet.do_msfpc(method)cli/commands/persist_migrated.py:524def do_msfpc(self, line)-- Generates payloads using MSFvenom Payload Creator (MSFPC).PersistMigratedCommandSet.do_ivy(method)cli/commands/persist_migrated.py:605def do_ivy(self, line)-- Generates payloads using Ivy with various options.PersistMigratedCommandSet.do_veil(method)cli/commands/persist_migrated.py:705def do_veil(self, line)-- Generates payloads using Veil-Evasion with various options.PersistMigratedCommandSet.do_scarecrow(method)cli/commands/persist_migrated.py:779def do_scarecrow(self, line)-- Executes ScareCrow with various options for bypassing EDR solutions and executing shellcode. to create the...PersistMigratedCommandSet.do_generate_revshell(method)cli/commands/persist_migrated.py:897def do_generate_revshell(self, line)-- Generate a reverse shell in various programming languages.PersistMigratedCommandSet.do_dr0p1t(method)cli/commands/persist_migrated.py:963def do_dr0p1t(self, line)-- Execute the Dr0p1t tool to create a stealthy malware dropper.PersistMigratedCommandSet.do_paranoid_meterpreter(method)cli/commands/persist_migrated.py:1026def do_paranoid_meterpreter(self, line)-- Creates and deploys a paranoid Meterpreter payload and listener with SSL/TLS pinning and UUID tracking.PersistMigratedCommandSet.do_setoolKits(method)cli/commands/persist_migrated.py:1114def do_setoolKits(self, line)-- Executes the SEToolKit workflow to generate a Meterpreter payload and configure the multi-handler using LHOST and...PersistMigratedCommandSet.do_darkarmour(method)cli/commands/persist_migrated.py:1147def do_darkarmour(self, line)-- Uses the darkarmour tool to generate an undetectable version of a PE executable.PersistMigratedCommandSet.do_knokknok(method)cli/commands/persist_migrated.py:1215def do_knokknok(self, line)-- Send special string to trigger a reverse shell, with the command 'c2 client_name' create a listener shell script to...PersistMigratedCommandSet.do_listener_go(method)cli/commands/persist_migrated.py:1250def do_listener_go(self, line)-- Configures and starts a listener for a specified victim.PersistMigratedCommandSet.do_listener_py(method)cli/commands/persist_migrated.py:1317def do_listener_py(self, line)-- Configures and starts a listener for a specified victim.PersistMigratedCommandSet.do_service(method)cli/commands/persist_migrated.py:1384def do_service(self, line)-- Creates a systemd service file for a specified binary and generates a script to enable and start the service.PersistMigratedCommandSet.do_toctoc(method)cli/commands/persist_migrated.py:1457def do_toctoc(self, line)-- Sends a magic packet to the Chinese malware.PersistMigratedCommandSet.do_beaconcfg(method)cli/commands/persist_migrated.py:1480def do_beaconcfg(self, line)-- Generate a C2 beacon profile with traffic morphing and domain fronting.
cli/commands/phishing_wizard.py
Depends on: cli/commands/_base.py, modules/backdoor/server.c, modules/phishing_orchestrator.py, utils.py
PhishingWizardCommandSet.do_phish_wizard(method)cli/commands/phishing_wizard.py:190def do_phish_wizard(self, line)-- Interactive end-to-end phishing campaign wizard.PhishingWizardCommandSet.do_phish_serve(method)cli/commands/phishing_wizard.py:361def do_phish_serve(self, line)-- Start a lightweight HTTP server for phishing landing pages.PhishingHandler.log_message(method)cli/commands/phishing_wizard.py:389def log_message(self, format)PhishingHandler.do_GET(method)cli/commands/phishing_wizard.py:392def do_GET(self)PhishingHandler.do_POST(method)cli/commands/phishing_wizard.py:407def do_POST(self)PhishingHandler.do_OPTIONS(method)cli/commands/phishing_wizard.py:427def do_OPTIONS(self)PhishingHandler.do_phish_report(method)cli/commands/phishing_wizard.py:443def do_phish_report(self, line)-- Show campaign results and captured credentials.do_phisher(function)cli/commands/phishing_wizard.py:637def do_phisher(self, line)-- Launch a phishing campaign against a target domain.
cli/commands/pivoting.py
Depends on: cli/commands/_base.py, core/hardening.py, utils.py
PivotingCommandSet.do_autopivot(method)cli/commands/pivoting.py:44def do_autopivot(self, line)-- Auto-detect internal networks and set up pivot tunnels.PivotingCommandSet.do_pivot_status(method)cli/commands/pivoting.py:118def do_pivot_status(self, line)-- Show the current pivot chain state.PivotingCommandSet.do_pivot_kill(method)cli/commands/pivoting.py:137def do_pivot_kill(self, line)-- Kill all pivot tunnels and clean up.PivotingCommandSet.do_pivot_scan(method)cli/commands/pivoting.py:171def do_pivot_scan(self, line)-- Scan internal networks through the current pivot chain.PivotingCommandSet.do_pivot_proxy(method)cli/commands/pivoting.py:224def do_pivot_proxy(self, line)-- Start a local SOCKS proxy through the pivot chain.
cli/commands/postexp.py
Depends on: cli/commands/_base.py, modules/categories.py, utils.py
PostExploitationCommandSet.do_lazywebshell(method)cli/commands/postexp.py:32def do_lazywebshell(self, line)-- Run LazyOwn webshell server on port 8888.PostExploitationCommandSet.do_disableav(method)cli/commands/postexp.py:45def do_disableav(self, line)-- Create a VBS script to attempt disabling Windows Defender.PostExploitationCommandSet.do_mimikatzpy(method)cli/commands/postexp.py:59def do_mimikatzpy(self, line)-- Run Mimikatz over Python (impacket style).PostExploitationCommandSet.do_scavenger(method)cli/commands/postexp.py:64def do_scavenger(self, line)-- Run the Scavenger post-exploitation data collector.PostExploitationCommandSet.do_follina(method)cli/commands/postexp.py:69def do_follina(self, line)-- Run the Follina (CVE-2022-30190) exploit setup.PostExploitationCommandSet.do_shellcode(method)cli/commands/postexp.py:74def do_shellcode(self, line)-- Generate and manage shellcode.PostExploitationCommandSet.do_ofuscatorps1(method)cli/commands/postexp.py:82def do_ofuscatorps1(self, line)-- Obfuscate a PowerShell script.PostExploitationCommandSet.do_atomic_lazyown(method)cli/commands/postexp.py:87def do_atomic_lazyown(self, line)-- Execute atomic red-team tests via LazyOwn.
cli/commands/postexp_migrated.py
Depends on: cli/commands/_base.py, modules/yara_scanner.py, utils.py
PostexpMigratedCommandSet.do_find(method)cli/commands/postexp_migrated.py:37def do_find(self, line)-- Automates command execution based on a list of aliases and commands.PostexpMigratedCommandSet.do_cports(method)cli/commands/postexp_migrated.py:533def do_cports(self, line)-- Generates a command to display TCP and UDP ports and copies it to the clipboard.PostexpMigratedCommandSet.do_rubeus(method)cli/commands/postexp_migrated.py:578def do_rubeus(self, line)-- Copies a command to the clipboard for downloading and running Rubeus.PostexpMigratedCommandSet.do_sessionsshstrace(method)cli/commands/postexp_migrated.py:618def do_sessionsshstrace(self, line)-- Attach strace to a running process and log output to a file.PostexpMigratedCommandSet.do_powershell_cmd_stager(method)cli/commands/postexp_migrated.py:669def do_powershell_cmd_stager(self, line)-- Generate and execute a PowerShell command stager to run a .ps1 script.PostexpMigratedCommandSet.do_shellcode_search(method)cli/commands/postexp_migrated.py:706def do_shellcode_search(self, line)-- Search the shell-storm API for shellcodes using the provided keywords.PostexpMigratedCommandSet.do_shellcode2sylk(method)cli/commands/postexp_migrated.py:754def do_shellcode2sylk(self, line)-- Converts shellcode to SYLK format and saves the result to a file.PostexpMigratedCommandSet.do_pezorsh(method)cli/commands/postexp_migrated.py:799def do_pezorsh(self, line)-- Executes the PEzor tool to pack executables or shellcode with custom configurations.PostexpMigratedCommandSet.do_pip_repo(method)cli/commands/postexp_migrated.py:872def do_pip_repo(self, line)-- Sets up a local pip repository to serve Python packages for installation on a compromised machine without internet...PostexpMigratedCommandSet.do_apt_repo(method)cli/commands/postexp_migrated.py:984def do_apt_repo(self, line)-- Creates a comprehensive local APT repository with enhanced dependency resolution.resolve_and_download_dependencies(function)cli/commands/postexp_migrated.py:1030def resolve_and_download_dependencies(package_name)-- Recursively resolve and download package dependencies with enhanced checksPostexpMigratedCommandSet.do_createpayload(method)cli/commands/postexp_migrated.py:1233def do_createpayload(self, line)-- Generates an obfuscated payload to evade AV detection using the payloadGenerator tool. thanks to smokemePostexpMigratedCommandSet.do_bin2shellcode(method)cli/commands/postexp_migrated.py:1285def do_bin2shellcode(self, line)-- Converts a binary file to a shellcode string in C or Nim format.PostexpMigratedCommandSet.do_exe2bin(method)cli/commands/postexp_migrated.py:1375def do_exe2bin(self, line)-- Trasnform file .exe into binary file.PostexpMigratedCommandSet.do_exe2donutbin(method)cli/commands/postexp_migrated.py:1402def do_exe2donutbin(self, line)-- Trasnform file .exe into donut binary file.PostexpMigratedCommandSet.do_issue_command_to_c2(method)cli/commands/postexp_migrated.py:1426def do_issue_command_to_c2(self, line)-- Exec command in the client using the C2. download: command you must put the file in sessions/temp_upload or use...PostexpMigratedCommandSet.do_d3monizedshell(method)cli/commands/postexp_migrated.py:1450def do_d3monizedshell(self, line)-- Executes the D3m0n1z3dShell tool for persistence in Linux.PostexpMigratedCommandSet.do_scp(method)cli/commands/postexp_migrated.py:1483def do_scp(self, line)-- Copies the local "sessions" directory to a remote host using scp, leveraging sshpass for automated authentication.PostexpMigratedCommandSet.do_apt_proxy(method)cli/commands/postexp_migrated.py:1579def do_apt_proxy(self, line)-- Configures the local machine with internet access to act as an APT proxy for a machine without internet access.PostexpMigratedCommandSet.do_pip_proxy(method)cli/commands/postexp_migrated.py:1635def do_pip_proxy(self, line)-- Configures the local machine with internet access to act as a pip proxy for a machine without internet access.PostexpMigratedCommandSet.do_internet_proxy(method)cli/commands/postexp_migrated.py:1693def do_internet_proxy(self, line)-- Configures the local machine with internet access to act as a proxy for a machine without internet access.PostexpMigratedCommandSet.do_shellcode2elf(method)cli/commands/postexp_migrated.py:1755def do_shellcode2elf(self, line)-- Convert shellcode into an ELF file and infect it.PostexpMigratedCommandSet.do_ssh_cmd(method)cli/commands/postexp_migrated.py:1837def do_ssh_cmd(self, line)-- Perform Remote Execution Command through SSH using configured start_user.PostexpMigratedCommandSet.do_service_ssh(method)cli/commands/postexp_migrated.py:1866def do_service_ssh(self, line)-- Creates a systemd service file for a specified binary and generates a script to enable and start the service.PostexpMigratedCommandSet.do_ofuscatesh(method)cli/commands/postexp_migrated.py:1940def do_ofuscatesh(self, line)-- Obfuscates a shell script by encoding it in Base64 and prepares a command to decode and execute it.PostexpMigratedCommandSet.do_ofuscate_payload(method)cli/commands/postexp_migrated.py:1970def do_ofuscate_payload(self, line)-- Obfuscates a shell script by encoding it in Base64 and prepares a command to decode and execute it.PostexpMigratedCommandSet.do_adversary(method)cli/commands/postexp_migrated.py:1997def do_adversary(self, line)-- LazyOwn RedTeam Adversary Emulator, you can configure your own adversaries in adversary.jsonPostexpMigratedCommandSet.do_ofuscate_string(method)cli/commands/postexp_migrated.py:2145def do_ofuscate_string(self, line)-- Ofuscate a string into Go code.PostexpMigratedCommandSet.do_path2hex(method)cli/commands/postexp_migrated.py:2187def do_path2hex(self, line)-- Convert a binary path to x64 little-endian hex code for shellcode injection.PostexpMigratedCommandSet.do_hex2shellcode(method)cli/commands/postexp_migrated.py:2234def do_hex2shellcode(self, line)-- Convert raw hex payload from msfvenom into NASM-compatible shellcode format.PostexpMigratedCommandSet.do_create_synthetic(method)cli/commands/postexp_migrated.py:2291def do_create_synthetic(self, line)-- Create a basic synthetic playbook from Nmap CSV when LLM fails.PostexpMigratedCommandSet.do_extract_yaml(method)cli/commands/postexp_migrated.py:2343def do_extract_yaml(self, line)-- Extract YAML from an existing debug file and try to create a playbook.PostexpMigratedCommandSet.do_convert_remcomsvc_from_file(method)cli/commands/postexp_migrated.py:2405def do_convert_remcomsvc_from_file(self, arg)-- Converts the Python REMCOMSVC byte string from remcomsvc.py to Golang byte slice format, prints a sample, and saves...PostexpMigratedCommandSet.do_adversary_yaml(method)cli/commands/postexp_migrated.py:2439def do_adversary_yaml(self, line)-- Execute adversary from YAML in lazyadversaries/*.yaml Syntax: adversary [id] [l|r|n]PostexpMigratedCommandSet.do_add2find(method)cli/commands/postexp_migrated.py:2524def do_add2find(self, line)-- Add a new custom command to the 'find' system, saved in user_commands.json.PostexpMigratedCommandSet.do_rmfromfind(method)cli/commands/postexp_migrated.py:2552def do_rmfromfind(self, line)-- Remove a custom command by index (as shown in 'find').PostexpMigratedCommandSet.do_aes_pe(method)cli/commands/postexp_migrated.py:2581def do_aes_pe(self, line)-- Encrypt with AES and random key to PE EXE file, to usage with loaders.PostexpMigratedCommandSet.do_yara_scan(method)cli/commands/postexp_migrated.py:2610def do_yara_scan(self, line)-- Scan files or directories with YARA rules for malware/IOCs.
cli/commands/privilege_escalation.py
Depends on: cli/commands/_base.py, utils.py
Imported by: tests/test_shell_semantics.py
PrivilegeEscalationCommandSet.do_smbserver(method)cli/commands/privilege_escalation.py:139def do_smbserver(self, line)-- Stand up an Impacket SMB server with three relay variants.PrivilegeEscalationCommandSet.do_responder(method)cli/commands/privilege_escalation.py:197def do_responder(self, line)-- Run Responder on the configureddevicewith elevated privileges.PrivilegeEscalationCommandSet.do_sudo(method)cli/commands/privilege_escalation.py:222def do_sudo(self, line)-- Re-launch the framework with root privileges when missing.PrivilegeEscalationCommandSet.do_linpeas(method)cli/commands/privilege_escalation.py:235def do_linpeas(self, line)-- Servelinpeas.shover HTTP and print the target one-liner.PrivilegeEscalationCommandSet.do_winpeas(method)cli/commands/privilege_escalation.py:271def do_winpeas(self, line)-- Serve a winPEAS variant over HTTP and print the target one-liner.PrivilegeEscalationCommandSet.do_les(method)cli/commands/privilege_escalation.py:310def do_les(self, line)-- Run Linux Exploit Suggester against a kernel version.PrivilegeEscalationCommandSet.do_suid_check(method)cli/commands/privilege_escalation.py:350def do_suid_check(self, line)-- Print SUID/SGID enumeration commands ready to paste on the target.PrivilegeEscalationCommandSet.do_pspy(method)cli/commands/privilege_escalation.py:369def do_pspy(self, line)-- Serve thepspyprocess monitor over HTTP.PrivilegeEscalationCommandSet.do_gtfo(method)cli/commands/privilege_escalation.py:403def do_gtfo(self, line)-- Look up a binary in GTFOBins and LOLBas parquet knowledge bases.PrivilegeEscalationCommandSet.do_whoami_priv(method)cli/commands/privilege_escalation.py:450def do_whoami_priv(self, line)-- Print privilege enumeration commands for the target OS.PrivilegeEscalationCommandSet.do_sudo_privesc(method)cli/commands/privilege_escalation.py:512def do_sudo_privesc(self, line)-- Analyse sudo -l output and cross-reference with GTFOBins.PrivilegeEscalationCommandSet.do_printspoofer(method)cli/commands/privilege_escalation.py:610def do_printspoofer(self, line)-- Serve PrintSpoofer over HTTP for Windows privilege escalation.PrivilegeEscalationCommandSet.do_juicypotato(method)cli/commands/privilege_escalation.py:632def do_juicypotato(self, line)-- Serve JuicyPotato over HTTP for Windows privilege escalation.PrivilegeEscalationCommandSet.do_privesc_cmd_by_os(method)cli/commands/privilege_escalation.py:754def do_privesc_cmd_by_os(self, line)-- Prepare and send a linpeas/winpeas command to a C2 client.
cli/commands/purple_team.py
Depends on: cli/commands/_base.py, cli/purple_tui.py, core/config.py, modules/auto_purple.py
PurpleTeamCommandSet.do_purple_exec(method)cli/commands/purple_team.py:144def do_purple_exec(self, line)-- Execute a red action and measure if LazyOwnBT detects it.PurpleTeamCommandSet.do_purple_test(method)cli/commands/purple_team.py:203def do_purple_test(self, args)-- Test if LazyOwnBT would detect a command (no execution).PurpleTeamCommandSet.do_purple_score(method)cli/commands/purple_team.py:223def do_purple_score(self, line)-- Show current engagement detection score.PurpleTeamCommandSet.do_purple_report(method)cli/commands/purple_team.py:271def do_purple_report(self, line)-- Generate full engagement report with datasets.PurpleTeamCommandSet.do_purple_methods(method)cli/commands/purple_team.py:285def do_purple_methods(self, line)-- List available LazyOwnBT detection methods.PurpleTeamCommandSet.do_purple_config(method)cli/commands/purple_team.py:297def do_purple_config(self, args)-- Show or update purple team configuration (payload.json).PurpleTeamCommandSet.do_purple_dashboard(method)cli/commands/purple_team.py:350def do_purple_dashboard(self, line)-- Launch the Purple Team TUI dashboard.PurpleTeamCommandSet.do_purple_history(method)cli/commands/purple_team.py:367def do_purple_history(self, args)-- Show recent purple team action results.
cli/commands/pwn.py
Depends on: cli/commands/_base.py, core/safe_exec.py, core/validators.py, modules/ai_exploit_chain.py, modules/autonomous_exploit_engine.py, modules/dashboard_engine.py, modules/enrich.py, modules/exploit_recommender.py, modules/rich_tui.py, modules/world_model.py, utils.py
Imported by: contrib/legacy/lazybinenc.py, contrib/legacy/lazypwn.py, contrib/legacy/lazyvsftp.py, contrib/legacy/sql.py
PwnCommandSet.do_auto_pwn(method)cli/commands/pwn.py:35def do_auto_pwn(self, line)-- Run the full autonomous exploitation chain against the target.PwnCommandSet.do_rich_tui(method)cli/commands/pwn.py:109def do_rich_tui(self, line)-- Launch the Rich-based live dashboard TUI.PwnCommandSet.do_exploit_chain(method)cli/commands/pwn.py:158def do_exploit_chain(self, line)-- AI-driven multi-step exploit chaining with fallback strategies.PwnCommandSet.do_lolbas_list(method)cli/commands/pwn.py:245def do_lolbas_list(self, line)-- List available LOLBAS (Living Off The Land) techniques from plugins.PwnCommandSet.do_lolbas_use(method)cli/commands/pwn.py:302def do_lolbas_use(self, line)-- Execute a specific LOLBAS technique.PwnCommandSet.do_stealth_on(method)cli/commands/pwn.py:394def do_stealth_on(self, line)-- Enable stealth mode for subsequent operations.PwnCommandSet.do_stealth_off(method)cli/commands/pwn.py:422def do_stealth_off(self, line)-- Disable stealth mode.
cli/commands/recon.py
Depends on: cli/commands/_base.py, cli/exploit_advisor.py, cli/lazynmap_post.py, core/console.py, modules/intelligence_engine.py, utils.py
ReconCommandSet.do_batchnmap(method)cli/commands/recon.py:47def do_batchnmap(self, line)-- Runs the internal modulemodules/lazynmap.shfor multiple Nmap scans.ReconCommandSet.do_lazynmap(method)cli/commands/recon.py:74def do_lazynmap(self, line)-- Runs the internal modulemodules/lazynmap.shwith target mode.ReconCommandSet.do_dig(method)cli/commands/recon.py:154def do_dig(self, line)-- Executes thedigcommand to query DNS information.ReconCommandSet.do_dnsenum(method)cli/commands/recon.py:186def do_dnsenum(self, line)-- Performs DNS enumeration usingdnsenumto identify subdomains for a given domain.ReconCommandSet.do_dnsmap(method)cli/commands/recon.py:222def do_dnsmap(self, line)-- Performs DNS enumeration usingdnsmapto discover subdomains for a specified domain.ReconCommandSet.do_whatweb(method)cli/commands/recon.py:255def do_whatweb(self, line)-- Performs a web technology fingerprinting scan usingwhatweb.ReconCommandSet.do_nbtscan(method)cli/commands/recon.py:292def do_nbtscan(self, line)-- Performs network scanning usingnbtscanto discover NetBIOS names and addresses in a specified range.ReconCommandSet.do_nikto(method)cli/commands/recon.py:320def do_nikto(self, line)-- Runs theniktotool to perform a web server vulnerability scan against the specified target host.ReconCommandSet.do_finalrecon(method)cli/commands/recon.py:429def do_finalrecon(self, line)-- Runs thefinalrecontool to perform a web server vulnerability scan against the specified target host.ReconCommandSet.do_openssl_sclient(method)cli/commands/recon.py:461def do_openssl_sclient(self, line)-- Usesopenssl s_clientto connect to a specified host and port, allowing for testing and debugging of SSL/TLS...ReconCommandSet.do_ss(method)cli/commands/recon.py:491def do_ss(self, line)-- Search all exploit sources and map findings to the next LazyOwn command.ReconCommandSet.do_wfuzz(method)cli/commands/recon.py:654def do_wfuzz(self, line)-- Useswfuzzto perform fuzzing based on provided parameters.
cli/commands/recon_migrated.py
Depends on: cli/aliases.py, cli/assign.py, cli/commands/_base.py, cli/surface_tui.py, core/config.py, utils.py
ReconMigratedCommandSet.do_surface(method)cli/commands/recon_migrated.py:43def do_surface(self, line)-- Render the network surface graph in the terminal.ReconMigratedCommandSet.do_getcap(method)cli/commands/recon_migrated.py:97def do_getcap(self, line)-- Retrieve and display file capabilities on the system.ReconMigratedCommandSet.do_launchpad(method)cli/commands/recon_migrated.py:131def do_launchpad(self, line)-- Searches for packages on Launchpad based on the provided search term and extracts codenames from the results.ReconMigratedCommandSet.do_ping(method)cli/commands/recon_migrated.py:177def do_ping(self, line)-- Perform a ping to check host availability and infer the operating system based on TTL values.ReconMigratedCommandSet.do_gospider(method)cli/commands/recon_migrated.py:285def do_gospider(self, line)-- Try gospider for web spidering.ReconMigratedCommandSet.do_proxy(method)cli/commands/recon_migrated.py:373def do_proxy(self, line)-- Runs a small proxy server to modify HTTP requests on the fly.ReconMigratedCommandSet.do_ports(method)cli/commands/recon_migrated.py:411def do_ports(self, line)-- Lists all open TCP and UDP ports on the local system.ReconMigratedCommandSet.do_tcpdump_icmp(method)cli/commands/recon_migrated.py:453def do_tcpdump_icmp(self, line)-- Startstcpdumpto capture ICMP traffic on the specified interface.ReconMigratedCommandSet.do_tcpdump_capture(method)cli/commands/recon_migrated.py:486def do_tcpdump_capture(self, line)-- Starts packet capture usingtcpdumpon the specified interface.ReconMigratedCommandSet.do_tshark_analyze(method)cli/commands/recon_migrated.py:527def do_tshark_analyze(self, line)-- Analyzes a packet capture file usingtsharkbased on the provided remote host IP.ReconMigratedCommandSet.do_waybackmachine(method)cli/commands/recon_migrated.py:593def do_waybackmachine(self, line)-- Fetch URLs from the Wayback Machine for a given website.ReconMigratedCommandSet.do_sslscan(method)cli/commands/recon_migrated.py:633def do_sslscan(self, line)-- Run an SSL scan on the specified remote host.ReconMigratedCommandSet.do_graudit(method)cli/commands/recon_migrated.py:674def do_graudit(self, line)-- Executes the graudit command to perform a static code analysis with the specified options.ReconMigratedCommandSet.do_sherlock(method)cli/commands/recon_migrated.py:705def do_sherlock(self, line)-- Executes the Sherlock tool to find usernames across social networks.ReconMigratedCommandSet.do_trufflehog(method)cli/commands/recon_migrated.py:746def do_trufflehog(self, line)-- Executes trufflehog to search for secrets in a given Git repository URL.ReconMigratedCommandSet.do_apache_users(method)cli/commands/recon_migrated.py:784def do_apache_users(self, line)-- Performs enumeration of users from a target system usingapache-users.ReconMigratedCommandSet.do_trace(method)cli/commands/recon_migrated.py:831def do_trace(self, line)-- Traces the DNS information for a given self.params['domain'] using the FreeDNS service.ReconMigratedCommandSet.do_alterx(method)cli/commands/recon_migrated.py:874def do_alterx(self, line)-- Executes the 'alterx' command for subdomain enumeration on the provided self.params['domain'].ReconMigratedCommandSet.do_windapsearchscrapeusers(method)cli/commands/recon_migrated.py:951def do_windapsearchscrapeusers(self, line)-- Extracts usernames from a JSON output generated by go-windapsearch and appends them to the file sessions/users.txt.ReconMigratedCommandSet.do_cve(method)cli/commands/recon_migrated.py:987def do_cve(self, line)-- Search for a CVE using the CIRCL API.ReconMigratedCommandSet.do_serveralive2(method)cli/commands/recon_migrated.py:1036def do_serveralive2(self, line)-- Command serveralive2: Uses Impacket to connect to a remote MSRPC interface and retrieves the server bindings.ReconMigratedCommandSet.do_binarycheck(method)cli/commands/recon_migrated.py:1070def do_binarycheck(self, line)-- Performs various checks on a selected binary to gather information and protections.ReconMigratedCommandSet.do_dnstool_py(method)cli/commands/recon_migrated.py:1115def do_dnstool_py(self, line)-- Executes the dnstool.py tool to modify Active Directory-integrated DNS records.ReconMigratedCommandSet.do_metabigor(method)cli/commands/recon_migrated.py:1161def do_metabigor(self, line)-- Executes Metabigor commands for OSINT and scanning tasks with guided input or predefined arguments.ReconMigratedCommandSet.do_httprobe(method)cli/commands/recon_migrated.py:1237def do_httprobe(self, line)-- Executes the httprobe tool to probe domains for working HTTP and HTTPS servers.ReconMigratedCommandSet.do_recon(method)cli/commands/recon_migrated.py:1280def do_recon(self, line)-- Performs reconnaissance on a specified self.params['domain'] using crt.sh (the target must be visible on internet)...ReconMigratedCommandSet.do_dnschef(method)cli/commands/recon_migrated.py:1334def do_dnschef(self, line)-- Executes the DNSChef tool to monitor DNS queries and intercept responses.ReconMigratedCommandSet.do_ipinfo(method)cli/commands/recon_migrated.py:1369def do_ipinfo(self, line)-- Retrieves detailed information about an IP address using the ARIN API.
cli/commands/redteam_gym.py
Depends on: cli/commands/_base.py, modules/redteam_gym.py, utils.py
RedTeamGymCommandSet.do_gym(method)cli/commands/redteam_gym.py:39def do_gym(self, line)-- Red Team Gym — gamified pentest training with ELO scoring.
cli/commands/resource_scripting.py
Depends on: cli/commands/_base.py, modules/resource_script.py, utils.py
on_cmd(function)cli/commands/resource_scripting.py:35def on_cmd(cmd)on_print(function)cli/commands/resource_scripting.py:39def on_print(msg)ResourceCommandSet.do_resource(method)cli/commands/resource_scripting.py:49def do_resource(self, line)-- Run an enhanced resource script.ResourceCommandSet.do_makerc(method)cli/commands/resource_scripting.py:88def do_makerc(self, line)-- Record session commands to a resource script.ResourceCommandSet.do_spool(method)cli/commands/resource_scripting.py:122def do_spool(self, line)-- Log session output to a file.ResourceCommandSet.do_mkrc(method)cli/commands/resource_scripting.py:152def do_mkrc(self, line)-- Alias for makerc — record commands to a script.
cli/commands/scan.py
Depends on: cli/commands/_base.py, utils.py
ScanCommandSet.do_gobuster(method)cli/commands/scan.py:56def do_gobuster(self, line)-- Usesgobusterfor directory and virtual host fuzzing based on provided parameters.ScanCommandSet.do_arpscan(method)cli/commands/scan.py:129def do_arpscan(self, line)-- Executes an ARP scan usingarp-scan.ScanCommandSet.do_dirsearch(method)cli/commands/scan.py:170def do_dirsearch(self, line)-- Runs thedirsearchtool to perform directory and file enumeration on a specified URL.ScanCommandSet.do_dmitry(method)cli/commands/scan.py:213def do_dmitry(self, line)-- This function constructs and executes a command for the 'dmitry' tool.ScanCommandSet.do_feroxbuster(method)cli/commands/scan.py:248def do_feroxbuster(self, line)-- Command feroxbuster: Installs and runs Feroxbuster for performing forced browsing and directory brute-forcing.ScanCommandSet.do_nmapscript(method)cli/commands/scan.py:316def do_nmapscript(self, line)-- Perform an Nmap scan using a specified script and port.ScanCommandSet.do_nuclei(method)cli/commands/scan.py:350def do_nuclei(self, line)-- Executes a Nuclei scan on a specified target URL or host.ScanCommandSet.do_amass(method)cli/commands/scan.py:392def do_amass(self, line)-- Executes Amass to perform a passive enumeration on a given domain.ScanCommandSet.do_bbot(method)cli/commands/scan.py:422def do_bbot(self, line)-- Executes a BBOT scan to perform various reconnaissance tasks.ScanCommandSet.do_osmedeus(method)cli/commands/scan.py:473def do_osmedeus(self, line)-- Executes Osmedeus scans with guided input for various scanning scenarios.ScanCommandSet.do_magicrecon(method)cli/commands/scan.py:548def do_magicrecon(self, line)-- Command magicrecon: Automates the setup and usage of MagicRecon to perform various types of reconnaissance and...ScanCommandSet.do_hostdiscover(method)cli/commands/scan.py:606def do_hostdiscover(self, line)-- Discover active hosts in a subnet by performing a ping sweep.ScanCommandSet.do_portdiscover(method)cli/commands/scan.py:664def do_portdiscover(self, line)-- Scan all ports on a specified host to identify open ports.ScanCommandSet.do_portservicediscover(method)cli/commands/scan.py:724def do_portservicediscover(self, line)-- Scan all ports on a specified host to identify open ports and associated services.ScanCommandSet.do_skipfish(method)cli/commands/scan.py:789def do_skipfish(self, line)-- This function executes the web security scanning tool Skipfish using the provided configuration and parameters.ScanCommandSet.do_vscan(method)cli/commands/scan.py:839def do_vscan(self, line)-- Perform port scanning using vscan with the provided parameters.
cli/commands/scan_migrated.py
Depends on: cli/commands/_base.py, utils.py
ScanMigratedCommandSet.do_cme(method)cli/commands/scan_migrated.py:37def do_cme(self, line)-- Execute CrackMapExec (CME) for SMB enumeration and authentication attempts against a target.ScanMigratedCommandSet.do_ldapdomaindump(method)cli/commands/scan_migrated.py:176def do_ldapdomaindump(self, line)-- Dumps LDAP information usingldapdomaindumpwith credentials from a file.ScanMigratedCommandSet.do_bloodhound(method)cli/commands/scan_migrated.py:218def do_bloodhound(self, line)-- Perform LDAP enumeration using bloodhound-python with credentials from a file.ScanMigratedCommandSet.do_swaks(method)cli/commands/scan_migrated.py:267def do_swaks(self, line)-- Sends an email usingswaks(Swiss Army Knife for SMTP).ScanMigratedCommandSet.do_samrdump(method)cli/commands/scan_migrated.py:306def do_samrdump(self, line)-- Runimpacket-samrdumpto dump SAM data from specified ports.ScanMigratedCommandSet.do_lynis(method)cli/commands/scan_migrated.py:361def do_lynis(self, line)-- Performs a Lynis audit on the specified remote system.ScanMigratedCommandSet.do_snmpcheck(method)cli/commands/scan_migrated.py:390def do_snmpcheck(self, line)-- Performs an SNMP check on the specified target host.ScanMigratedCommandSet.do_snmpwalk(method)cli/commands/scan_migrated.py:417def do_snmpwalk(self, line)-- Performs an SNMP check on the specified target host.ScanMigratedCommandSet.do_smtpuserenum(method)cli/commands/scan_migrated.py:444def do_smtpuserenum(self, line)-- Enumerates SMTP users using thesmtp-user-enumtool with the VRFY method.ScanMigratedCommandSet.do_sessionssh(method)cli/commands/scan_migrated.py:483def do_sessionssh(self, line)-- Execute a command to list active SSH connections.ScanMigratedCommandSet.do_smbattack(method)cli/commands/scan_migrated.py:507def do_smbattack(self, line)-- Scans for hosts with SMB service open on port 445 in the specified target network.find_tgts(function)cli/commands/scan_migrated.py:536def find_tgts(subnet)-- Finds and returns a list of target hosts with port 445 open in the specified subnet.setup_handler(function)cli/commands/scan_migrated.py:562def setup_handler(config_file, lhost, lport)-- Sets up a Metasploit multi/handler configuration in the given config file.conficker_exploit(function)cli/commands/scan_migrated.py:582def conficker_exploit(config_file, host, lhost, lport)-- Configures and writes a Metasploit exploit for the Conficker vulnerability to the given config file.smb_brute(function)cli/commands/scan_migrated.py:602def smb_brute(config_file, host, passwd_file, lhost, lport)-- Configures and writes a Metasploit SMB brute force exploit for the given host to the provided config file.ScanMigratedCommandSet.do_parsero(method)cli/commands/scan_migrated.py:667def do_parsero(self, line)-- Executes a parsero scan on a specified target URL or host.ScanMigratedCommandSet.do_changeme(method)cli/commands/scan_migrated.py:699def do_changeme(self, line)-- Executes a changeme scan on a specified target URL or host.ScanMigratedCommandSet.do_enum4linux_ng(method)cli/commands/scan_migrated.py:730def do_enum4linux_ng(self, line)-- Performs enumeration of information from a target system usingenum4linux-ng.ScanMigratedCommandSet.do_fuzz(method)cli/commands/scan_migrated.py:770def do_fuzz(self, line)-- Executes a web server fuzzing script with user-provided parameters.ScanMigratedCommandSet.do_kerbrute(method)cli/commands/scan_migrated.py:815def do_kerbrute(self, line)-- Executes the Kerbrute tool to enumerate user accounts against a specified target self.params['domain'] controller.ScanMigratedCommandSet.do_davtest(method)cli/commands/scan_migrated.py:901def do_davtest(self, line)-- Tests WebDAV server configurations usingdavtest.ScanMigratedCommandSet.do_evil_ssdp(method)cli/commands/scan_migrated.py:942def do_evil_ssdp(self, line)-- Runs evil-ssdp with various options and user-selected templates.ScanMigratedCommandSet.do_netexec(method)cli/commands/scan_migrated.py:988def do_netexec(self, line)-- Executes netexec with various options for network protocol operations.install_netexec(function)cli/commands/scan_migrated.py:1015def install_netexec()install_netexec_pipx(function)cli/commands/scan_migrated.py:1020def install_netexec_pipx()ScanMigratedCommandSet.do_allin(method)cli/commands/scan_migrated.py:1241def do_allin(self, line)-- Execute the AlliN.py tool with various scan modes and parameters.ScanMigratedCommandSet.do_windapsearch(method)cli/commands/scan_migrated.py:1312def do_windapsearch(self, line)-- Execute the windapsearch tool to perform Active Directory Domain enumeration through LDAP queries.ScanMigratedCommandSet.do_ldapsearch(method)cli/commands/scan_migrated.py:1440def do_ldapsearch(self, line)-- Executes an LDAP search against a target remote host (self.params['rhost']) and saves the results.ScanMigratedCommandSet.do_arjun(method)cli/commands/scan_migrated.py:1501def do_arjun(self, line)-- Executes an Arjun scan on the specified URL for parameter discovery.ScanMigratedCommandSet.do_finger_user_enum(method)cli/commands/scan_migrated.py:1569def do_finger_user_enum(self, line)-- Executes thefinger-user-enumtool for enumerating users on the target host.ScanMigratedCommandSet.do_wpscan(method)cli/commands/scan_migrated.py:1615def do_wpscan(self, line)-- Command wpscan: Installs and runs WPScan to perform WordPress vulnerability scanning.ScanMigratedCommandSet.do_loxs(method)cli/commands/scan_migrated.py:1678def do_loxs(self, line)-- Command loxs: Installs and runs Loxs for multi-vulnerability web application scanning.ScanMigratedCommandSet.do_blazy(method)cli/commands/scan_migrated.py:1722def do_blazy(self, line)-- Command blazy: Installs and runs blazy for multi-vulnerability web application scanning.ScanMigratedCommandSet.do_parth(method)cli/commands/scan_migrated.py:1771def do_parth(self, line)-- Command parth: Installs and runs Parth for discovering vulnerable URLs and parameters.ScanMigratedCommandSet.do_breacher(method)cli/commands/scan_migrated.py:1840def do_breacher(self, line)-- Command breacher: Installs and runs Breacher for finding admin login pages and EAR vulnerabilities.ScanMigratedCommandSet.do_openredirex(method)cli/commands/scan_migrated.py:1902def do_openredirex(self, line)-- Command openredirex: Clones, installs, and runs OpenRedirex for testing open redirection vulnerabilities.ScanMigratedCommandSet.do_odat(method)cli/commands/scan_migrated.py:1970def do_odat(self, line)-- Command odat: Runs the ODAT sidguesser module to guess Oracle SIDs on a target Oracle database.ScanMigratedCommandSet.do_rpcmap_py(method)cli/commands/scan_migrated.py:2088def do_rpcmap_py(self, line)-- Command rpcmap_py: Executes rpcmap.py commands to enumerate MSRPC interfaces.ScanMigratedCommandSet.do_pykerbrute(method)cli/commands/scan_migrated.py:2131def do_pykerbrute(self, line)-- Command pykerbrute: Automates the installation and execution of PyKerbrute for bruteforcing Active Directory...ScanMigratedCommandSet.do_netview(method)cli/commands/scan_migrated.py:2201def do_netview(self, line)-- Executes the Impacket netview tool to list network shares on a specified target.ScanMigratedCommandSet.do_rdp_check_py(method)cli/commands/scan_migrated.py:2265def do_rdp_check_py(self, line)-- Executes the RDP check tool to verify credentials or hash-based authentication on a target system.ScanMigratedCommandSet.do_mqtt_check_py(method)cli/commands/scan_migrated.py:2330def do_mqtt_check_py(self, line)-- Executes the MQTT check tool to verify credentials on a target system with optional SSL.ScanMigratedCommandSet.do_lookupsid_py(method)cli/commands/scan_migrated.py:2385def do_lookupsid_py(self, line)-- Executes the LookupSID tool to perform SID enumeration on a target system.ScanMigratedCommandSet.do_lookupsid(method)cli/commands/scan_migrated.py:2458def do_lookupsid(self, line)-- Executes the Impacket lookupsid tool to enumerate SIDs on a target system.ScanMigratedCommandSet.do_certipy_ad(method)cli/commands/scan_migrated.py:2520def do_certipy_ad(self, line)-- Run certipy-ad against Active Directory Certificate Services.ScanMigratedCommandSet.do_certipy(method)cli/commands/scan_migrated.py:2584def do_certipy(self, line)-- Executes the Certipy tool to interact with Active Directory Certificate Services.ScanMigratedCommandSet.do_sawks(method)cli/commands/scan_migrated.py:2678def do_sawks(self, line)-- Executes the Swaks (Swiss Army Knife for SMTP) tool to send test emails for phishing simulations.ScanMigratedCommandSet.do_ad_ldap_enum(method)cli/commands/scan_migrated.py:2715def do_ad_ldap_enum(self, line)-- Executes ad-ldap-enum to enumerate Active Directory objects (users, groups, computers) through LDAP, collecting...ScanMigratedCommandSet.do_net_rpc_addmem(method)cli/commands/scan_migrated.py:2769def do_net_rpc_addmem(self, line)-- Executes the net rpc group addmem command to add a user to a specified group in Active Directory.ScanMigratedCommandSet.do_pre2k(method)cli/commands/scan_migrated.py:2815def do_pre2k(self, line)-- Executes the pre2k tool to query the self.params['domain'] for pre-Windows 2000 machine accounts or to pass a list...ScanMigratedCommandSet.do_hound(method)cli/commands/scan_migrated.py:2908def do_hound(self, line)-- Executes the hound tool for Hound is a simple and light tool for information gathering and capture exact GPS coordinates
cli/commands/security.py
Depends on: cli/commands/_base.py, core/config.py, core/console.py, core/credential_vault.py, modules/hash_cracker.py, modules/opsec_scorer.py
SecurityCommandSet.do_opsec(method)cli/commands/security.py:26def do_opsec(self, line)-- Score OPSEC risk for a LazyOwn command before execution.SecurityCommandSet.do_seal_credentials(method)cli/commands/security.py:106def do_seal_credentials(self, _line)-- Encrypt all sensitive values in payload.json using AES-256-GCM.SecurityCommandSet.do_rotate_aes(method)cli/commands/security.py:127def do_rotate_aes(self, _line)-- Generate a new AES key and re-encrypt all sealed credentials.SecurityCommandSet.do_unseal_credentials(method)cli/commands/security.py:150def do_unseal_credentials(self, _line)-- Decrypt sealed credential values in payload.json for inspection.SecurityCommandSet.do_crack_hashes(method)cli/commands/security.py:170def do_crack_hashes(self, line)-- Crack password hashes from a file using John the Ripper or Hashcat.SecurityCommandSet.complete_opsec(method)cli/commands/security.py:267def complete_opsec(self, text, line, begidx, endidx)SecurityCommandSet.complete_crack_hashes(method)cli/commands/security.py:276def complete_crack_hashes(self, text, line, begidx, endidx)
cli/commands/session_ops.py
Depends on: cli/aliases.py, cli/assign.py, cli/autosuggest.py, cli/chain_mode.py, cli/commands/_base.py, cli/config_history.py, cli/ops_commands.py, cli/session_resumer.py, cli/show.py, core/config.py, core/payload_schema.py, modules/autonomous_exploit_engine.py, modules/enrich.py, modules/lazy_loop.py, modules/lazy_rbac.py, modules/module_registry.py, modules/payload_factory.py, modules/pipeline_engine.py, modules/planner.py, skills/autonomous_daemon.py, utils.py
Imported by: tests/test_auto_crypto.py, tests/test_lazy_runner.py, tests/test_session_ops_command_set.py
SessionOpsCommandSet.do_note(method)cli/commands/session_ops.py:79def do_note(self, line)-- Capture a quick operator note attached to the current target and phase.SessionOpsCommandSet.do_l00t(method)cli/commands/session_ops.py:104def do_l00t(self, line)-- Unified loot: show, search, reuse, graph, and mark credentials.SessionOpsCommandSet.do_loot(method)cli/commands/session_ops.py:153def do_loot(self, line)-- Alias forl00t— unified loot (show/search/reuse/graph/mark).SessionOpsCommandSet.do_pivot(method)cli/commands/session_ops.py:161def do_pivot(self, line)-- Record a newly discovered pivot target or show the pivot chain.SessionOpsCommandSet.do_tasks(method)cli/commands/session_ops.py:186def do_tasks(self, line)-- View and manage the task queue from sessions/tasks.json.SessionOpsCommandSet.do_scans(method)cli/commands/session_ops.py:219def do_scans(self, line)-- List nmap scan files in sessions/ with age, size, and open ports.SessionOpsCommandSet.do_sitrep(method)cli/commands/session_ops.py:236def do_sitrep(self, line)-- Print a unified operational situation report.SessionOpsCommandSet.do_assign(method)cli/commands/session_ops.py:253def do_assign(self, line)-- assign a parameter value, persist to payload.json and refresh aliases.SessionOpsCommandSet.do_tenant(method)cli/commands/session_ops.py:317def do_tenant(self, line)-- Manage multi-tenancy: list, switch, or create engagement tenants.SessionOpsCommandSet.do_scope(method)cli/commands/session_ops.py:390def do_scope(self, line)-- Manage the authorized engagement scope and the scope-guard posture.SessionOpsCommandSet.do_show(method)cli/commands/session_ops.py:456def do_show(self, line)-- Show params, modules, payloads, or active module options.SessionOpsCommandSet.do_list(method)cli/commands/session_ops.py:532def do_list(self, line)-- Lists all available scripts in the modules directory.SessionOpsCommandSet.do_run(method)cli/commands/session_ops.py:561def do_run(self, line)-- Runs a specific LazyOwn script or active module.SessionOpsCommandSet.do_payload(method)cli/commands/session_ops.py:600def do_payload(self, line)-- Load parameters from a specified payload JSON file.SessionOpsCommandSet.do_next(method)cli/commands/session_ops.py:651def do_next(self, line)-- Show next-step recommendations or execute the active autosuggest.SessionOpsCommandSet.do_frontier(method)cli/commands/session_ops.py:695def do_frontier(self, line)-- Preview the planner intents the autonomous loops would run next.SessionOpsCommandSet.do_traces(method)cli/commands/session_ops.py:739def do_traces(self, line)-- Show recent autonomous step traces with evidence and traffic ids.SessionOpsCommandSet.do_chainmode(method)cli/commands/session_ops.py:820def do_chainmode(self, line)-- Toggle interactive kill-chain chaining after every command.SessionOpsCommandSet.do_engage(method)cli/commands/session_ops.py:871def do_engage(self, line)-- Drive a single target through the full kill-chain in one command.SessionOpsCommandSet.do_pipeline(method)cli/commands/session_ops.py:998def do_pipeline(self, line)-- Declarative composition layer: run a YAML pipeline of LazyOwn commands.SessionOpsCommandSet.do_lazyscript(method)cli/commands/session_ops.py:1089def do_lazyscript(self, line)-- Executes commands defined in a lazyscript file.SessionOpsCommandSet.do_hunt(method)cli/commands/session_ops.py:1121def do_hunt(self, line)-- Run an autonomous exploitation chain against a target.SessionOpsCommandSet.do_resume(method)cli/commands/session_ops.py:1212def do_resume(self, line)-- Browse previous sessions and load a target from a past engagement.SessionOpsCommandSet.do_getseclist(method)cli/commands/session_ops.py:1234def do_getseclist(self, line)-- Get the SecLists wordlist from GitHub.SessionOpsCommandSet.do_download_resources(method)cli/commands/session_ops.py:1272def do_download_resources(self, line)-- Downloads resources into thesessionsdirectory.SessionOpsCommandSet.do_collab_join(method)cli/commands/session_ops.py:1305def do_collab_join(self, line)-- Print the multi-operator collaboration join URL and SSE endpoint.SessionOpsCommandSet.do_kick(method)cli/commands/session_ops.py:1336def do_kick(self, line)-- Handles the process of sending a spoofed ARP packet to a specified IP address with a given MAC address.SessionOpsCommandSet.do_qa(method)cli/commands/session_ops.py:1385def do_qa(self, line)-- Exits the application quickly without confirmation.SessionOpsCommandSet.do_clock(method)cli/commands/session_ops.py:1447def do_clock(self, line)-- Displays the current date and time, and runs a custom shell script.SessionOpsCommandSet.do_gencert(method)cli/commands/session_ops.py:1495def do_gencert(self, line)-- Generates a certificate authority (CA), client certificate, and client key.SessionOpsCommandSet.do_load_session(method)cli/commands/session_ops.py:1507def do_load_session(self, line)-- Load the session from the sessionLazyOwn.json file and display the status of various parameters.SessionOpsCommandSet.do_clone_site(method)cli/commands/session_ops.py:1557def do_clone_site(self, line)-- Clone a website and serve the files in sessions/{url_cloned}.SessionOpsCommandSet.do_msfshellcoder(method)cli/commands/session_ops.py:1603def do_msfshellcoder(self, line)-- Generate shellcode in C format using msfvenom for either a custom command or a reverse shell payload.
cli/commands/shellsys.py
Depends on: cli/commands/_base.py, core/safe_exec.py, utils.py
Imported by: tests/test_shellsys_command_set.py
ShellSysCommandSet.do_sh(method)cli/commands/shellsys.py:30def do_sh(self, line)-- Executes a shell command directly from the LazyOwn interface.ShellSysCommandSet.do_sys(method)cli/commands/shellsys.py:62def do_sys(self, line)-- Executes a shell command directly from the LazyOwn interface.ShellSysCommandSet.do_pwd(method)cli/commands/shellsys.py:110def do_pwd(self, line)-- Displays the current working directory and lists files, and copies the current directory path to the clipboard.ShellSysCommandSet.do_nano(method)cli/commands/shellsys.py:146def do_nano(self, line)-- Opens or creates the file using line in the sessions directory for editing using nano.ShellSysCommandSet.do_cron(method)cli/commands/shellsys.py:170def do_cron(self, line)-- Schedules a command to run at a specified time.lazyrun_command(function)cli/commands/shellsys.py:205def lazyrun_command()ShellSysCommandSet.do_clean(method)cli/commands/shellsys.py:216def do_clean(self, line)-- Deletes files and directories in thesessionsdirectory, excluding specified files and directories.ShellSysCommandSet.do_fixperm(method)cli/commands/shellsys.py:303def do_fixperm(self, line)-- Fix permissions for LazyOwn shell scripts.ShellSysCommandSet.do_fixel(method)cli/commands/shellsys.py:336def do_fixel(self, line)-- Fixes file permissions and line endings in the project directories.ShellSysCommandSet.do_pop(method)cli/commands/shellsys.py:369def do_pop(self, line)-- Open a centered popup in the current tmux session to execute a shell command.ShellSysCommandSet.do_tab(method)cli/commands/shellsys.py:406def do_tab(self, line)-- Executes thelazypyautogui.pyscript with optional arguments.
cli/commands/sleep_obfuscation.py
Depends on: cli/commands/_base.py, modules/sleep_obfuscation.py, utils.py
SleepObfuscationCommandSet.do_sleep_list(method)cli/commands/sleep_obfuscation.py:23def do_sleep_list(self, line)-- List available sleep obfuscation techniques.SleepObfuscationCommandSet.do_sleep_info(method)cli/commands/sleep_obfuscation.py:50def do_sleep_info(self, line)-- Show detailed information about a sleep obfuscation technique.SleepObfuscationCommandSet.do_sleep_configure(method)cli/commands/sleep_obfuscation.py:82def do_sleep_configure(self, line)-- Configure the active sleep obfuscation technique.
cli/commands/socks_proxy.py
Depends on: cli/commands/_base.py, modules/socks_proxy.py, utils.py
SocksProxyCommandSet.do_socks_config(method)cli/commands/socks_proxy.py:25def do_socks_config(self, line)-- Show or configure the SOCKS5 proxy.SocksProxyCommandSet.do_socks_sessions(method)cli/commands/socks_proxy.py:75def do_socks_sessions(self, line)-- List active SOCKS proxy sessions.SocksProxyCommandSet.do_socks_export(method)cli/commands/socks_proxy.py:94def do_socks_export(self, line)-- Export SOCKS5 proxy specification for beacon delivery.
cli/commands/supply_chain.py
Depends on: cli/commands/_base.py, utils.py
SupplyChainCommandSet.do_depconfuse(method)cli/commands/supply_chain.py:95def do_depconfuse(self, line)-- Scan a requirements.txt for dependency confusion candidates.SupplyChainCommandSet.do_package_squat(method)cli/commands/supply_chain.py:140def do_package_squat(self, line)-- Generate a malicious PyPI package for dependency confusion.SupplyChainCommandSet.do_depscan(method)cli/commands/supply_chain.py:216def do_depscan(self, line)-- Scan a directory tree for dependency files and flag risks.is_internal_name(function)cli/commands/supply_chain.py:450def is_internal_name(name)-- Check if a package name looks internal/private.
cli/commands/surface.py
Depends on: cli/commands/_base.py, modules/attack_surface3d.py, modules/estorides_fusion.py, modules/surface_ops.py, utils.py
SurfaceCommandSet.do_scandiscovery(method)cli/commands/surface.py:43def do_scandiscovery(self, line)-- Scan every discovery IP with operator confirmation.SurfaceCommandSet.do_estorides_intel(method)cli/commands/surface.py:86def do_estorides_intel(self, line)-- Fuse estorides OSINT entities into the campaign intel graphs.
cli/commands/ux.py
Depends on: cli/commands/_base.py, cli/config_history.py, cli/fuzzy_match.py, cli/output_mode.py, cli/session_hud.py, cli/toast_bus.py, core/config.py, core/console.py, utils.py
UxCommandSet.do_hud(method)cli/commands/ux.py:46def do_hud(self, line)-- Session counters: elapsed time, commands run, material captured.UxCommandSet.do_undo(method)cli/commands/ux.py:85def do_undo(self, line)-- Revert the last assign/set configuration change.UxCommandSet.do_config_diff(method)cli/commands/ux.py:115def do_config_diff(self, line)-- Show what changed since the session started.UxCommandSet.do_cheat(method)cli/commands/ux.py:140def do_cheat(self, line)-- Render a cheatsheet section inside the shell.UxCommandSet.do_toast(method)cli/commands/ux.py:167def do_toast(self, line)-- Raise a toast notification inside the cmd2 shell.UxCommandSet.do_suggest(method)cli/commands/ux.py:261def do_suggest(self, line)-- Fuzzy command suggestion for typos and fragments.
cli/config_history.py
Imported by: cli/commands/session_ops.py, cli/commands/ux.py
ConfigHistory.capture_baseline(method)cli/config_history.py:30def capture_baseline(self, state)-- Store session-start snapshot used by diff.ConfigHistory.push(method)cli/config_history.py:38def push(self, state)-- Push a snapshot before mutation.ConfigHistory.undo(method)cli/config_history.py:48def undo(self)-- Pop the newest snapshot.ConfigHistory.diff(method)cli/config_history.py:58def diff(self, current)-- Compare current state against the baseline.ConfigHistory.depth(method)cli/config_history.py:76def depth(self)-- Return number of stored undo steps.get_shell_history(function)cli/config_history.py:81def get_shell_history(shell)-- Return the ConfigHistory bound to a shell, creating it on demand.track_before(function)cli/config_history.py:104def track_before(history, state)-- Capture baseline on first use then push a pre-mutation snapshot.
cli/config_status.py
Depends on: core/console.py
Imported by: cli/commands/help_ui.py
ConfigStatus.__init__(method)cli/config_status.py:70def __init__(self, params, config)ConfigStatus.render_status(method)cli/config_status.py:89def render_status(self)-- Render the grouped configuration status table.ConfigStatus.render_quick_check(method)cli/config_status.py:129def render_quick_check(self)-- Quick check: show only required fields that are not set.
cli/confirm.py
Imported by: cli/commands/ai.py, cli/commands/anti_forensics.py, cli/commands/cloud.py, cli/commands/infra.py
confirm(function)cli/confirm.py:27def confirm(question, default, yes_values)-- Ask a yes/no question, never raising on non-interactive stdin.
cli/contextual_help.py
Depends on: cli/palette.py, cli/phase_labels.py, core/console.py
Imported by: cli/commands/help_ui.py, tests/test_phase_labels.py
ContextualHelp.__init__(method)cli/contextual_help.py:176def __init__(self, aliases, params, config)ContextualHelp.get_command_info(method)cli/contextual_help.py:188def get_command_info(self, name)-- Return enriched info for a command, or None if not found.ContextualHelp.render_command_help(method)cli/contextual_help.py:208def render_command_help(self, name)-- Render contextual help for a single command.ContextualHelp.render_phase_commands(method)cli/contextual_help.py:261def render_phase_commands(self, phase)-- Render all commands for a given phase.ContextualHelp.render_requirements_status(method)cli/contextual_help.py:281def render_requirements_status(self)-- Show which requirements are met for the current session.
cli/dashboard_layout.py
Imported by: cli/dashboard_tui.py
layout_mode(function)cli/dashboard_layout.py:28def layout_mode(width, config)-- Return the layout bucket for a terminal width.hidden_panels(function)cli/dashboard_layout.py:45def hidden_panels(mode)-- Return panel ids hidden in the given layout mode.
cli/dashboard_tui.py
Depends on: cli/commands/containers.py, cli/dashboard_layout.py, cli/graph_advisor.py, cli/killchain.py, cli/ops_commands.py, cli/reactive_hints.py, cli/reasoning_stream.py, cli/recommendation_signals.py, cli/toast_bus.py, modules/killchain.py
Imported by: cli/commands/misc_migrated.py, tests/test_dashboard_tui.py
CommandRequested.__init__(method)cli/dashboard_tui.py:100def __init__(self, command)PhaseSelected.__init__(method)cli/dashboard_tui.py:108def __init__(self, phase)dispatch_command(function)cli/dashboard_tui.py:113def dispatch_command(command, timeout)-- Run one LazyOwn command headlessly and capture its output.TargetPanel.get_selection(method)cli/dashboard_tui.py:335def get_selection(self, selection)-- Override to prevent IndexError when selection offsets exceed text length.TargetPanel.render_content(method)cli/dashboard_tui.py:348def render_content(self, payload, world)TargetPanel.update_data(method)cli/dashboard_tui.py:374def update_data(self, payload, world)KillChainPanel.__init__(method)cli/dashboard_tui.py:393def __init__(self)KillChainPanel.update_data(method)cli/dashboard_tui.py:397def update_data(self, progress)-- Render kill-chain progress.KillChainPanel.on_click(method)cli/dashboard_tui.py:418def on_click(self, event)-- Select the phase whose row was clicked.ConfigPanel.update_data(method)cli/dashboard_tui.py:442def update_data(self, payload)CommandsPanel.update_data(method)cli/dashboard_tui.py:472def update_data(self, commands)ReasoningPanel.update_data(method)cli/dashboard_tui.py:507def update_data(self, entries)-- Render the most recent daemon decisions, newest first.OpsPanel.update_data(method)cli/dashboard_tui.py:544def update_data(self, world, tasks, creds, hashes, beacons, cred_lines)HintBar.__init__(method)cli/dashboard_tui.py:610def __init__(self)HintBar.compose(method)cli/dashboard_tui.py:615def compose(self)HintBar.update_data(method)cli/dashboard_tui.py:619def update_data(self, hints)-- Replace the hint buttons with one button per suggestion.HintBar.on_button_pressed(method)cli/dashboard_tui.py:644def on_button_pressed(self, event)-- Run the clicked suggestion as if it had been typed.ToastPanel.update_data(method)cli/dashboard_tui.py:671def update_data(self, payload, sessions_dir, width)-- Render the latest notifications for the active theme.NextStepsPanel.update_data(method)cli/dashboard_tui.py:718def update_data(self, recommendations)LazyOwnDashboard.__init__(method)cli/dashboard_tui.py:807def __init__(self, payload_path, sessions_dir)LazyOwnDashboard.compose(method)cli/dashboard_tui.py:836def compose(self)LazyOwnDashboard.on_mount(method)cli/dashboard_tui.py:855def on_mount(self)LazyOwnDashboard.on_input_submitted(method)cli/dashboard_tui.py:860def on_input_submitted(self, event)-- Run the typed command and clear the input.LazyOwnDashboard.on_command_requested(method)cli/dashboard_tui.py:872def on_command_requested(self, event)-- Dispatch a command in a worker so the UI never blocks.LazyOwnDashboard.on_phase_selected(method)cli/dashboard_tui.py:912def on_phase_selected(self, event)-- Filter the center panel to a phase chosen by clicking the kill chain.LazyOwnDashboard.action_refresh_data(method)cli/dashboard_tui.py:923def action_refresh_data(self)LazyOwnDashboard.action_toggle_compact(method)cli/dashboard_tui.py:926def action_toggle_compact(self)-- Toggle the compact single-column layout for narrow terminals.LazyOwnDashboard.action_screenshot(method)cli/dashboard_tui.py:956def action_screenshot(self)-- Save an SVG screenshot next to the sessions directory.LazyOwnDashboard.action_export_snapshot(method)cli/dashboard_tui.py:967def action_export_snapshot(self)-- Export the current dashboard data as JSON for automation.LazyOwnDashboard.action_next_phase(method)cli/dashboard_tui.py:987def action_next_phase(self)-- Advance to the next kill-chain phase and refresh the display.LazyOwnDashboard.action_prev_phase(method)cli/dashboard_tui.py:991def action_prev_phase(self)-- Step back to the previous kill-chain phase.launch(function)cli/dashboard_tui.py:1064def launch(payload_path, sessions_dir)-- Launch the dashboard and block until the user quits.
cli/doctor.py
Depends on: cli/wizard.py, core/console.py, core/profiles.py
Imported by: cli/commands/help_ui.py
DoctorReport.failures(method)cli/doctor.py:119def failures(self)-- Return the checks whose status is :data:STATUS_FAIL.DoctorReport.warnings(method)cli/doctor.py:124def warnings(self)-- Return the checks whose status is :data:STATUS_WARN.DoctorReport.healthy(method)cli/doctor.py:129def healthy(self)-- ReturnTruewhen no check failed (warnings are tolerated).DoctorReport.overall_status(method)cli/doctor.py:134def overall_status(self)-- Return the worst status across every check.check_python_version(function)cli/doctor.py:143def check_python_version(version_info)-- Verify the interpreter satisfies :data:MIN_PYTHON_VERSION.check_virtualenv(function)cli/doctor.py:172def check_virtualenv()-- Report whether the framework is running inside its virtual environment.check_packages(function)cli/doctor.py:209def check_packages(specs, finder)-- Verify every dependency inspecsis importable without importing it.check_certificates(function)cli/doctor.py:248def check_certificates(root)-- Verify the self-signed C2 certificate pair exists.check_payload(function)cli/doctor.py:269def check_payload(root)-- Verify[payload.json](https://github.com/grisuno/LazyOwn/blob/146a52570ef792d1ec01ec4d3709b0c159990e47/payload.json)exists in the repository root.check_seclists(function)cli/doctor.py:289def check_seclists(finder)-- Verify a SecLists installation is discoverable on disk.check_command_index(function)cli/doctor.py:313def check_command_index(root)check_external_tools(function)cli/doctor.py:343def check_external_tools(checker)-- Adapt :func:cli.wizard.check_binariesinto preflight check results.gather_report(function)cli/doctor.py:368def gather_report(root)-- Run every preflight check and collect the results without printing.render_report(function)cli/doctor.py:406def render_report(report, console)-- Render a :class:DoctorReportas a rich table with a summary banner.run(function)cli/doctor.py:451def run(root, console)-- Gather and render the preflight report.fix_report(function)cli/doctor.py:468def fix_report(report)-- Interactively offer to fix every failure and warning in the report.
Next: API_p4.md