Code Monkey home page Code Monkey logo

gatekeeper_utils's Introduction

GateKeeper Utils 说明手册

macOS Sierra GateKeeper调整工具

macOS Sierra 增强了GateKeeper的安全性,使系统默认禁止未签名/未知签名的App的运行。 这样做的确增强了一定的安全性,但是对于一些高级用户来说增加了不少麻烦。

如果您不了解什么是GateKeeper,那么我推荐您不要修改此安全措施,为了保障您的系统安全。 若想了解更多关于GateKeeper的信息,请参阅Apple官方文档

前一阵子发微博讲过关闭GateKeeper的方法,但是又有一些朋友说这样做降低了系统的安全性,如果遇到恶意程序并不能防御。

所以我考虑到了一种两全其美的方法,并粗略编写了这个脚本。

使用方法

您若要直接使用本工具,请在Release标签直接下载GateKeeperUtils_for_macOS,并保存到自定义路径下。

准备工作

需要让该脚本具有可执行权限。

  1. 运行 终端.app
  2. 输入并执行命令 chmod +x /保存的路径/GateKeeperUtils_for_macOS

不要关闭终端窗口,继续选择操作。

若要修改GateKepper状态

  1. 输入命令 /保存的路径/GateKeeperUtils_for_macOS

若要解封对App的运行限制,且不关闭GateKeeper

  1. GateKeeperUtils文件拖入到终端窗口。
  2. 再将被禁止运行的App拖入终端窗口,回车执行。

功能

直接运行脚本

自动检测GateKeeper状态,如果已经关闭,则可根据提示开启。如果已经开启,则可根据提示关闭。

传递被禁止运行的App路径作为参数

脚本将尝试解封GateKeeper对其的限制,使得该App可以运行。 而且GateKeeper不被关闭,不影响系统安全性。

注意 & 声明:

  1. 请不要将被限制的App在只读环境下进行解除限制操作(例如:在DMG镜像中),否则将失败。
  2. 您尝试解封的App属于恶意程序,并对您的系统造成任何损害,您将自行承担后果。
  3. 本工具可能会对您的系统造成修改,请斟酌后使用,作者将不承担任后果。
  4. 本工具完全开源,但是提供用户下载的是文件是经过简略加密的脚本,目的在于防止用户不小心篡改脚本,而可能在执行过程中缠身的不可预计后果。

gatekeeper_utils's People

Contributors

hackl0us avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.