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
- Host: GitHub
- URL: https://github.com/nowsecure/node-macho-entitlements
- Owner: nowsecure
- License: mit
- Created: 2016-08-01T23:43:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-04T13:37:05.000Z (over 9 years ago)
- Last Synced: 2025-03-17T15:42:39.892Z (10 months ago)
- Language: JavaScript
- Homepage: https://lab.nowsecure.com
- Size: 2.93 KB
- Stars: 10
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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());
```