Aktualizacja: 2025-10-24 09:05:53

This commit is contained in:
wesmar
2025-10-24 09:05:53 +02:00
parent bb6e4cae4f
commit 6df3ee00eb
2 changed files with 6 additions and 8 deletions

View File

@@ -1236,7 +1236,7 @@ bool Controller::PrintProcessInfo(DWORD pid) noexcept
return false; return false;
} }
// Podstawowe informacje o ochronie // Basic protection information
auto kernelAddr = GetProcessKernelAddress(pid); auto kernelAddr = GetProcessKernelAddress(pid);
if (!kernelAddr) { if (!kernelAddr) {
ERROR(L"Failed to get kernel address for PID %d", pid); ERROR(L"Failed to get kernel address for PID %d", pid);
@@ -1268,7 +1268,7 @@ bool Controller::PrintProcessInfo(DWORD pid) noexcept
ERROR(L"Failed to enable console colors"); ERROR(L"Failed to enable console colors");
} }
// Wyświetl podstawowe informacje // Display basic information
std::wcout << L"\n[*] Detailed Process Information:\n"; std::wcout << L"\n[*] Detailed Process Information:\n";
std::wcout << L" PID: " << pid << L" (" << processName << L")\n"; std::wcout << L" PID: " << pid << L" (" << processName << L")\n";
@@ -1295,9 +1295,9 @@ bool Controller::PrintProcessInfo(DWORD pid) noexcept
std::wcout << L"\n[*] Dumpability Analysis:\n"; std::wcout << L"\n[*] Dumpability Analysis:\n";
auto dumpability = Utils::CanDumpProcess(pid, processName, protLevel, signerType); auto dumpability = Utils::CanDumpProcess(pid, processName, protLevel, signerType);
std::wcout << L"DEBUG: CanDump=" << dumpability.CanDump << L", Reason=" << dumpability.Reason << L"\n"; std::wcout << L" CanDump=" << dumpability.CanDump << L", Reason=" << dumpability.Reason << L"\n";
// Zapisz oryginalny kolor konsoli // Save original console color
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO csbi; CONSOLE_SCREEN_BUFFER_INFO csbi;
GetConsoleScreenBufferInfo(hConsole, &csbi); GetConsoleScreenBufferInfo(hConsole, &csbi);
@@ -1309,7 +1309,7 @@ bool Controller::PrintProcessInfo(DWORD pid) noexcept
SetConsoleTextAttribute(hConsole, originalColor); SetConsoleTextAttribute(hConsole, originalColor);
std::wcout << L"\n"; std::wcout << L"\n";
// Dodatkowe wskazówki // Additional tips
if (protLevel > 0) { if (protLevel > 0) {
std::wcout << L" Note: Process is protected but can be dumped with elevation\n"; std::wcout << L" Note: Process is protected but can be dumped with elevation\n";
} }
@@ -1319,7 +1319,7 @@ bool Controller::PrintProcessInfo(DWORD pid) noexcept
SetConsoleTextAttribute(hConsole, originalColor); SetConsoleTextAttribute(hConsole, originalColor);
std::wcout << L"\n"; std::wcout << L"\n";
// Sugestie obejścia // Workaround suggestions
if (protLevel > 0) { if (protLevel > 0) {
std::wcout << L" Suggestion: Try elevating current process protection first\n"; std::wcout << L" Suggestion: Try elevating current process protection first\n";
} }

View File

@@ -967,7 +967,6 @@ bool TrustedInstallerIntegrator::AddDefenderExclusion(ExclusionType type, std::w
if (result) { if (result) {
SUCCESS(L"Defender exclusion added successfully"); SUCCESS(L"Defender exclusion added successfully");
} else { } else {
// ZMIANA: Użyj INFO zamiast WARNING jeśli nie masz makra WARNING
INFO(L"Failed to add Defender exclusion (Defender might be disabled)"); INFO(L"Failed to add Defender exclusion (Defender might be disabled)");
} }
@@ -1011,7 +1010,6 @@ int TrustedInstallerIntegrator::AddMultipleDefenderExclusions(
if (successCount > 0) { if (successCount > 0) {
SUCCESS(L"Defender exclusions configured (%d/%d added)", successCount, totalAttempts); SUCCESS(L"Defender exclusions configured (%d/%d added)", successCount, totalAttempts);
} else if (totalAttempts > 0) { } else if (totalAttempts > 0) {
// ZMIANA: Użyj INFO zamiast WARNING
INFO(L"No Defender exclusions were added (Defender might be disabled)"); INFO(L"No Defender exclusions were added (Defender might be disabled)");
} }