Skip to content

Instantly share code, notes, and snippets.

View LeoNatan's full-sized avatar

Léo Natan LeoNatan

View GitHub Profile
@LeoNatan
LeoNatan / LNHiddenStrings.hh
Last active September 3, 2024 09:37
Hidden Strings
/**
The MIT License (MIT)
Copyright (c) 2024 Léo Natan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
sudo /usr/libexec/PlistBuddy -c "Add 'GelatoCore:Enabled' bool false" /Library/Preferences/FeatureFlags/Domain/Messages.plist
sudo /usr/libexec/PlistBuddy -c "Add 'Gelato:Enabled' bool false" /Library/Preferences/FeatureFlags/Domain/Sharing.plist
To restore defaults:
sudo /usr/libexec/PlistBuddy -c "delete 'GelatoCore:Enabled'" /Library/Preferences/FeatureFlags/Domain/Messages.plist
sudo /usr/libexec/PlistBuddy -c "delete 'Gelato:Enabled'" /Library/Preferences/FeatureFlags/Domain/Sharing.plist
Reboot your machine after these changes.
csrutil disable
sudo nvram boot-args="intcoproc_unrestricted=1 kext-dev-mode=1 amfi_allow_any_signature=1 amfi_unrestrict_task_for_pid=1 PE_i_can_has_debugger=1 cs_enforcement_disable=1 amfi_get_out_of_my_way=1 amfi=0xff cs_debug=1 ipc_control_port_options=0"
sudo spctl --global-disable
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
sudo defaults write /Library/Preferences/com.apple.security.coderequirements Entitlements -string always
sudo defaults write /Library/Preferences/com.apple.security.coderequirements AllowUnsafeDynamicLinking -bool YES
sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool YES
defaults write com.apple.loginwindow DisableScreenLockImmediate -bool yes