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

Function _try

Scripts/ButSystem.py:16814–16837  ·  view source on GitHub ↗

_try. Internal helper function. This docstring was expanded to make future maintenance easier. Args: p: Parameter. Returns: Varies.

(p)

Source from the content-addressed store, hash-verified

16812 d: Parameter.
16813
16814Returns:
16815 Varies.
16816"""
16817 self.__dict__.update(d)
16818 return render_template("profiler.html", title="Profiler", entries=[Obj(e) for e in entries], q=q)
16819
16820@app.route("/profiler/export", methods=["POST"])
16821@login_required
16822def profiler_export():
16823 """profiler_export.
16824
16825Route handler or application helper.
16826
16827This docstring was expanded to make future maintenance easier.
16828
16829Returns:
16830 Varies.
16831"""
16832 owner = current_user()
16833 # Export all of *your* encrypted profiles into a zip in Downloads
16834 try:
16835 conn = db_connect()
16836 entries = conn.execute("SELECT id, first_enc, last_enc, info_enc, optional_enc, created_at, updated_at FROM profiler_entries WHERE owner=? ORDER BY id ASC", (owner,)).fetchall()
16837 att_rows = conn.execute("SELECT entry_id, filename_enc, mime_enc, stored_path, created_at FROM profiler_attachments WHERE entry_id IN (SELECT id FROM profiler_entries WHERE owner=?) ORDER BY id ASC", (owner,)).fetchall()
16838 conn.close()
16839
16840 # Build export structure

Callers 1

find_free_portFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected