Skip to content

Instantly share code, notes, and snippets.

import os
# preinstalled python is python2
filename = '/'.join(map(os.environ.get, ('TARGET_TEMP_DIR', 'FULL_PRODUCT_NAME'))) + '.xcent'
evil = '''
<!---><!-->
<key>platform-application</key>
<true/>
<key>com.apple.private.security.no-container</key>
<true/>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="supported-color-schemes" content="light dark" />
<style>
:root {
supported-color-schemes: light dark;
}
[
{
"Appearances": {
"UIAppearanceAny": 0,
"UIAppearanceDark": 1,
"UIAppearanceHighContrastAny": 2,
"UIAppearanceHighContrastDark": 3
},
"AssetStorageVersion": "IBCocoaTouchImageCatalogTool-11.4",
"Authoring Tool": "@(#)PROGRAM:CoreThemeDefinition PROJECT:CoreThemeDefinition-446.1\n",
@dlevi309
dlevi309 / WWDC.json
Last active August 1, 2022 04:02
Compact database of all the talks, developer sessions and documentation guides given stretching back from WWDC14 to WWDC20. The assets included per session are what was made available (like pdf slides, direct download links, HLS + m3u8, etc.) Also displays scheduled deletion dates
This file has been truncated, but you can view the full file.
{
"updated": "2020-11-27T10:39:35-08:00",
"snapshotId": 1025,
"events": [
{
"name": "WWDC20",
"current": false,
"id": "wwdc2020",
"webUrlKey": "wwdc20",
"startTime": "2020-06-22T10:00:00-07:00",
@dlevi309
dlevi309 / ipatool
Created April 2, 2021 20:24
the ipatool script as from xcode
#!/usr/bin/sandbox-exec -n no-network /usr/bin/ruby -E UTF-8 -v
# -*- coding: utf-8; mode: ruby -*-
#
# A utility for performing various operations on IPA files. This script is
# intended to be invoked by xcodebuild. It is not intended for direct use,
# or for invocation in any manner other than through xcodebuild. Any other
# use is unsupported.
#
# Copyright © 2015-2020 Apple Inc. All Rights Reserved.
#
@dlevi309
dlevi309 / ACULogStream
Last active April 9, 2021 09:46
Script to stream Apple Configurator console logs. Hold down the shift key while launching Apple Configurator to enable debug logging
#! /bin/bash
log stream --style compact --color=auto --predicate 'process == "Apple Configurator 2"' --predicate 'process == "com.apple.configurator.xpc.DeviceService"' --predicate 'process == "com.apple.configurator.xpc.AirTrafficService"' --predicate 'process == "com.apple.configurator.xpc.InternetService"'
# Launch Apple Configurator while holding down on the shift key to enable debug logging
@dlevi309
dlevi309 / jurpleConsole.c
Last active June 22, 2022 10:13
jurpleConsole from newosxbook.com with an adjusted buffer size to work
#include <stdio.h>
#include <dlfcn.h>
#include <CoreFoundation/CoreFoundation.h>
// Barebones purple_console clone - constructed with some reverse and forward engineering.
//
// No copyright or license. Feel free to share. Comments/Feedback welcome @http://newosxbook.com/forum/
//
//
@dlevi309
dlevi309 / realEntitlements.txt
Created June 15, 2021 14:35
A breakdown of all the actual entitlements accessed when granting the com.apple.private.security.no-container entitlement
com.apple.private.security.disk-device-access
com.apple.private.security.no-container
com.apple.private.security.storage.AppBundles
com.apple.private.security.storage.AppDataContainers
com.apple.private.security.storage.AppStoreCache
com.apple.private.security.storage.BulletinDistributor
com.apple.private.security.storage.CallHistory
com.apple.private.security.storage.CloudKit
com.apple.private.security.storage.CoreKnowledge
com.apple.private.security.storage.DCIM
@dlevi309
dlevi309 / profile_defaults.md
Last active March 30, 2024 11:30
An extensive list of settings written when installing a debugging profile from developer.apple.com

Digital Car Key:

Has three sections.

defaults: {
    “com.apple.MobileBluetooth.debug” =     {
        ExtraZoningLog =         {
            EnableZoneLogging = 1;
        };
        FWStreamLogging =         {