Comments (5)
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.
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.
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.
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.
Since JellyBean third party applications can only read their own logs, so this would no longer work.
from drozer.
Related Issues (20)
- How do I solve this problem 【Unexpected [Errno 2] No such file or directory】 HOT 3
- 1111 HOT 1
- Problems running Drozer console connect on Kali 2020.3 and Santoku HOT 2
- dz> run app.service.send com.mwr.example.sieve com.mwr.example.sieve.CryptoService --msg 1 5 3 Didn't find class "ServiceBinder" on path: DexPathList[[zip file "/data/user/0/com.mwr.dz/cache/d781ddba6e94325b7a27a0fb2b5fd813.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]] dz> HOT 5
- [Issue]Can't install drozer with error OSError: [Errno 2] No such file or directory HOT 3
- Failed install of Drozer 2.4.4 HOT 10
- can this project be added in GSOC 2021 HOT 3
- Failed to get drozer module HOT 1
- ERROR: drozer-2.x.x-py2-none-any.whl is not a supported wheel on this platform. HOT 1
- jdk version HOT 1
- [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond HOT 1
- ImportError: DLL load failed: %1 is not a valid Win32 application. HOT 1
- Drozer console connect - SyntaxError. Help Please. HOT 4
- my own module can't proceed from beginning HOT 1
- Virus alert in drozer HOT 1
- syntex error pleased solve it same problem have many people HOT 2
- Problem connecting to the drozer Server HOT 6
- WheN try to setup drozer it shows SyntaxError: invalid syntax HOT 1
- protobuf update libprotobuf.so.28 -> libprotobuf.so.32 HOT 1
- Run 'pip install twisted' to fetch this dependency. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drozer.