Giter Site home page Giter Site logo

tcctool's Introduction

TCC Tool

version 2.9, 1 February 2023

Note: Terminal.app (or the process used to launch this script) will need Full Disk Access

What does it do?

Reads the system and user tcc.db and translates the following:

  • service name
  • client name
  • auth_value (allowed, denied)
  • auth_reason (user, system default, MDM)
  • indirect_object_identifier
  • last modified date
  • code signing requirement

Outputs the report in CSV

Usage

zsh tcctool.sh [-o outputfile]

If an output file path is not specified, the report text is sent to stdout.

See also:

https://www.rainforestqa.com/blog/macos-tcc-db-deep-dive

To Do

  • List of apps present in TCC.db that are no longer installed.
  • Offer to clean missing apps from TCC.db with tccutil

tcctool's People

Contributors

option8 avatar

Stargazers

 avatar tony eve avatar  avatar Eric Summers avatar Jason Bush avatar adam kaminski avatar Dasutin avatar lukecharters avatar  avatar Jonathan Hoium avatar Alexander Duffner avatar Nathaniel Strauss avatar Brad Reno avatar Arbal avatar Stephen Johnson avatar Jens Malessa avatar Luke Hamburg avatar Benjy Feen avatar Andre Arroyo avatar Rick Goody avatar  avatar Ben Mason avatar Tom Case avatar Kevin M. Cox avatar

Watchers

Jens Malessa avatar Kevin M. Cox avatar  avatar

Forkers

lotusshaney

tcctool's Issues

macOS 13 broke date -jI hours

It seems there's been a regression in the functionality of date in Ventura which is causing a flood of errors in tcctool like this

image

While -I hours works on macOS 12 and under it now fails on macOS 13 with with date: illegal time format
Example: date -jI hours -r $(date +%s)

FYI - using the arcane what tool the project and version of date can be obtained but weirdly I can find no difference in the date source code, so who knows how or why it's broken... it's still broken. Time to get explicit with the format as a workaround I guess! ๐Ÿคท
Ventura - shell_cmds-278

% what $(which date)
/bin/date:
	PROGRAM:date  PROJECT:shell_cmds-278

Monterey - shell_cmds-240.100.15

% what $(which date)
/bin/date:
	PROGRAM:date  PROJECT:shell_cmds-240.100.15

Neat tool, thanks!

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.