miliuco Posted February 20, 2025 Share Posted February 20, 2025 Hello, I am trying to fix an issue in the About This Hack app. It's the primary GH repo. I need Apple Silicon (not Intel) owners running this command on Terminal and posting the output, saying if it marches current SIP value. On Intel machines the command runs fine. ioreg -l | grep csr-active-config | cut -c 38- | cut -c -8 It would be even better trying with SIP disabled too. Thank you! 2 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/ Share on other sites More sharing options...
Max.1974 Posted February 20, 2025 Share Posted February 20, 2025 (edited) Hi @miliuco how are you doing? (Como estás Hermano?) Mac Mini M4 Pro Edited February 20, 2025 by Max.1974 2 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830506 Share on other sites More sharing options...
Max.1974 Posted February 20, 2025 Share Posted February 20, 2025 With SIP Disable in Recovery Mode 2 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830507 Share on other sites More sharing options...
miliuco Posted February 20, 2025 Author Share Posted February 20, 2025 @Max.1974 Thank you. It seems that this command is different on Silicon. I'm not at home right now but I'll have you try a different one to see if that one returns the current SIP value. 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830508 Share on other sites More sharing options...
miliuco Posted February 20, 2025 Author Share Posted February 20, 2025 @Max.1974 And this command? nvram -x csr-active-config | grep -E '\s<data>$' -A1 | tail -1 | base64 -d | hexdump | cut -c 9- | tr -d ' ' In an Intel Mac or a Hack it returns SIP hex value. 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830509 Share on other sites More sharing options...
miliuco Posted February 20, 2025 Author Share Posted February 20, 2025 (edited) @Max.1974 My last request. Please try this app on Mac Mini M4 and tell me if the tooltip when hovering over macOS version shows the correct SIP value (enabled/disabled). Or any other user with Apple Silicon. Thanks again. Spoiler https://github.com/perez987/About-This-Hack/tree/main/test Edited February 21, 2025 by miliuco Typo 2 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830510 Share on other sites More sharing options...
miliuco Posted February 21, 2025 Author Share Posted February 21, 2025 (edited) @Max.1974 Different approach. I know that Intel Macs have perl preinstalled by default. But I don't know if Silicon Macs have it too although I think so. Can you run in Terminal perl --version or perl -v? Thank you. Edited February 21, 2025 by miliuco 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830522 Share on other sites More sharing options...
miliuco Posted February 21, 2025 Author Share Posted February 21, 2025 It seems that perl also exists in Silicon Macs and that it can do what I'm looking for, which is the hexadecimal value of SIP without too much complexity in the code. Knowing that we have perl by default, the Terminal command below must return the hexadecimal value of SIP (00000000, 03080000, etc.). You can try and tell to me if it's so. nvram -x csr-active-config | grep -E '\s<data>$' -A1 | tail -1 | base64 -d | hexdump | cut -c 9- | tr -d ' ' | xxd -revert -plain | LC_ALL=C rev | tr -d '\n' | xxd -plain | perl -pe 's/^(.{4})(.{4})$/\2\1/g' Thanks again. 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830530 Share on other sites More sharing options...
Max.1974 Posted February 21, 2025 Share Posted February 21, 2025 Sorry late my friend, I was in a meeting from work. I will do it now Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830531 Share on other sites More sharing options...
Max.1974 Posted February 21, 2025 Share Posted February 21, 2025 (edited) My csrutil was enable but program show disable, maybe refers about my profile key that I disable gatekeeper. I will reboot system and disable csrutil Edited February 21, 2025 by Max.1974 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830532 Share on other sites More sharing options...
miliuco Posted February 21, 2025 Author Share Posted February 21, 2025 @Max.1974 Don't worry , Max, do it when you have free time. App fails with your SIP value, forget it, try the terminal command and tell me the output. Thanks! 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830534 Share on other sites More sharing options...
Max.1974 Posted February 21, 2025 Share Posted February 21, 2025 (edited) 23 hours ago, miliuco said: @Max.1974 And this command? nvram -x csr-active-config | grep -E '\s<data>$' -A1 | tail -1 | base64 -d | hexdump | cut -c 9- | tr -d ' ' In an Intel Mac or a Hack it returns SIP hex value. Sorry if I late my friend, you can send me an e-mail too if I not receive notifications from InsanelyMac Perhaps I need install some Home Brew instances? If yes, post the link and will installed I configured the topic to receive mail notifications Edited February 21, 2025 by Max.1974 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830535 Share on other sites More sharing options...
miliuco Posted February 21, 2025 Author Share Posted February 21, 2025 @Max.1974 I see, there are differences between Intel and Silicon Macs. My joy in a well 😂 Thanks. 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830537 Share on other sites More sharing options...
Max.1974 Posted February 21, 2025 Share Posted February 21, 2025 @miliuco my friend, I installed the link version that was 2.0.1, but the update version 2.0.2 show the information about SIP I will disable SIP to test again, ok? 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830539 Share on other sites More sharing options...
Max.1974 Posted February 21, 2025 Share Posted February 21, 2025 @miliuco if I disable SIP in Recovery Mode not show correctly too with 2.0.2 version 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830540 Share on other sites More sharing options...
miliuco Posted February 23, 2025 Author Share Posted February 23, 2025 (edited) I've been answered in MacRumors: "The method I am trying to use cannot work because Apple Silicon Macs don't store this configuration in NVRAM. There is no csr-active-config variable at all." So, these commands only work on Hacks and Intel Macs. Thanks @Max.1974 for your help. Edited February 23, 2025 by miliuco Typo 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830588 Share on other sites More sharing options...
Max.1974 Posted February 24, 2025 Share Posted February 24, 2025 @miliuco Thanks for you time to try get better app to us I send a PM for you my friend! 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830591 Share on other sites More sharing options...
miliuco Posted February 24, 2025 Author Share Posted February 24, 2025 (edited) @Max.1974 Thank you. Try the commands in the real Intel Mac if you don't have OpenCore nor OCLP and we're done. Edited February 24, 2025 by miliuco Typo 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830599 Share on other sites More sharing options...
Max.1974 Posted February 24, 2025 Share Posted February 24, 2025 (edited) @miliuco my friend, works with 2.0.1 About this Hack version of test and not work with 2.0.2 version. Works fine commands. I hope works fine for your project. MacBookAir 2020 intel i7 macOs Ventura 13.7.3 Last login: Mon Feb 24 20:30:44 on console macbook@MacBook-Air-de-Christian ~ % ioreg -l | grep csr-active-config | cut -c 38- | cut -c -8 7f000000 macbook@MacBook-Air-de-Christian ~ % csrutil status System Integrity Protection status: disabled. macbook@MacBook-Air-de-Christian ~ % nvram -x csr-active-config | grep -E '\s<data>$' -A1 | tail -1 | base64 -d | hexdump | cut -c 9- | tr -d ' ' 007f0000 macbook@MacBook-Air-de-Christian ~ % perl --version This is perl 5, version 30, subversion 3 (v5.30.3) built for darwin-thread-multi-2level (with 2 registered patches, see perl -V for more detail) Copyright 1987-2020, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. macbook@MacBook-Air-de-Christian ~ % nvram -x csr-active-config | grep -E '\s<data>$' -A1 | tail -1 | base64 -d | hexdump | cut -c 9- | tr -d ' ' | xxd -revert -plain | LC_ALL=C rev | tr -d '\n' | xxd -plain | perl -pe 's/^(.{4})(.{4})$/\2\1/g' 7f000000 macbook@MacBook-Air-de-Christian ~ % Version test 2.0.1 Version 2.0.2 Edited February 25, 2025 by Max.1974 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830611 Share on other sites More sharing options...
miliuco Posted February 24, 2025 Author Share Posted February 24, 2025 @Max.1974 Thank you very much. Please don't try any harder. I've already found what I was interested in. Hacks and Intel Macs store the SIP value in the csr-active-config variable in NVRAM. That's why it's so easy to get this value on these systems. The drawback is that SIP applies to all macOS on the machine since NVRAM is the same for all installed macOS. But Silicon Macs store the SIP value in a different way that's harder to access. Apple changed this so that SIP is a macOS-dependent value (not NVRAM) and this way you can have different SIP values for different installed macOS. But accessing this value programmatically is much more complex since it's inside system libraries. Thanks for your effort! We will not go to bed without knowing one more thing 😂 1 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830612 Share on other sites More sharing options...
Max.1974 Posted February 25, 2025 Share Posted February 25, 2025 You are welcome my friend, if you need, just call me 1 Link to comment https://www.insanelymac.com/forum/topic/360706-about-this-hack-sip-info-may-not-be-right/#findComment-2830614 Share on other sites More sharing options...
Recommended Posts