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.
Let's get started writing a drozer device enumeration module:
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") self.stdout.write("Getting device info...\n") self.stdout.write("[*] BOARD : %s\n" % (build.BOARD)) self.stdout.write("[*] BOOTLOADER : %s\n" % (build.BOOTLOADER)) self.stdout.write("[*]...