-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[main] Fix extraction of bootmgr.exe from Windows 10 bootmgr
The Windows 10 version of bootmgr includes an XCA-compressed embedded copy of bootmgr.exe at an offset that is 8-byte aligned rather than 16-byte aligned. Update the scan to search on 8-byte boundaries instead of 16-byte boundaries. Retain the 16-byte boundary requirement for LZNT1-compressed embedded copies of bootmgr.exe, since fewer sanity checks are available for LZNT1 and so the scan is more likely to hit false positives. Update the test cases to include the ability to extract bootmgr.exe from the Windows 10 version of bootmgr. Reported-by: Steve Si <[email protected]> Signed-off-by: Michael Brown <[email protected]>
- Loading branch information
Showing
4 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Test Windows 10 bootmgr.exe extraction | ||
version: win10 | ||
arch: x64 | ||
bootmgr: true | ||
logcheck: | ||
- "found bootmgr" | ||
- "checking for XCA-compressed bootmgr.exe" | ||
- "extracting embedded bootmgr.exe" | ||
- "Using bootmgr.exe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
name: Test bootmgr.exe extraction | ||
name: Test Windows 7 bootmgr.exe extraction | ||
version: win7 | ||
arch: x64 | ||
bootmgr: true | ||
logcheck: | ||
- "found bootmgr" | ||
- "checking for LZNT1-compressed bootmgr.exe" | ||
- "extracting embedded bootmgr.exe" | ||
- "Using bootmgr.exe" |