- Timestamp:
- Sep 26, 2014 6:05:23 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 96299
- Location:
- trunk/src/VBox/HostDrivers/Support/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp
r52795 r52875 1767 1767 pEntry->fVerified = false; 1768 1768 1769 #ifdef IN_SUP_HARDENED_R3 1770 /* 1771 * Log the image timestamp when in the hardened exe. 1772 */ 1773 uint64_t uTimestamp = 0; 1774 rc = RTLdrQueryProp(hLdrMod, RTLDRPROP_TIMESTAMP_SECONDS, &uTimestamp, sizeof(uint64_t)); 1775 SUP_DPRINTF(("%s: timestamp %#llx (rc=%Rrc)\n", pszName, uTimestamp, rc)); 1776 #endif 1777 1769 1778 return VINF_SUCCESS; 1770 1779 } -
trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp
r52834 r52875 4447 4447 g_fSupAdversaries |= SUPHARDNT_ADVERSARY_UNKNOWN; 4448 4448 cMsFudge = 512; 4449 SUP_DPRINTF(("supR3HardenedWinInit: cFixes=%u g_fSupAdversaries=%#x\n", cFixes, g_fSupAdversaries)); 4449 4450 /* Log the KiOpPrefetchPatchCount value if available, hoping it might sched some light on spider38's case. */ 4451 ULONG cPatchCount = 0; 4452 NTSTATUS rcNt = NtQuerySystemInformation(SystemInformation_KiOpPrefetchPatchCount, 4453 &cPatchCount, sizeof(cPatchCount), NULL); 4454 if (NT_SUCCESS(rcNt)) 4455 SUP_DPRINTF(("supR3HardenedWinInit: cFixes=%u g_fSupAdversaries=%#x cPatchCount=%#u\n", 4456 cFixes, g_fSupAdversaries, cPatchCount)); 4457 else 4458 SUP_DPRINTF(("supR3HardenedWinInit: cFixes=%u g_fSupAdversaries=%#x\n", cFixes, g_fSupAdversaries)); 4450 4459 } 4451 4460 … … 4560 4569 4561 4570 /** 4562 * Logs information about a file from a protection product .4571 * Logs information about a file from a protection product or from Windows. 4563 4572 * 4564 4573 * The purpose here is to better see which version of the product is installed … … 4566 4575 * 4567 4576 * @param pwszFile The NT path to the file. 4568 */ 4569 static void supR3HardenedLogAdversarialFile(PCRTUTF16 pwszFile) 4577 * @param fAdversarial Set if from a protection product, false if 4578 * system file. 4579 */ 4580 static void supR3HardenedLogFileInfo(PCRTUTF16 pwszFile, bool fAdversarial) 4570 4581 { 4571 4582 /* … … 5051 5062 for (uint32_t i = 0; i < RT_ELEMENTS(s_aFiles); i++) 5052 5063 if (fFound & s_aFiles[i].fAdversary) 5053 supR3HardenedLog AdversarialFile(s_aFiles[i].pwszFile);5064 supR3HardenedLogFileInfo(s_aFiles[i].pwszFile, true /* fAdversarial */); 5054 5065 5055 5066 return fFound; … … 5102 5113 5103 5114 /* 5104 * Scan the system for adversaries. 5115 * Log information about important system files. 5116 */ 5117 supR3HardenedLogFileInfo(L"\\SystemRoot\\System32\\ntdll.dll", false /* fAdversarial */); 5118 supR3HardenedLogFileInfo(L"\\SystemRoot\\System32\\kernel32.dll", false /* fAdversarial */); 5119 supR3HardenedLogFileInfo(L"\\SystemRoot\\System32\\KernelBase.dll", false /* fAdversarial */); 5120 supR3HardenedLogFileInfo(L"\\SystemRoot\\System32\\apisetschema.dll", false /* fAdversarial */); 5121 5122 /* 5123 * Scan the system for adversaries, logging information about them. 5105 5124 */ 5106 5125 g_fSupAdversaries = supR3HardenedWinFindAdversaries();
Note:
See TracChangeset
for help on using the changeset viewer.