MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / report_att_download

Function report_att_download

Scripts/ButSystem.py:17627–17650  ·  view source on GitHub ↗
(aid: int)

Source from the content-addressed store, hash-verified

17625 sys.stdout.flush()
17626 except Exception:
17627 pass
17628
17629def approval_worker():
17630 """Deprecated: kept for compatibility. Use approval_prompt() in main thread."""
17631 while True:
17632 username = PENDING_QUEUE.get()
17633 approval_prompt(username)
17634
17635# ---------------------------
17636# Links: cloudflared + tor (best-effort)
17637# ---------------------------
17638
17639def have_cmd(cmd: str) -> bool:
17640 """have_cmd.
17641
17642Internal helper function.
17643
17644This docstring was added automatically to improve maintainability.
17645
17646Args:
17647 cmd: Parameter.
17648
17649Returns:
17650 Varies.
17651"""
17652 res = _run(["bash", "-lc", f"command -v {cmd} >/dev/null 2>&1"], check=False)
17653 return bool(res and res.returncode == 0)

Callers

nothing calls this directly

Calls 4

_feature_tables_initFunction · 0.70
db_connectFunction · 0.70
_safe_report_att_pathFunction · 0.70
aesgcm_decrypt_textFunction · 0.70

Tested by

no test coverage detected