mirror of
https://github.com/winterknife/EVENSTAR
synced 2026-06-21 14:13:51 +00:00
1.8 KiB
1.8 KiB
EVENSTAR - GetCurrentProcessorNumber
Version
v1.0.0
Brief
ISA: x86Mode: Protected, Compatibility, LongBitness: 32-bit, 64-bitCPL: 0, 3OS: WindowsLanguage: C- Sample code that demonstrates the usage of the
RDPID,RDTSCP, and theLSLinstructions to fetch the current logical processor's ID
Usage
C:\pub\bld>GetCurrentProcessorNumber.exe
[DBG]: [*] GetCurrentProcessorNumber Built Jul 6 2025 16:46:57
Press any key to continue . . .
[DBG]: [+] Logical processor count = 0n2
[DBG]: [+] Pinned all the threads of the current process to logical processor = 0n0
[DBG]: [+] Current logical processor's ID = 0n0
[DBG]: [+] Pinned all the threads of the current process to logical processor = 0n1
[DBG]: [+] Current logical processor's ID = 0n1
Press any key to continue . . .
Tested OS Versions
Windows 11 21H2 Build 22000 Revision 675 64-bit