Giter VIP home page Giter VIP logo

Comments (5)

metall0id avatar metall0id commented on July 28, 2024

We would need the READ_LOGS permission if we were to do this. We could review what permissions Mercury uses but obviously we would like to keep the base Mercury as low-privileged as possible.

Assigning the READ_LOGS permission could also open up the use of more root exploits e.g. Gingerbreak which requires this permission to work, so it could be a good one to add.

@dbradberry what do you think?

from drozer.

 avatar commented on July 28, 2024

I don't think it's a problem to require additional permissions.

If apps are going to keep writing sensitive data into the logs, then we should allow Mercury to gather this information. If that requires extra permissions, fair enough.

We would have to think about how that information would be accessed, however, because log files will be generated asynchronously from everything else; which isn't a mode Mercury supports at the moment.

from drozer.

metall0id avatar metall0id commented on July 28, 2024

A simple/hacky solution could be for a module to start a logcat -f loggingfile and background it. Then have code that polls that file every ~2s for diffs and display only the diffs. When the module is stopped then issue a command to kill the backgrounded logcat.

Cheap solution but would probably work quite well...

from drozer.

metall0id avatar metall0id commented on July 28, 2024

We can always have this module in Mercury and then have a check at the beginning of the module code to see whether the connected agent holds the READ_LOGS permission.

After all, people should be able to use the Mercury agent with whichever permissions they choose in order to suit their needs

from drozer.

HenryHoggard avatar HenryHoggard commented on July 28, 2024

Since JellyBean third party applications can only read their own logs, so this would no longer work.

from drozer.

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.