def export_loot(): """Export all loot entries""" lootbox = get_loot() loot = [{ "id": l.id, "lsass": get_lsass_goodies(l.lsass), "hive": get_hive_goodies(l.hive), "sysinfo": parse_sysinfo(l.sysinfo, ) } for l in lootbox] return jsonify(loot)
def loot_tab(): # turn sqlalchemy object 'lootbox' into dict/array lootbox = get_loot() loot = [{ "nonpersistent": db is None, "id": l.id, "lsass": get_lsass_goodies(l.lsass), "lsass_full": l.lsass, "hive": get_hive_goodies(l.hive), "hive_full": l.hive, "sysinfo": parse_sysinfo(l.sysinfo, ) } for l in lootbox] context = { "loot": loot, "AUTH": args.AUTH, "VERSION": __version__, } return render_template("loot.html", **context)