from ctypes import *
from sys import builtin_module_names
_names = set(builtin_module_names)
x86 = create_string_buffer(
'\x8B\x44\x24\x04' # mov eax, DWORD PTR [esp+4]
'\x0F\xA2' # cpuid
'\xC3' # ret 0
)
address = addressof(x86)
if 'posix' in _names: cdll['libc.so.6'].mprotect(address & ~0xFFF,0x1000,0xF)
elif 'nt' in _names: windll.kernel32.VirtualProtect(address,sizeof(x86),0x40,byref(c_ulong()))
else:raise NotImplementedError
print CFUNCTYPE(c_char * 4,c_int)(address)(0x80000002).raw
ZnJvbSBjdHlwZXMgaW1wb3J0ICoKZnJvbSBzeXMgaW1wb3J0IGJ1aWx0aW5fbW9kdWxlX25hbWVzCl9uYW1lcyA9IHNldChidWlsdGluX21vZHVsZV9uYW1lcykKCng4NiA9IGNyZWF0ZV9zdHJpbmdfYnVmZmVyKAoJJ1x4OEJceDQ0XHgyNFx4MDQnCSMgbW92CSBlYXgsIERXT1JEIFBUUiBbZXNwKzRdCgknXHgwRlx4QTInCQkjIGNwdWlkCgknXHhDMycJCQkjIHJldAkgMAopCmFkZHJlc3MgPSBhZGRyZXNzb2YoeDg2KQppZiAncG9zaXgnIGluIF9uYW1lczogY2RsbFsnbGliYy5zby42J10ubXByb3RlY3QoYWRkcmVzcyAmIH4weEZGRiwweDEwMDAsMHhGKQplbGlmICdudCcgaW4gX25hbWVzOiB3aW5kbGwua2VybmVsMzIuVmlydHVhbFByb3RlY3QoYWRkcmVzcyxzaXplb2YoeDg2KSwweDQwLGJ5cmVmKGNfdWxvbmcoKSkpCmVsc2U6cmFpc2UgTm90SW1wbGVtZW50ZWRFcnJvcgpwcmludCBDRlVOQ1RZUEUoY19jaGFyICogNCxjX2ludCkoYWRkcmVzcykoMHg4MDAwMDAwMikucmF3Cg==