Skip to content

Instantly share code, notes, and snippets.


Michael Lynn pudquick

View GitHub Profile
pudquick /
Created Oct 7, 2020
IOKit IOUSBDevice enumeration
import objc
from Foundation import NSBundle
IOKit_bundle = NSBundle.bundleWithIdentifier_('')
functions = [
("IORegistryEntryCreateCFProperties", b"IIo^@II"),
("IOServiceMatching", b"@*"),
("IOServiceGetMatchingServices", b"II@o^I"),
("IOIteratorNext", b"II"),
pudquick /
Last active Aug 25, 2020
Minecraft Java <-> Bedrock crossplay server blog post
export JAVA_HOME="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home"
export PATH="$JAVA_HOME/bin:$PATH"
cd "$( dirname "$0" )"
java -Xmx1024M -jar Geyser.jar
pudquick / Info.plist
Created Oct 29, 2019 — forked from steventroughtonsmith/Info.plist
[Catalyst] Registering for & responding to AppleScript events in a Mac Catalyst app
View Info.plist
pudquick /
Last active Dec 5, 2019
Discovering variable/constant values in frameworks
View fdsetup-for-crypt.mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>Privacy Preferences Policy Control</string>

Keybase proof

I hereby claim:

  • I am pudquick on github.
  • I am frogor ( on keybase.
  • I have a public key ASBTy_VUW9m2orm3VyY994_c5qlvSMMatsoKxQk0l6LhyAo

To claim this, I am signing this object:

pudquick /
Last active Jan 14, 2020
Obtain codesigning information with pyobjc
import objc
from Foundation import NSBundle, NSURL
Security = NSBundle.bundleWithIdentifier_('')
class StaticCodeError(Exception):
class SigningInfoError(Exception):
pudquick /
Created Apr 19, 2019
locally checking profile signing information
# So the first thing we need to do is get the mdmclient view of the profiles
import subprocess, objc
from Foundation import NSPropertyListSerialization, NSPropertyListMutableContainers, NSBundle
Security = NSBundle.bundleWithIdentifier_('')
S_functions = [
('SecCertificateCreateWithData', '@@@'),
('SecCertificateCopyValues', '@@^@o^@'),
View chef_user_resource_monkeypatching.rb
require 'base64'
require 'plist'
module Chef::Provider::User::DsclMojaveUserExtensions
# new for 10.14+
def mac_osx_version_greater_than_10_13?['platform_version']) >'10.13.99')
# updated for 10.14+
pudquick /
Created Sep 5, 2018 — forked from pdarragh/
Short PyObjC script to get a Mac's serial number without calling `system_profiler`.
# (Note that we must use system Python on a Mac.)
# Quick script to get the computer's serial number.
# Written for @john.e.lamb on the MacAdmins Slack team.
import objc
import CoreFoundation
You can’t perform that action at this time.