Created
May 3, 2020 17:10
-
-
Save 0xmachos/495fb2543033c5226a5901f60e2c8032 to your computer and use it in GitHub Desktop.
Patch to help debug https://github.com/0xmachos/mOSL/issues/28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Lockdown b/Lockdown | |
index 97854f1..9f7b027 100755 | |
--- a/Lockdown | |
+++ b/Lockdown | |
@@ -544,7 +544,7 @@ function disable_firewall_downloaded_signed { | |
function disable_ipv6 { | |
- | |
+ set -x | |
local mode=${1:?No mode passed} | |
local title | |
local audit_command | |
@@ -558,6 +558,7 @@ function disable_ipv6 { | |
fix_command='while read -r i; do networksetup -setv6off "${i}"; done <<< "$(networksetup -listallnetworkservices | tail -n $(( $(networksetup -listallnetworkservices | wc -l) - 1 )))"' | |
mode_check "${mode}" "${title}" "${audit_command}" "${fix_command}" | |
+ set +x | |
} | |
@@ -769,7 +770,7 @@ function check_if_standard_user { | |
function main { | |
- verify_signature | |
+ # verify_signature | |
# Verify Lockdown signature | |
macos_compatability_check | |
# Check the system is running the supoorted version of macOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming you're in the same directory as
Lockdown
, executing the following will apply the patch.