MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / UpdateExtension

Method UpdateExtension

AdaptixClient/Source/Client/Storage.cpp:286–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void Storage::UpdateExtension(const ExtensionFile &extFile)
287{
288 QSqlQuery query(QSqlDatabase::database(DB_CONNECTION_NAME));
289 query.prepare( "UPDATE Extensions SET enabled = :Enabled WHERE filepath = :Filepath;");
290 query.bindValue(":Filepath", extFile.FilePath.toStdString().c_str());
291 query.bindValue(":Enabled", extFile.Enabled);
292 if (!query.exec())
293 LogError("Extension not updated in database: %s\n", query.lastError().text().toStdString().c_str());
294}
295
296void Storage::RemoveExtension(const QString &filepath)
297{

Callers 4

SetExtensionMethod · 0.80
EnableExtensionMethod · 0.80
DisableExtensionMethod · 0.80
syncedOnReloadMethod · 0.80

Calls 4

LogErrorFunction · 0.85
toStdStringMethod · 0.80
execMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected