Skip to content

Commit

Permalink
fixed sqlclient vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
v-AdamC committed Jan 18, 2024
1 parent 51a8cd2 commit 83b679d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
16 changes: 10 additions & 6 deletions vHC/HC_Reporting/Functions/Collection/CCollections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@ public void Run()
ExecSecurityCollection();

ExecPSScripts();
if (!CGlobals.RunSecReport)
if (!CGlobals.RunSecReport && CGlobals.IsVbr)
{
PopulateWaits();
}

ExecVmcReader();
GetRegistryDbInfo();
if (CGlobals.DBTYPE != CGlobals.PgTypeName)
ExecSqlQueries();
if (CGlobals.IsVbr)
{
ExecVmcReader();
GetRegistryDbInfo();
if (CGlobals.DBTYPE != CGlobals.PgTypeName)
ExecSqlQueries();
}


}

Expand Down Expand Up @@ -106,7 +110,7 @@ private void ExecPSScripts()
ExecVbrConfigOnly(p);
}

WeighSuccessContinuation();
//WeighSuccessContinuation();

CGlobals.Logger.Info("Starting PS Invoke...done!", false);
}
Expand Down
3 changes: 2 additions & 1 deletion vHC/HC_Reporting/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"profiles": {
"VeeamHealthCheck": {
"commandName": "Project",
"commandLineArgs": "/run\r\n",
"remoteDebugEnabled": true,
"authenticationMode": "Windows",
"remoteDebugMachine": "WIN-9N61HFB3J78:4026"
"remoteDebugMachine": "192.168.20.163:4026"
}
}
}
6 changes: 3 additions & 3 deletions vHC/HC_Reporting/VeeamHealthCheck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<Company>Veeam</Company>
<Authors>AdamC</Authors>
<ApplicationIcon>Veeam_HealthCheck_228x228.ico</ApplicationIcon>
<AssemblyVersion>1.0.3.819</AssemblyVersion>
<AssemblyVersion>1.0.3.825</AssemblyVersion>
<SignAssembly>False</SignAssembly>
<AssemblyOriginatorKeyFile>vhc_keyfile2.pfx</AssemblyOriginatorKeyFile>
<DelaySign>false</DelaySign>
<FileVersion>1.0.3.819</FileVersion>
<FileVersion>1.0.3.825</FileVersion>
<DebugType>full</DebugType>
<SelfContained>true</SelfContained>
<!--These 2 lines are what produce the single file utility. Possibly doesn't work...-->
Expand Down Expand Up @@ -101,7 +101,7 @@
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.3.3" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
<PackageReference Include="System.Management.Automation" Version="7.3.3" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions vHC/VhcXTests/VhcXTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<AssemblyVersion>1.0.0.1</AssemblyVersion>
<FileVersion>1.0.0.1</FileVersion>
<AssemblyVersion>1.0.0.3</AssemblyVersion>
<FileVersion>1.0.0.3</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 83b679d

Please sign in to comment.