-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Labels
Description
I'm using version 2.6.0 FWIW, node 6.
± node debug bin.js foo.zip
< Debugger listening on [::]:5858
connecting to 127.0.0.1:5858 ... ok
break in bin.js:2
1
> 2 'use strict'
3 const extractExec = require('./')
4 const fs = require('fs')
c
break in index.js:46
44 // TODO: what if we get multiple plists?
45 const plist = plists[0]
>46 debugger
47 getExecStream(fd, plist.CFBundleExecutable, (err, entry, exec) => {
48 debugger
c
break in index.js:19
17 zip.on('entry', function onentry (entry) {
18 if ((/XXXThing.*app\/XXXThing-.*/i).test(entry.fileName)) {
>19 debugger;
20 }
21 if (!isOurExec(entry, execname)) { return }
repl
Press Ctrl + C to leave debug repl
> entry.fileName
'Payload/XXXThing-╬▓.app/XXXThing-╬▓'
> execname
'XXXThing-β'
as you can see the execname is right but the entry.fileName is not right utf-8 AFAICT.