frida / frida-compile

Compile a Frida script comprised of one or more Node.js modules
Other
186 stars 49 forks source link

Folders with spaces don't work #68

Closed ExternalAddress4401 closed 1 year ago

ExternalAddress4401 commented 1 year ago

At least in Windows environments, folders with spaces produce errors.

8:08:22 p.m. - Starting compilation in watch mode...

error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'CallableFunction'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'NewableFunction'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'RegExp'.
error TS6053: File 'C:/Users/Falcon/Desktop/new%20n/node_modules/frida-compile/ext/lib.es2020.d.ts' not found.
  The file is in the program because:
    Library 'lib.es2020.d.ts' specified in compilerOptions

8:08:23 p.m. - Found 9 errors. Watching for file changes.

Removing the error compiles correctly.

ExternalAddress4401 commented 1 year ago

Maybe I just didn't have them quoted.

insomnyawolf commented 1 year ago

I was having the same issue, for some reason it automatically converts the spaces onto the url scaped sequence (%20) and when that happens the compiler can't find the right path, there's probably 1 url encode that isn't needed or a urldecode missing somewhere to make it work properly I'd reoppen this issue till we find the cause of this behaviour