Checks whether system is using dark mode or not.
Signature:
using fnShouldAppsUseDarkMode = bool (WINAPI*)(); // ordinal 132
iPhone8 15.1 19B74 | |
iBoot: 0x1800309c0 : 000080d2 | |
iBoot: 0x180038744 : af070094 | |
iBoot: 0x18003a844 : 9386ff17 | |
iBoot: 0x18001c290 : a1000058df0301eb40000054202080d2c0035fd6 | |
iBoot: 0x18001c2a4 : 4887038001000000 | |
iBoot: 0x1800325dc : 200080d2 | |
iBoot: 0x18009127f : 7261316e736e3077206d6f6465 | |
iBoot: 0x180038f04 : 1f2003d5 |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <pthread/pthread.h> | |
#include <mach/mach.h> | |
struct ool_msg { | |
mach_msg_header_t hdr; | |
mach_msg_body_t body; | |
mach_msg_ool_ports_descriptor_t ool_ports[]; | |
}; |
class MacFuseRequirement < Requirement | |
fatal true | |
satisfy(build_env: false) { self.class.binary_mac_fuse_installed? } | |
def self.binary_mac_fuse_installed? | |
File.exist?("/usr/local/include/fuse/fuse.h") && | |
!File.symlink?("/usr/local/include/fuse") | |
end |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>UnifiedBar</key> | |
<dict> | |
<key>DisclosureRequired</key> | |
<string>ace440ac-b4f6-4b43-aade-02bba1589aef</string> | |
<key>Enabled</key> | |
<false/> |
//A7~A9, use SHA1 algorithm to generate apnonce. | |
unsigned long buf = 0x1111111111111111; | |
unsigned char result[CC_SHA1_DIGEST_LENGTH]; | |
CC_SHA1(&buf, sizeof(buf), result); | |
for (int i = 0; i < CC_SHA1_DIGEST_LENGTH; i++) | |
printf("%02" PRIx32, result[i]); | |
putchar('\n'); | |
//A10~A11, use SHA384 algorithm, but only take the first 32 bits to generate apnonce. | |
unsigned long buf = 0x1111111111111111; |
import idc | |
def define_func(addr, name): | |
idc.MakeCode(addr) | |
idc.MakeFunction(addr) | |
idc.MakeNameEx(addr, name, idc.SN_NOWARN) | |
print("%s @ %s" % (name, hex(addr))) |
/* | |
* Copyright 2017 Adam H. Leventhal. All Rights Reserved. | |
*/ | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <strings.h> |
#!/bin/sh | |
# Reset Parallels Desktop's trial and generate a casual email address to register a new user | |
rm /private/var/root/Library/Preferences/com.parallels.desktop.plist /Library/Preferences/Parallels/licenses.xml | |
jot -w pdu%d@gmail.com -r 1 |