We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 406cf48 commit e60956fCopy full SHA for e60956f
1 file changed
MSSQLand/Actions/Execution/ObjectLinkingEmbedding.cs
@@ -30,8 +30,12 @@ public override void ValidateArguments(string additionalArguments)
30
{
31
Logger.TaskNested($"Executing OLE command: {_command}");
32
33
- // Enable 'Ole Automation Procedures'
34
- databaseContext.ConfigService.SetConfigurationOption("Ole Automation Procedures", 1);
+ // Ensure 'Ole Automation Procedures' are enabled
+ if (!databaseContext.ConfigService.SetConfigurationOption("Ole Automation Procedures", 1))
35
+ {
36
+ Logger.Error("[!] Unable to enable Ole Automation Procedures. Ensure you have the necessary permissions.");
37
+ return null;
38
+ }
39
40
// Generate two random string of 3 to 12 chars
41
string output = Guid.NewGuid().ToString("N").Substring(0, 6);
0 commit comments