/
readme.txt.old
21 lines (19 loc) · 2.06 KB
/
readme.txt.old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Android applications may share the data of a content provider with other applications installed on your device. For example, if you receive an image attachment in an email, your mail client will have to share it with an image viewer. One way of sharing a content provider's data with other applications is by using "grant-uri-permission" tag in AndroidManifest.xml. Using this tag, a content provider can specify a path, path pattern or path prefix. However, if this path is mistakenly set to "/", any other installed application would be able to access data of that content provider.
<grant-uri-permission android:pathPrefix="/" />
Manifestor.py extracts AndroidManifest.xml from an Android application package (.apk), decodes it and scans it for such permission flaws. As an output, it will display you the set path and whether or not it could be vulnerable. Below is the usage:
Options:
-h, --help show this help message and exit
-o OUTPUTDIR, --output-dir=OUTPUTDIR
Output directory to use. This path will be used to
download the apk files to your machine
-a APKS, --apk=APKS Path (on Android device) of APK(s) to scan. Example:
/system/app/Gmail.apk. If the value of this switch is
set to scan_all, the script will automatically scan
all apks in /system/app and /system/sd/app folder
-l LOCALFILES, --local=LOCALFILES
Path (on the local machine) to APK(s).
-A APKPATHS, --apkpath=APKPATHS
Path (on Android device) to search for APK(s) to scan.
Example: /system/app
As input, it accepts an apk file path or a folder name on your phone. If you have apk files on your local machine, you can use "-l" switch. "-o" switch lets you specify the folder where the apk files will be downloaded and saved from you android device. If this switch is not specified, the files are saved in the current folder.
This tool is in early stages of development. You are more than welcome to modify/enhance it.