Installing and setting up drozer is fairly straightforward; the set up process is demonstrated for both Windows 7 and Unix/Linux types of systems.
Before we start hacking out some drozer scripts and get to know the exploitation and enumeration modules, you will need to grab a copy of the drozer installer suited to your system. Here's how you do that:
Windows users should click on the drozer (Windows installer) option; it should start downloading the drozer-installer-[version].zip
file immediately.
Unix/Linux users would, depending on your distribution or OS flavor, choose either the drozer (Debian/Ubuntu Archive) file or the drozer (RPM) package file.
For Windows users:
drozer-installer-[version].zip
file to a place/path you can easily remember.setup.exe
included in the ZIP archive. An install wizard should start up as shown in the following screenshot:C
drive, as shown in the following screenshot:For Unix/Linux users:
The drozer framework is available in a package file format relevant to your system, so either a DEB file for Debian users or an RPM file for Red Hat users. All you need to do with this file is open it using your package manager, and it will handle the rest. Debian users can make use of the following command to get drozer installed:
dpkg –I drozer-[version].deb
For Windows users:
C:drozer
path. C:drozerdrozer
You should see the output similar to the following screenshot:
C:drozerdrozer console
Unless you've been clever enough to fix the error, you should see the output similar to the one shown in the following screenshot:
This error means drozer cannot locate your Java installation.
PATH
variable.On Windows Augmenting your PATH
variable is pretty straightforward; you start by performing the following steps:
PATH
variable. Add the following string to the end of the value:;C:Program FilesJavajre7
For Unix/Linux users:
drozer
PATH
variable, execute the following command to get it added:PATH=$PATH:`which java
To make this persistent, add the previous command line to the end of your /home/[user]/.bashrc
file.
Before drozer can get up and running, you will need to install the drozer Agent on an Android device. This is pretty simple; here's how you do it:
drozer.apk file
as follows:adb install drozer.apk
On launching drozer, you should see the following:
PATH
variable.For Windows users:
PATH
variable:
;C:drozerdrozer
If you are a Unix/Linux user, execute the following command from your terminal:
PATH=$PATH:`which drozer`
To make this persistent, add the previous command line to the end of your /home/[user]/.bashrc
file.
If the DEB file fails to install, there is another way to get drozer installed that is relatively painless. To get drozer installed without the DEB package, perform the following steps:
apt-get install python-dev
apt-get install python-setuptools
apt-get install ia32-libs-i386
protobuf
, which you can install by executing the following command:easy_install –allow-hosts pypi.python.org protobuf==2.4.1
protobuf
is installed, you'll need to install twisted
for python, which you can do by executing the following command:easy_install twisted==10.2.0
drozer-[version]-py2.7.egg
. You can then install this EGG by executing the following command:easy_install drozer-[version]-py2.7.egg
And that's it—drozer should be ready to rock!
18.191.44.94