{"id":15038584,"url":"https://github.com/withsecurelabs/drozer","last_synced_at":"2025-05-08T01:11:49.723Z","repository":{"id":2557741,"uuid":"3536659","full_name":"WithSecureLabs/drozer","owner":"WithSecureLabs","description":"The Leading Security Assessment Framework for Android.","archived":false,"fork":false,"pushed_at":"2025-01-29T17:30:49.000Z","size":130983,"stargazers_count":4158,"open_issues_count":5,"forks_count":799,"subscribers_count":180,"default_branch":"develop","last_synced_at":"2025-05-08T01:11:42.602Z","etag":null,"topics":["android","drozer","java","mobile","mobsec","mwr","pentesting","security","withsecure"],"latest_commit_sha":null,"homepage":"https://labs.withsecure.com/tools/drozer","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WithSecureLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-02-24T15:02:31.000Z","updated_at":"2025-05-07T23:50:26.000Z","dependencies_parsed_at":"2024-08-09T09:08:55.532Z","dependency_job_id":"8ef25d0e-6c07-44f2-8d41-af39c7bd8d3a","html_url":"https://github.com/WithSecureLabs/drozer","commit_stats":{"total_commits":1115,"total_committers":44,"mean_commits":25.34090909090909,"dds":0.5264573991031389,"last_synced_commit":"2585d48adfa73af29689586672675794e5a8135d"},"previous_names":["fsecurelabs/drozer","mwrlabs/drozer"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WithSecureLabs%2Fdrozer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WithSecureLabs%2Fdrozer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WithSecureLabs%2Fdrozer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WithSecureLabs%2Fdrozer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WithSecureLabs","download_url":"https://codeload.github.com/WithSecureLabs/drozer/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978779,"owners_count":21834917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","drozer","java","mobile","mobsec","mwr","pentesting","security","withsecure"],"created_at":"2024-09-24T20:39:02.669Z","updated_at":"2025-05-08T01:11:49.697Z","avatar_url":"https://github.com/WithSecureLabs.png","language":"Python","readme":"# drozer\n\ndrozer is a security testing framework for Android.\n\ndrozer allows you to search for security vulnerabilities in apps and devices by assuming the role of an app and interacting with the Android Runtime, other apps' IPC endpoints and the underlying OS.\n\ndrozer provides tools to help you use, share and understand public Android exploits.\n\ndrozer is open source software, maintained by WithSecure, and can be downloaded from: [https://labs.withsecure.com/tools/drozer/](https://labs.withsecure.com/tools/drozer/)\n\n## NOTE\n\nThis is an BETA release of a rewritten drozer version; this version is updated to support python3.\n\nCurrently, the following known issues are present:\n\n- Building of custom agents functionality will crash the drozer client. This functionality is considered out of scope for the beta release of the revived drozer project.\n\n## Docker Container\n\nTo help with making sure drozer can be run on all systems, a Docker container was created that has a working build of drozer.\n\n* The Docker container and basic setup instructions can be found [here](https://hub.docker.com/r/withsecurelabs/drozer).\n* Instructions on building your own Docker container can be found [here](https://github.com/WithSecureLabs/drozer/tree/develop/docker).\n\n## Manual Building and Installation\n\n### Software pre-requisites\n\n1. [Python3.8](https://www.python.org/downloads/)\n2. [Protobuf](https://pypi.python.org/pypi/protobuf) 4.25.2 or greater\n3. [Pyopenssl](https://pypi.python.org/pypi/pyOpenSSL) 22.0.0 or greater\n4. [Twisted](https://pypi.python.org/pypi/Twisted) 18.9.0 or greater\n4. [Distro](https://pypi.org/project/distro/) 1.8.0 or greater\n5. [Java Development Kit](https://adoptopenjdk.net/releases.html) 11 or greater\n\n### Installing\n\nYou can use `pip` or `pipx` (preferably, if available) to install the latest release of drozer from PyPI:\n\n```shell\npipx install drozer\n```\n\nAlternatively, you can download individual [releases](https://github.com/WithSecureLabs/drozer/releases/) from GitHub and run:\n\n```shell\npipx install ./drozer-*.whl\n```\n\nIf you haven't already, consider running:\n```shell\npipx ensurepath\n```\n\nto ensure `pipx`-installed packages appear in your `PATH`\n\n## Building\n\nTo build drozer from source you can run.\n\n```shell\ngit clone https://github.com/WithSecureLabs/drozer.git\ncd drozer\npip install .\n```\n\nTo build the Android native components against a specific SDK you can set the `ANDROID_SDK` environment variable to the path. For example:\n\n**Linux/macOS:**\n```shell\nexport ANDROID_SDK=/home/drozerUser/Android/Sdk/platforms/android-34/android.jar\n```\n\n**Windows - PowerShell:**\n```powershell\nNew-Item -Path Env:\\ANDROID_SDK -Value 'C:\\Users\\drozerUser\\AppData\\Local\\Android\\sdk\\platforms\\android-34\\android.jar'\n```\n\n**Windows - cmd:**\n```cmd\nset ANDROID_SDK = \"C:\\Users\\drozerUser\\AppData\\Local\\Android\\sdk\\platforms\\android-34\\android.jar\"\n```\n\n The location of the `d8` tool used can also be changed by setting `D8`.\n\n## Usage\n\n### Installing the Agent\n\ndrozer can be installed using Android Debug Bridge (adb).\n\nDownload the latest drozer Agent [here](https://github.com/WithSecureLabs/drozer-agent/releases/latest).\n\n```shell\nadb install drozer-agent.apk\n```\n\n### Setup for session\n\nYou should now have the drozer Console installed on your PC, and the Agent running on your test device. Now, you need to connect the two and you’re ready to start exploring.\n\nWe will use the server embedded in the drozer Agent to do this. First, launch the Agent, select the \"Embedded Server\" option and tap \"Enable\" to start the server. You should see a notification that the server has started. \n\nThen, follow one of the options below.\n\n#### Option 1: Connect to the phone via network\n\nBy default, the drozer Agent listens for incoming TCP connections on all interfaces on port 31415. In order to connect to the Agent, run the following command:\n\n```\ndrozer console connect --server \u003cphone's IP address\u003e\n```\n\nIf you are using the Docker container, the equivalent command would be:\n\n```\ndocker run --net host -it withsecurelabs/drozer console connect --server \u003cphone's IP address\u003e\n```\n\n#### Option 2: Connect to the phone via USB\n\nIn some scenarios, connecting to the device over the network may not be viable. In these scenarios, we can leverage `adb`'s port-forwarding capabilities to establish a connection over USB.\n\nFirst, you need to set up a suitable port forward so that your PC can connect to a TCP socket opened by the Agent inside the emulator, or on the device. By default, drozer uses port 31415\n\n```shell\nadb forward tcp:31415 tcp:31415\n```\n\nYou can now connect to the drozer Agent by connecting to `localhost` (or simply not specifying the target IP)\n\n```shell\ndrozer console connect\n```\n\n### Confirming a successful connection\n\nYou should be presented with a drozer command prompt:\n\n```\nSelecting ebe9fcc0c47b28da (Google sdk_gphone64_x86_64 12)\n\n            ..                    ..:.\n           ..o..                  .r..\n            ..a..  . ....... .  ..nd\n              ro..idsnemesisand..pr\n              .otectorandroidsneme.\n           .,sisandprotectorandroids+.\n         ..nemesisandprotectorandroidsn:.\n        .emesisandprotectorandroidsnemes..\n      ..isandp,..,rotecyayandro,..,idsnem.\n      .isisandp..rotectorandroid..snemisis.\n      ,andprotectorandroidsnemisisandprotec.\n     .torandroidsnemesisandprotectorandroid.\n     .snemisisandprotectorandroidsnemesisan:\n     .dprotectorandroidsnemesisandprotector.\n\ndrozer Console (v3.0.0)\ndz\u003e\n```\nThe prompt confirms the Android ID of the device you have connected to, along with the manufacturer, model and Android software version.\n\nYou are now ready to start exploring the device.\n\n### Command Reference\n\n| Command        | Description           |\n| ------------- |:-------------|\n| run  | Executes a drozer module\n| list | Show a list of all drozer modules that can be executed in the current session. This hides modules that you do not have suitable permissions to run. | \n| shell | Start an interactive Linux shell on the device, in the context of the Agent process. | \n| cd | Mounts a particular namespace as the root of session, to avoid having to repeatedly type the full name of a module. | \n| clean | Remove temporary files stored by drozer on the Android device. | \n| contributors | Displays a list of people who have contributed to the drozer framework and modules in use on your system. | \n| echo | Print text to the console. | \n| exit | Terminate the drozer session. | \n| help | Display help about a particular command or module. | \n| load | Load a file containing drozer commands, and execute them in sequence. | \n| module | Find and install additional drozer modules from the Internet. | \n| permissions | Display a list of the permissions granted to the drozer Agent. | \n| set | Store a value in a variable that will be passed as an environment variable to any Linux shells spawned by drozer. | \n| unset | Remove a named variable that drozer passes to any Linux shells that it spawns. | \n\n## License\n\ndrozer is released under a 3-clause BSD License. See LICENSE for full details.\n\n## Contacting the Project\n\ndrozer is Open Source software, made great by contributions from the community.\n\nFor full source code, to report bugs, suggest features and contribute patches please see our Github project:\n\n  \u003chttps://github.com/WithSecureLabs/drozer\u003e\n\nBug reports, feature requests, comments and questions can be submitted [here](https://github.com/WithSecureLabs/drozer/issues).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithsecurelabs%2Fdrozer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwithsecurelabs%2Fdrozer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithsecurelabs%2Fdrozer/lists"}