mirror of
https://github.com/winterknife/EVENSTAR
synced 2026-06-21 14:13:51 +00:00
EVENSTAR - ReadMSW
Version
v1.0.0
Brief
ISA: x86Mode: Real, Protected, LongBitness: 16-bit, 32-bit, 64-bitCPL: 0, 3OS: WindowsLanguage: C- Sample code that demonstrates the usage of the
SMSWinstruction to fetch the theMachine Status Word(bits 0 through 15 of control registerCR0) and check if the processor is running inProtectedmode.
Usage
- There aren't a lot of useful bits in the
MSW - One notable exception:
PE (Protection Enable)bit (0) - This flag enables Segmentation
- Under normal circumstances, the sample code will always inform that
CR0.PEbit is set - Only useful for low-level code such as
OSandHypervisors - Another possible use might be for
VMdetection but more testing is needed
C:\Users\winterknife\Desktop\ACED\EVENSTAR\ReadMSW\Bin\x64>ReadMSW.exe
[*] ReadMSW Built Jan 14 2025 14:12:25
Press any key to continue . . .
Processor Execution Mode == Protected Mode
Press any key to continue . . .
Tested OS Versions
Windows 11 24H2 Build 26100 Revision 1882 64-bit