steven-michaud / sandboxmirror Goto Github PK
View Code? Open in Web Editor NEWTool for reverse-engineering Apple's sandbox
License: MIT License
Tool for reverse-engineering Apple's sandbox
License: MIT License
my xcode version is 8.3.2 (8E2002),use xcodebuild
to compile sandboxmirrord ok,but compile SandboxMirror generated the following error:
SandboxMirror/SandboxMirror/SandboxMirror/SandboxMirror.cpp:6574:5: error:
no member named 'mpo_reserved31' in
'mac_policy_ops'
SET_HOOK_OVERRIDE_RES(system_check_sysctl, reserved31);
Hey Steven, I gave this a try on 10.11 and the latest 10.12 beta and built the daemon and kext with xcode, but ran into OS panic's when trying to do some tracing.
The OS X crash log doesn't tell me much apart from xnu-3248.60.11/osfmk/i386/trap_native.c:168 and that SandboxMirror was in the kernel stack trace.
I've never built an OS X kernel extension before so I may have made a mistake with that. (Appreciate the thorough instructions.)
One question: if I don't copy org.smichaud.sandboxmirrord.plist to /Library/LaunchDaemons, do I have to start sandboxmirrord manually?
*** Panic Report *** (from 10.11)
panic(cpu 2 caller 0xffffff8015bcf1ba): "Double fault at 0xffffff8015ac26fc, registers:\n" "CR0: 0x0000000080010033, CR2: 0xffffff8200cc7ff8, CR3: 0x00000002387c00be, CR4: 0x00000000001627e0\n" "RAX: 0x0000000000000000, RBX: 0xffffff7f99679f90, RCX: 0x0000000000000000, RDX: 0xffffff8200cc8040\n" "RSP: 0xffffff8200cc8000, RBP: 0xffffff8200cc8020, RSI: 0x000000000000014c, RDI: 0xffffff8200cc80f0\n" "R8: 0x0000000000007d93, R9: 0xffffff8200ccae30, R10: 0xffffff8200ccaa30, R11: 0x055ac2ee24790028\n" "R12: 0x000000000000002c, R13: 0x0000000000000000, R14: 0xffffff8200cc80f0, R15: 0xffffff80378eddb0\n" "RFL: 0x0000000000010286, RIP: 0xffffff8015ac26fc, CS: 0x0000000000000008, SS: 0x0000000000000010\n" "Error code: 0x0000000000000000\n"@/Library/Caches/com.apple.xbs/Sources/xnu/xnu-3248.60.11/osfmk/i386/trap_native.c:168
Backtrace (CPU 2), Frame : Return Address
0xffffff81f61ace90 : 0xffffff8015adab52
0xffffff81f61acf10 : 0xffffff8015bcf1ba
0xffffff81f61ad070 : 0xffffff8015bece1f
0xffffff8200cc8020 : 0xffffff8015adf839
0xffffff8200cc8070 : 0xffffff7f9967035a
0xffffff8200cc9160 : 0xffffff7f99670572
0xffffff8200cc91d0 : 0xffffff7f9967a0f9
0xffffff8200ccb280 : 0xffffff80161187f3
0xffffff8200ccb2c0 : 0xffffff8015cd9956
0xffffff8200ccb640 : 0xffffff8015cdb242
0xffffff8200ccbd10 : 0xffffff8015cdd51b
0xffffff8200ccbf10 : 0xffffff8015cd6887
0xffffff8200ccbf60 : 0xffffff8016028701
0xffffff8200ccbfb0 : 0xffffff8015becd66
Kernel Extensions in backtrace:
org.smichaud.SandboxMirror(1.0)[8A2E6427-A6C3-3346-BF4F-B2F9D7183B3F]@0xffffff7f9966d000->0xffffff7f9968bfff
BSD process name corresponding to current thread: firefox
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.