Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

applesign

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

applesign - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

14

depsolver.js

@@ -77,3 +77,3 @@ 'use strict';

const libs = exec.cmds.filter((x) => {
return x.type === 'load_dylib';
return x.type === 'load_dylib' || x.type === 'load_weak_dylib';
}).map((x) => {

@@ -170,8 +170,12 @@ return x.name;

console.log('Orphaned libraries found');
libs.forEach(lib => {
if (finalLibs.indexOf(lib) === -1) {
const orphaned = libs.filter(lib => finalLibs.indexOf(lib) === -1);
orphaned.forEach(lib => {
console.log(' *', lib);
finalLibs.push(lib);
}
});
/*
* sign those anyways, just ensure to
* sign them before the app executable
*/
finalLibs.unshift(...orphaned);
}

@@ -178,0 +182,0 @@ cb(null, finalLibs);

@@ -26,3 +26,3 @@ {

"mocha": "3.1.0",
"macho": "1.1.0",
"macho": "nowsecure/macho.git",
"fatmacho": "0.1.1",

@@ -68,3 +68,3 @@ "macho-is-encrypted": "0.1.2",

"name": "applesign",
"version": "1.4.0"
"version": "1.5.0"
}

@@ -62,5 +62,5 @@ 'use strict';

/* XXX: if binary doesnt contains an LC_RPATH load command this will not work */
// const insertedLibraryName = '@rpath/' + path.basename(targetLib);
const insertedLibraryName = '@rpath/' + path.basename(targetLib);
/* Just copy the library via USB on the DCIM directory */
const insertedLibraryName = '/var/mobile/Media/DCIM/' + path.basename(targetLib);
// const insertedLibraryName = '/var/mobile/Media/DCIM/' + path.basename(targetLib);
/* useful on jailbroken devices where we can write in /usr/lib */

@@ -67,0 +67,0 @@ // const insertedLibraryName = '/usr/lib/' + path.basename(targetLib);

@@ -141,8 +141,18 @@ 'use strict';

try {
const src = fs.readFileSync(bin);
let src = fs.readFileSync(bin);
if (lib.indexOf('@rpath') === 0) {
src = machoMangle(src, {
type: 'rpath',
name: '@executable_path/Frameworks'
});
}
const dst = machoMangle(src, {
type: 'load_dylib',
name: lib
name: lib,
version: {
current: '1.0.0',
compat: '0.0.0'
}
});
fs.writeFileSync(out, dst);
fs.writeFileSync(bin, dst);
console.log('Library inserted');

@@ -154,3 +164,3 @@ cb();

} catch (_) {
const args = [ '--all-yes', lib, bin, bin ];
const args = [ '--strip-codesig', '--all-yes', lib, bin, bin ];
execProgram(cmd.insert_dylib, args, null, (error, stdout) => {

@@ -157,0 +167,0 @@ if (error) {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc