MCPcopy
hub / github.com/Pennyw0rth/NetExec / initialize_db

Function initialize_db

nxc/database.py:100–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99
100def initialize_db():
101 if not exists(path_join(WORKSPACE_DIR, "default")):
102 create_workspace("default")
103
104 # Even if the default workspace exists, we still need to check if every protocol has a database (in case of a new protocol)
105 init_protocol_dbs("default")
106
107
108def format_host_query(q, filter_term, HostsTable):

Callers 1

first_run_setupFunction · 0.90

Calls 2

create_workspaceFunction · 0.85
init_protocol_dbsFunction · 0.85

Tested by

no test coverage detected