Code Monkey home page Code Monkey logo

Comments (28)

federicodotta avatar federicodotta commented on July 25, 2024 1

Hi! The solution for you problema on Mac should be the one described here:
https://dani.gg/467-add-usr-local-bin-to-the-path-variable-on-mac-os/

I'm implementing also the support for virtual envs on Brida. I will make some notes on the Wiki when the feature will be ready.

Federico

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Hi chanpu9,

another user had your same issue and fixed by uninstalling and reinstalling the node environment. I don't know on what OS are you working but maybe you can try to remove node and reinstall node from the official installer https://nodejs.org/en/download/

Federico

from brida.

chanpu9 avatar chanpu9 commented on July 25, 2024

Federico,

My OS is macOS Catalina. I have uninstalled node and reinstalled from the official (https://nodejs.org/en/download/) but it is still the same:
env: node: No such file or directory
Error during frida-compile. Aborting.

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Another user had your same issue on MacOS with node but he fixed reinstalling node. You can find the thread here:

#47 (comment)

I wrote in this thread a message to him by asking how he solved.

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Hi @chanpu9,

I did some researches and I discovered that MacOS has different $PATH environment variables for terminal application and for GUI applications. Probably you have the correct environment variable for frida-compile on the terminal but not for the GUI applications. (unfortunately I haven't a MacOS system)

Have a look on this:
https://stackoverflow.com/questions/135688/setting-environment-variables-on-os-x
And let me know if in this way you solve the issue.

Federico

from brida.

CTF-MissFeng avatar CTF-MissFeng commented on July 25, 2024

This method does not work:

image

Windows:This problem also exists

image

The current solution is: manually perform the compilation

from brida.

CTF-MissFeng avatar CTF-MissFeng commented on July 25, 2024

Modify the source code so that it does not execute:

image

Temporary method: manually compile the file:

image

Run successfully:

image

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Hi @cq-feng,

From you screenshot you add to the PATH all the binary folders (/usr/local/bin, etc.), but node binary is in those folders? Because frida-compile fail to run node binary. Do you have "node" binary in the folders you added to PATH?

from brida.

CTF-MissFeng avatar CTF-MissFeng commented on July 25, 2024

Hi @cq-feng,

From you screenshot you add to the PATH all the binary folders (/usr/local/bin, etc.), but node binary is in those folders? Because frida-compile fail to run node binary. Do you have "node" binary in the folders you added to PATH?

Restarted the system:

image

image

image

image

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Uhmm... It's very strange... I will ask to some friends with a MacOS to do a check in the next days and I will be back on you

A question: do you have whitespaces in the obfuscated part of the paths? Or some non-ASCII characters?

from brida.

CTF-MissFeng avatar CTF-MissFeng commented on July 25, 2024

https://dani.gg/467-add-usr-local-bin-to-the-path-variable-on-mac-os/

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Great! Do you try this solution? Is it working?

from brida.

CTF-MissFeng avatar CTF-MissFeng commented on July 25, 2024

Macos 10.15, Does not support APP to set global variables

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Uhm, OK... I build a Brida binary in which I replaced frida-compile exec to "source ~/.profile; frida-compile". Can you try to add /usr/local/bin to your ~/.profile file and then try with this release?

Brida-0.4-jar-with-dependencies.jar.zip

Thank you!

from brida.

Neo01010 avatar Neo01010 commented on July 25, 2024

image
image

from brida.

Neo01010 avatar Neo01010 commented on July 25, 2024

The above method is still invalid,macos 10.15.4

from brida.

Neo01010 avatar Neo01010 commented on July 25, 2024

https://dani.gg/467-add-usr-local-bin-to-the-path-variable-on-mac-os/
It works!!!!

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Great @Neo01010 !

@CTF-MissFeng, @Neo01010 just wrote that the method you posted here works on MacOs 10.15. Is this method working for you too?

Thank you,
Federico

from brida.

mustafairan avatar mustafairan commented on July 25, 2024

@federicodotta Just a confirmation; that solution worked for me. I haven't achieve to spawn the app but looks like that solved frida-compile problem. Thanks

from brida.

chanpu9 avatar chanpu9 commented on July 25, 2024

@federicodotta Sorry for late reply. I have solved this issue via https://dani.gg/467-add-usr-local-bin-to-the-path-variable-on-mac-os/. However, I found a new issue instead: java.io.IOException: Cannot run program "/usr/local/lib/node_modules/frida-compile": error=13, Permission denied, even if I have change the privilge folder: sudo chown -R $USER /usr/local/lib/node_modules/frida-compile.
Screen Shot 2563-06-08 at 21 36 45

from brida.

Teeroy-tk avatar Teeroy-tk commented on July 25, 2024

make the folder /opt/burp/brida/ writeable...

from brida.

bypazs avatar bypazs commented on July 25, 2024

https://dani.gg/467-add-usr-local-bin-to-the-path-variable-on-mac-os/
It works!!!!

could you share the command do you use in the terminal please.

I'm download

Brida-0.4-jar-with-dependencies.jar.zip

and try sudo launchctl config user path /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Still not working

Exception during frida-compile java.io.IOException: Cannot run program "source": error=2, No such file or directory

Edit: now I'm use extensions frida at burp store it's work.

from brida.

klmitchell2 avatar klmitchell2 commented on July 25, 2024

I've tried the above and no luck. This is where frida-compile is installed:

/Users/<user>/.nvm/versions/node/v12.5.0/bin/frida-compile

Both result in env: node: No such file or directory

from brida.

hacker7744 avatar hacker7744 commented on July 25, 2024

Hi,
I am facing an error: Please refer attached brida_console_log.txt file and attached screenshot.
how to resolve this issue?
brida_console_log.txt

image

from brida.

ifishzz avatar ifishzz commented on July 25, 2024

修改源代码,使其不执行:

图片

临时方法:手动编译文件:

图片

运行成功:

图片

Can you add to your WeChat account? Windows doesn’t know how to solve it

from brida.

YaphetsH avatar YaphetsH commented on July 25, 2024

This method(https://dani.gg/467-add-usr-local-bin-to-the-path-variable-on-mac-os/ ) doesn't work on me(mac os 11.0.1 Big Sur)
can anyone help me?
image

from brida.

YaphetsH avatar YaphetsH commented on July 25, 2024

This method(https://dani.gg/467-add-usr-local-bin-to-the-path-variable-on-mac-os/ ) doesn't work on me(mac os 11.0.1 Big Sur)
can anyone help me?
image

I try to run burp with root or sudo grant ,that works~ Done

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Hi,

I close the issue because a solution has been provided. I added the solution also in the Wiki at the following page:

Please open a new issue if you still have problems.

Thank you,
Federico

from brida.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.