Code Monkey home page Code Monkey logo

Comments (15)

janemba avatar janemba commented on July 25, 2024

and I'm using brida version 0.2.

from brida.

janemba avatar janemba commented on July 25, 2024

Well, how Brida start Pyro ?

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Hi,

Pyro is started with a system exec, using python 2.

Have you configured correctly all the paths in the Configuration tab? Python path, Frida JS file, etc.
The Application ID is the correct one? If you try to use Frida to spawn your application from the console, does it work?
Are you using Python 2? You can't use Python 3.

Federico

from brida.

Chan9390 avatar Chan9390 commented on July 25, 2024

Hey @federicodotta,
I am facing the same issue. I am using Burp Suite Community edition. I am just curious to know if brida works in this version.

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Hi Chan9390,

yes, Brida works also on Burp Suite Community edition. Usually that kind of issue is caused by an error in the configurations or by a missing dependency (Pyro4, python 2, etc.)

Federico

from brida.

janemba avatar janemba commented on July 25, 2024

@federicodotta

Hi, I checked and re-checked again.

So I'm using Python-2.7, all paths are configured correctly, the application ID is correct (I got it from frida-ps). Also, I don't know how to start my mobile apps from the console with frida.

% pip search frida      
frida (11.0.1)                   - Inject JavaScript to explore native apps on Windows, macOS, Linux, iOS, Android, and QNX
  INSTALLED: 11.0.1 (latest)
% pip search pyro4      
Pyro4 (4.71)  - distributed object middleware for Python (RPC)
  INSTALLED: 4.71 (latest)
% python -V
Python 2.7.15

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Have you started frida-server on your mobile device? Have you configured properly the mode of connection with frida-server? (local or remote)

If yes, you can run directly Frida with the following command (with -R instead of -U if you are using remote connection with frida-server):
frida -U -f #APP_ID -l #JS_FRIDA_FILE --no-pause

from brida.

janemba avatar janemba commented on July 25, 2024

@federicodotta

Yes frida-server server is started on the device and work properly. I use "Frida Local" for connection mode (with USB).

So I run the command manually and I got this error :

Failed to spawn: unable to handle 64-bit processes due to build configuration

Hmmm...

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Maybe you are using wrong Frida binaries :-)

Anyway, it is not an issue related to Brida. Can I close the issue?

Federico

from brida.

janemba avatar janemba commented on July 25, 2024

@federicodotta

Yeah sure sorry for that ;)

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

No problem! Have a nice day!

Federico

from brida.

janemba avatar janemba commented on July 25, 2024

Hi,

Sorry to reopen it again. But the issue persist. So running this command is ok :

$ frida -U -f xxx -l /foo/bar/scriptBrida.js --no-pause


     ____
    / _  |   Frida 11.0.1 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at http://www.frida.re/docs/home/
Spawned `xxx`. Resuming main thread!          
[HTC HTC U Ultra::xxx]-> 

Then I executed the following command :

$ python -i /foo/bar/bridaServicePyro.py 127.0.0.1 9999
Ready.

But still, using burp I got the same exception :
Exception starting Pyro server java.util.concurrent.TimeoutException java.util.concurrent.FutureTask.get(FutureTask.java:205) burp.BurpExtender.launchPyroServer(BurpExtender.java:914) burp.BurpExtender.actionPerformed(BurpExtender.java:1367) javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) java.awt.Component.processMouseEvent(Component.java:6533) javax.swing.JComponent.processMouseEvent(JComponent.java:3324) java.awt.Component.processEvent(Component.java:6298) java.awt.Container.processEvent(Container.java:2236) java.awt.Component.dispatchEventImpl(Component.java:4889) java.awt.Container.dispatchEventImpl(Container.java:2294) java.awt.Component.dispatchEvent(Component.java:4711) java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525) java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) java.awt.Container.dispatchEventImpl(Container.java:2280) java.awt.Window.dispatchEventImpl(Window.java:2746) java.awt.Component.dispatchEvent(Component.java:4711) java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) java.awt.EventQueue.access$500(EventQueue.java:97) java.awt.EventQueue$3.run(EventQueue.java:709) java.awt.EventQueue$3.run(EventQueue.java:703) java.security.AccessController.doPrivileged(Native Method) java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) java.awt.EventQueue$4.run(EventQueue.java:731) java.awt.EventQueue$4.run(EventQueue.java:729) java.security.AccessController.doPrivileged(Native Method) java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) java.awt.EventQueue.dispatchEvent(EventQueue.java:728) java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

So now I don't really know where to dig :(

Ideas ?

from brida.

federicodotta avatar federicodotta commented on July 25, 2024

Hi! You obtain that exception when Brida can not start or reach Pyro server. Check again all configuration paths. Maybe there is an error in the configuration.

from brida.

janemba avatar janemba commented on July 25, 2024

Hi @federicodotta,

Well that's the problem, there is not so much stuff to check and I already like 10 thousands times. Also, I look at source code to get an idea of what you are doing and as you see on my previous post I did the same command that Brida is doing and it works. So, what I should check exactly ?

from brida.

invisible0 avatar invisible0 commented on July 25, 2024

hi @janemba
i had the same issue, i tried to use frida-server-arm64. and now it's work correctly.

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.