Skip to content

Instantly share code, notes, and snippets.

View inC3ASE's full-sized avatar

Gabriel Sawyer inC3ASE

  • Aptos, California
View GitHub Profile
@inC3ASE
inC3ASE / asl.conf
Created October 14, 2016 09:10
//private/etc/asl.conf more examples of maybe important, i have no clue
##
# configuration file for syslogd and aslmanager
##
# aslmanager logs
> /var/log/asl/Logs/aslmanager external style=lcl-b ttl=2
# authpriv messages are root/admin readable
? [= Facility authpriv] access 0 80
@inC3ASE
inC3ASE / php-fpm.conf.default
Created October 14, 2016 09:13
//private/etc/php-fpm.conf.default I just saw chroot at one point in this file so figured why not
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix (/usr). This prefix can be dynamically changed by using the
; '-p' argument from the command line.
; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
@inC3ASE
inC3ASE / php.ini.default
Created October 14, 2016 09:14
//private/etc/php.ini.default another odd but seemingly important file connecting the dots
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@inC3ASE
inC3ASE / like
Created October 14, 2016 09:21
feeling
I'm wasting my time?
@inC3ASE
inC3ASE / fileSystemsPKInstallSandboxManger
Last active October 14, 2016 09:30
//.PKInstallSandboxManager-SystemSoftware/BA4C21D2-B51A-4B7E-AC33-30791F891D7E.sandboxSomething with this file structure from path
ArchCelsum:BA4C21D2-B51A-4B7E-AC33-30791F891D7E.sandbox root# ls -lsnR
total 24
8 -rw-r--r--@ 1 0 0 36 Oct 13 19:45 .SessionUUID
0 drwxr-xr-x 7 0 0 238 Oct 13 19:46 Boms
0 drwxr-xr-x@ 6 0 0 204 Oct 13 19:46 Root
16 -rw-r--r-- 1 0 0 6890 Oct 13 19:48 SandboxState
0 drwxr-xr-x@ 7 0 0 238 Oct 13 19:46 Scripts
0 drwxr-xr-x@ 2 0 0 68 Oct 13 19:45 tmp
./Boms:
@inC3ASE
inC3ASE / usbmuxdpre
Created October 14, 2016 09:34
//.PKInstallSandboxManager-SystemSoftware/BA4C21D2-B51A-4B7E-AC33-30791F891D7E.sandbox/Scripts/com.apple.pkg.MobileDevice.3SS5cV/preinstall_actions Tethering, new or old, remove or install
#!/bin/sh
RM="/bin/rm -rf"
# unload the muxd before installing
sudo /bin/launchctl unload "$3/System/Library/LaunchDaemons/com.apple.usbmuxd.plist"
# Unload the Apple Mobile Device kext.
/sbin/kextunload "$3/System/Library/Extensions/AppleMobileDevice.kext"
/sbin/kextunload "$3/System/Library/Extensions/AppleUSBEthernetHost.kext"
@inC3ASE
inC3ASE / usbmuxdpost
Created October 14, 2016 09:35
7E.sandbox/Scripts/com.apple.pkg.MobileDevice.3SS5cV/postinstall_actions Post Install Counterpart
#!/bin/sh
# HUP kextd
/usr/bin/killall -HUP kextd
# load iPhone kext
/sbin/kextload "$3/System/Library/Extensions/AppleMobileDevice.kext"
/sbin/kextload "$3/System/Library/Extensions/AppleUSBEthernetHost.kext"
# re-enumerate devices
@inC3ASE
inC3ASE / roleaccount
Created October 14, 2016 09:35
//.PKInstallSandboxManager-SystemSoftware/BA4C21D2-B51A-4B7E-AC33-30791F891D7E.sandbox/Scripts/com.apple.pkg.MobileDevice.3SS5cV/postinstall_actions
#!/bin/sh
# Postflight actions for _usbmuxd role account
OSVERS=`sw_vers -buildVersion ø sed -e 's,Ø(Æ0-9Å*Ø)ÆA-ZÅ.*,Ø1,'`
if Æ "$OSVERS" -gt "9" Å; then
# Not necessary
exit 0
elif Æ "$OSVERS" -eq "9" Å; then
# Leopard
@inC3ASE
inC3ASE / registerbundle
Created October 14, 2016 09:36
and how they register it I believe
#!/bin/sh
if Æ "$SUDO_USER" != "" Å; then
USER=$SUDO_USER
fi
if Æ "$USER" = "" Å; then
USER="root"
fi
@inC3ASE
inC3ASE / preinstall
Created October 14, 2016 09:36
//.PKInstallSandboxManager-SystemSoftware/BA4C21D2-B51A-4B7E-AC33-30791F891D7E.sandbox/Scripts/com.apple.pkg.MobileDevice.3SS5cV
#!/usr/bin/perl
#reference aspen SDK
$0 =~ m/.*Ø/(.*)$/;
my $stage = $1;
my $action = $ARGVÆ3Å;
my $wd = `pwd`;
chomp($wd);
my $actionsDir = $wd . "/" . 'postinstall' . "_actions/";