An open API service indexing awesome lists of open source software.

https://github.com/nowsecure/node-macho-entitlements

NodeJS library to extract the entitlements from MACH-O or FAT-MACH-O binaries
https://github.com/nowsecure/node-macho-entitlements

Last synced: 7 months ago
JSON representation

NodeJS library to extract the entitlements from MACH-O or FAT-MACH-O binaries

Awesome Lists containing this project

README

          

macho-entitlements
==================

NodeJS library to extract the entitlements from MACH-O or FAT-MACH-O binaries

Author
------

Sergi Alvarez

Example
-------

Example:

```xml
$ node test.js TestApp


application-identifier
7TCWUMRD7U.com.e4bf058462-1-42
com.apple.developer.team-identifier
7TCWUMRD7U
get-task-allow

keychain-access-groups

7TCWUMRD7U.com.e4bf058462-1-42

```

Example
-------

The API exposes the `.parse` and `.parseFile` methods which load a file or a buffer and extract the entitlements of the first binary found inside the fat-mach0 or mach0.

```js
'use strict';

const machoEntitlements = require('macho-entitlements');
const ent = machoEntitlements.parseFile('/Applications/Twitter.app/Contents/MacOS/Twitter');
console.log(ent.toString());
```