O'Reilly logo

Android Security Cookbook by Scott Alexander-Bown, Keith Makan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing a drozer module – a device enumeration module

This recipe explains how you can actually develop drozer modules by demonstrating the practical steps that make up drozer module development. The following device information enumerator grabs information about some of the hardware and the OS build.

How to do it...

Let's get started writing a drozer device enumeration module:

  1. Open a text editor and type in the following code:
    from drozer.modules import Module class Info(Module): name = "Get Device info" description = "A module that returns information about the device and hardware features" examples = "run ex.device.info" date = "10-11-13" author = "Keith Makan" license = "GNU GPL" path = ["ex","device"] def execute(self,arguments): build = self.new("android.os.Build") ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required