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

Function any_admin_exists

Scripts/ButSystem.py:16982–16995  ·  view source on GitHub ↗

any_admin_exists. Internal helper function. This docstring was added automatically to improve maintainability. Returns: Varies.

()

Source from the content-addressed store, hash-verified

16980
16981 imported = 0
16982 for p in profiles:
16983 first = (p.get("first") or "").strip()
16984 last = (p.get("last") or "").strip()
16985 info = (p.get("info") or "").strip()
16986 opt = p.get("optional") or {}
16987 if not isinstance(opt, dict):
16988 opt = {}
16989 if not (first or last or info):
16990 continue
16991 fp = (first.lower(), last.lower(), info.lower())
16992 if fp in existing_fp:
16993 continue
16994
16995 now = now_z()
16996 cur = conn.cursor()
16997 cur.execute(
16998 "INSERT INTO profiler_entries(owner, first_enc, last_enc, info_enc, optional_enc, created_at, updated_at) VALUES(?,?,?,?,?,?,?)",

Callers 1

mainFunction · 0.70

Calls 1

db_connectFunction · 0.70

Tested by

no test coverage detected