You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This codes using hard coded disk label, C:\ can be getted from config. Users maybe not using C: disk label or it's can be secured etc if any of them, your app will not work.
This lists can be getted from embedded source or a another header file like a consts.h.
BOOL IsBlacklistedApp(wchar_t* FileNamez)
{
if (Signed2)
{
BOOL IsBlacklistedPublisher = FALSE;
std::wstring Publisher(GetPublisherName(FileNamez));
if (Publisher.c_str() != NULL)
{
constwchar_t* PublisherName = Publisher.c_str();
constwchar_t* Publishers[] = { L"python", L"oracle" };
int Size3 = sizeof(Publishers) / sizeof(Publishers[0]);
wchar_t LowercasePublisher[100];
wcscpy_s(LowercasePublisher, 256, PublisherName);
for (int i = 0; LowercasePublisher[i] != L'\0'; i++)
LowercasePublisher[i] = towlower(LowercasePublisher[i]);
for (int i = 0; i < Size3; i++)
{
if (wcsstr(LowercasePublisher, Publishers[i]) != NULL)
{
IsBlacklistedPublisher = TRUE;
break;
}
}
}
return IsBlacklistedPublisher && Signed2;
}
returnfalse;
}
i don't understand that can you explain this to me?
switch(arg){case"--ignore-updates":Settings.CheckUpdates=false;break;case"--ignore-warnings":Settings.ShowWarnings=false;break;//this setting is turned off by default for security reasons, you can enable it by editing the code/* case "--direct-uninstall": if (!Settings.DirectInstall) Settings.DirectUninstall = true; break; */case"--show-browsers":Settings.ShowBrowsers=true;break;case"--no-output":Settings.ShowOutput=false;break;}
You can use library for that. C# has a lot of library for parsing args.
This variables is duplicated too is defined in 2 places (public static void Install(string Option, bool SecureBoot) and public static bool IsComponentsAvailable(string Option)). You can use class for getting this variables.
You can use ILogger (Microsoft.Extensions.Logging) interface for logging. You can use Serilog it's very easy logger with ILogger interface support.
staticdoubleVersion=2.3;
You can get Version info from AssemblyInfo.
The text was updated successfully, but these errors were encountered:
Thanks for your issue, i will fix/improve most of what you mentioned, for the "C" drive label i'm aware of this issue but honestly forgot to fix that in the last update.
for the part that you don't understand it's basically blacklisting python and java as they are signed binaries but they can execute code that is programmed by other people (if you know what i mean) so if the normal mode is used it will blacklist java and python as they are signed but at the same time have the possibility of executing malicious code.
This codes using hard coded disk label, C:\ can be getted from config. Users maybe not using C: disk label or it's can be secured etc if any of them, your app will not work.
const wchar_t* Browsers[] this list is duplicated (created with same name on two place)
This lists can be getted from embedded source or a another header file like a consts.h.
i don't understand that can you explain this to me?
You can use library for that. C# has a lot of library for parsing args.
You can use Path.Combine on there
And you can use function to fix code repeating.
This variables is duplicated too is defined in 2 places (public static void Install(string Option, bool SecureBoot) and public static bool IsComponentsAvailable(string Option)). You can use class for getting this variables.
You can use ILogger (Microsoft.Extensions.Logging) interface for logging. You can use Serilog it's very easy logger with ILogger interface support.
You can get Version info from AssemblyInfo.
The text was updated successfully, but these errors were encountered: