Repository navigation
Agent KB_blueprints
grisun0 edited this page Oct 16, 2026
·
18 revisions
- Doc: Flask Blueprints for lazydown C2.
- Layer: utility
- Language: py
- Depends on:
lazyc2/blueprints/addons.py,lazyc2/blueprints/api.py,lazyc2/blueprints/api_v1.py,lazyc2/blueprints/auth.py,lazyc2/blueprints/beacon.py,lazyc2/blueprints/operations.py,lazyc2/blueprints/phishing.py - Imported by:
lazyc2.py,lazyc2/app_factory.py,tests/test_security_codeql_batch.py
- Doc: LazyAddon creator blueprint for the C2 dashboard.
- Layer: presentation
- Language: py
- Symbols:
-
init_addons_bp(function, line 69)def init_addons_bp(base_dir) -
_store(function, line 81)def _store() -
_csrf_policy(function, line 87)def _csrf_policy() -
csrf_protect(function, line 96)def csrf_protect(view) -
_issue_csrf(function, line 120)def _issue_csrf(response, policy) -
_issue_map(function, line 149)def _issue_map(issues) -
_form_context(function, line 164)def _form_context(draft, issues) -
_render_create(function, line 193)def _render_create(draft, issues) -
_draft_from_document(function, line 216)def _draft_from_document(document) -
list_addons(function, line 263)def list_addons() -
create_addon(function, line 277)def create_addon() -
view_addon(function, line 321)def view_addon(name) -
delete_addon(function, line 345)def delete_addon(name) -
wrapper(function, line 110)def wrapper()
-
- Depends on:
core/logging.py,lazyc2/addon_creator.py,lazyc2/blueprints/session_auth.py,lazyc2/extensions/decoy.py,lazyc2/security/csrf.py - Imported by:
lazyc2/blueprints/__init__.py,tests/test_addon_creator.py,tests/test_security_hardening_v5.py
- Doc: API blueprint for the LazyOwn C2 server.
- Layer: presentation
- Language: py
- Symbols:
-
HealthConfig(class, line 25)class HealthConfig -
_health_status(function, line 36)def _health_status(config) -
_listener_alive(function, line 99)def _listener_alive(listener) -
health(function, line 108)def health() -
ping(function, line 120)def ping() -
require_api_auth_with_store(function, line 129)def require_api_auth_with_store(view) -
health_tenant(function, line 157)def health_tenant() -
get_defaults(function, line 182)def get_defaults() -
set_default(function, line 211)def set_default() -
guarded(function, line 146)def guarded()
-
- Depends on:
core/api_authz.py,core/config.py,core/defaults.py,core/logging.py - Imported by:
lazyc2/blueprints/__init__.py,lazyc2/blueprints/api_v1.py,tests/test_core_defaults.py,tests/test_security_hardening_v5.py
- Doc: Versioned REST API (
/api/v1) for the LazyOwn C2 server. - Layer: presentation
- Language: py
- Symbols:
-
_sessions_dir(function, line 38)def _sessions_dir() -
_db(function, line 43)def _db() -
_error(function, line 60)def _error(message, status) -
health(function, line 65)def health() -
targets(function, line 76)def targets() -
results(function, line 108)def results() -
campaigns(function, line 141)def campaigns() -
_webhooks_path(function, line 166)def _webhooks_path() -
_read_webhooks(function, line 170)def _read_webhooks() -
webhooks_list(function, line 180)def webhooks_list() -
webhooks_register(function, line 191)def webhooks_register() -
webhooks_delete(function, line 228)def webhooks_delete(index)
-
- Depends on:
core/logging.py,core/safe_exec.py,lazyc2/blueprints/api.py,modules/beacon_history.py,modules/db.py - Imported by:
lazyc2/blueprints/__init__.py,tests/test_api_v1.py
- Doc: Authentication and authorisation blueprint for the LazyOwn C2 server.
- Layer: presentation
- Language: py
- Symbols:
-
_rbac_available(function, line 87)def _rbac_available() -
_get_rbac_store(function, line 92)def _get_rbac_store() -
_get_rbac_user_obj(function, line 104)def _get_rbac_user_obj(flask_user) -
_get_tenant_manager(function, line 114)def _get_tenant_manager() -
register(function, line 128)def register() -
login(function, line 187)def login() -
mfa_setup(function, line 232)def mfa_setup() -
mfa_qr(function, line 305)def mfa_qr(username) -
mfa_verify(function, line 327)def mfa_verify() -
profile(function, line 371)def profile() -
logout(function, line 396)def logout() -
admin_users(function, line 415)def admin_users() -
admin_set_role(function, line 432)def admin_set_role(user_id) -
admin_reset_mfa(function, line 454)def admin_reset_mfa(user_id) -
admin_delete_user(function, line 466)def admin_delete_user(user_id) -
admin_tenants(function, line 484)def admin_tenants() -
admin_create_tenant(function, line 504)def admin_create_tenant() -
admin_switch_tenant(function, line 523)def admin_switch_tenant(tenant_id) -
Role(class, line 38)class Role(Enum) -
require_role(function, line 59)def require_role(role) -
valid_roles(method, line 51)def valid_roles(cls) -
decorator(function, line 69)def decorator(view) -
wrapper(function, line 71)def wrapper()
-
- Depends on:
cli/commands/enum.py,core/logging.py,lazyc2/__init__.py,lazyc2/extensions/decoy.py,lazyc2/extensions/users.py,modules/lazy_rbac.py - Imported by:
lazyc2/blueprints/__init__.py,lazygui/services/teamserver_backend.py,static/js/socket.io-4.0.0.min.js,static/js/socket.io-4.3.2.min.js
- Doc: Beacon communication blueprint for the LazyOwn C2 server.
- Layer: presentation
- Language: py
- Symbols:
-
init_beacon_bp(function, line 35)def init_beacon_bp(commands, results, commands_history, connected_clients, encrypt_fn, decrypt_fn, config... -
_fire_hooks(function, line 72)def _fire_hooks(event, context) -
_trigger_cred_reuse(function, line 91)def _trigger_cred_reuse(context) -
send_command(function, line 111)def send_command(client_id) -
receive_result(function, line 131)def receive_result(client_id) -
issue_command(function, line 245)def issue_command() -
_run(function, line 97)def _run()
-
- Depends on:
core/logging.py,modules/conditional_hooks.py,modules/credential_reuse.py,modules/state_manager.py - Imported by:
lazyc2/blueprints/__init__.py
- Doc: Operations blueprint — tasks, CVEs, notes, and event management.
- Layer: presentation
- Language: py
- Symbols:
-
task_detail(function, line 33)def task_detail(task_id) -
get_tasks(function, line 48)def get_tasks() -
tasks(function, line 57)def tasks() -
edit_task(function, line 66)def edit_task(task_id) -
cves(function, line 92)def cves() -
cve_detail(function, line 117)def cve_detail(cve_id) -
edit_cve(function, line 132)def edit_cve(cve_id) -
edit_notes(function, line 158)def edit_notes() -
get_notes(function, line 173)def get_notes() -
view_note(function, line 182)def view_note() -
event_config(function, line 192)def event_config() -
event_config_view(function, line 198)def event_config_view() -
events(function, line 218)def events()
-
- Depends on:
lazyc2/blueprints/session_auth.py,lazyc2/extensions/decoy.py,lazyc2/extensions/storage.py - Imported by:
lazyc2/blueprints/__init__.py
- Doc: Phishing blueprint for the LazyOwn C2 server.
- Layer: presentation
- Language: py
- Symbols:
-
_get_config(function, line 43)def _get_config(key, default) -
create_short_url(function, line 49)def create_short_url() -
track_interaction(function, line 89)def track_interaction(short_url) -
update_short_url(function, line 125)def update_short_url(short_url) -
redirect_to_file(function, line 151)def redirect_to_file(short_url) -
webserver_report(function, line 174)def webserver_report(filename) -
download_files(function, line 192)def download_files(filename)
-
- Depends on:
core/logging.py,lazyc2/extensions/short_urls.py,lazyc2/security/validators.py,modules/security_sanitizers.py,utils.py - Imported by:
lazyc2/blueprints/__init__.py
- Doc: Session-based authentication gate for operator dashboard blueprints.
- Layer: presentation
- Language: py
- Symbols:
-
require_operator_session(function, line 20)def require_operator_session(blueprint, login_endpoint) -
_guard(function, line 36)def _guard()
-
- Imported by:
lazyc2/blueprints/addons.py,lazyc2/blueprints/operations.py
Generated offline by readmenator from commit 146a52570ef7. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_cli_commands
- community_10_modules_opsec_scorer
- community_11_modules_finding_lifecycle
- community_12_modules_kerberos_core
- community_13_modules_saas_attacks
- community_14_modules_polymorphic_engine
- community_15_contrib_legacy
- community_16_scripts_journal
- community_17_modules_backdoor
- community_18_poc_tui
- community_19_scripts_check_contract_manifest
- community_1_modules_lazyc2
- community_20_scripts_migrate_lazyown
- community_21_tools
- community_22_orphans
- community_2_cli
- community_3_modules_autonomous_daemon
- community_4_modules_lazy_loop
- community_5_lazygui_panels
- community_6_skills_claude_md_orchestrator
- community_7_static_js
- community_8_modules_llm_budget
- community_9_modules_atomic_exploit_bridge
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p22
- API_p23
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- ARCHITECTURE_p5
- ARCHITECTURE_p6
- ARCHITECTURE_p7
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- INDEX_p3
- KB_backdoor
- KB_blueprints
- KB_cgi-bin
- KB_claude_md_orchestrator
- KB_cli
- KB_cli_p2
- KB_cli_p3
- KB_cli_p4
- KB_cli_p5
- KB_commands
- KB_commands_p2
- KB_commands_p3
- KB_commands_p4
- KB_config
- KB_contract
- KB_core
- KB_core_p2
- KB_devtools
- KB_extensions
- KB_hermes-lazyown
- KB_integrations
- KB_js
- KB_js_p2
- KB_js_p3
- KB_js_p4
- KB_lazyc2
- KB_lazygui
- KB_lazyown-docker
- KB_legacy
- KB_legacy_p2
- KB_misc
- KB_modules
- KB_modules_p10
- KB_modules_p11
- KB_modules_p12
- KB_modules_p13
- KB_modules_p14
- KB_modules_p2
- KB_modules_p3
- KB_modules_p4
- KB_modules_p5
- KB_modules_p6
- KB_modules_p7
- KB_modules_p8
- KB_modules_p9
- KB_modules_tools
- KB_palettes
- KB_panels
- KB_plugins
- KB_poc_tui
- KB_root
- KB_root_p2
- KB_rootkit
- KB_scripts
- KB_security
- KB_services
- KB_skills
- KB_skills_claude_md_orchestrator_tests
- KB_skills_p2
- KB_skills_p3
- KB_skills_p4
- KB_skills_p5
- KB_skills_tests
- KB_tests
- KB_tests_p10
- KB_tests_p11
- KB_tests_p12
- KB_tests_p13
- KB_tests_p14
- KB_tests_p15
- KB_tests_p16
- KB_tests_p17
- KB_tests_p2
- KB_tests_p3
- KB_tests_p4
- KB_tests_p5
- KB_tests_p6
- KB_tests_p7
- KB_tests_p8
- KB_tests_p9
- KB_theme
- KB_tools
- KB_widgets
- KB_win_rootkit
- KB_windows
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p28
- SYMBOLS_p29
- SYMBOLS_p3
- SYMBOLS_p30
- SYMBOLS_p31
- SYMBOLS_p32
- SYMBOLS_p33
- SYMBOLS_p34
- SYMBOLS_p35
- SYMBOLS_p36
- SYMBOLS_p37
- SYMBOLS_p38
- SYMBOLS_p39
- SYMBOLS_p4
- SYMBOLS_p40
- SYMBOLS_p41
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes