ubuntu14.0.4安装drozer

环境

  • Linux ubuntu 4.4.0-31-generic #50~14.04.1-Ubuntu
  • jdk java version “1.6.0_45”
  • python2.7
  • drozer
  • agent.apk
  • android4.4.4 (nexus5 rooted)

下载drozer

drozer下载地址
这里选择 drozer (Debian/Ubuntu Archive) 版本,将下载好的drozer_2.4.4.deb文件使用

sudo dpkg -i drozer_2.4.4.deb  ##这里需要sudo来安装,否则不能安装成功,缺少权限。
安装,可能会否则会报如下错误

cat-zhou@ubuntu:~/drozer$ sudo dpkg -i drozer_2.4.4.deb
Selecting previously unselected package drozer.
(Reading database … 181856 files and directories currently installed.)
Preparing to unpack drozer_2.4.4.deb …
Unpacking drozer (2.4.4) …
dpkg: dependency problems prevent configuration of drozer:
python-dev缺失
drozer depends on python-protobuf (>= 2.4.1); however:
Package python-protobuf is not installed.
drozer depends on python-twisted (>= 10.0.2); however:
Package python-twisted is not installed.

dpkg: error processing package drozer (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
drozer

#### 解决办法

1、添加依赖
sudo apt-get install aptitude
使用aptitude 来安装缺少的依赖
sudo aptitude install python-dev
sudo aptitude install python-protobuf
sudo aptitude install python-twisted

最后再次执行

sudo dpkg -i install
``

下载agent.apk

下载好的agent.apk安装好后,就能正常使用drozer了。

测试安装的环境

在安装成功后,在shell下输入drozer,可以看到如下

cat-zhou@ubuntu:~/drozer$ drozer
usage: drozer [COMMAND]

Run `drozer [COMMAND] --help` for more usage information.

Commands:
          console  start the drozer Console
           module  manage drozer modules
           server  start a drozer Server
              ssl  manage drozer SSL key material
          exploit  generate an exploit to deploy drozer
            agent  create custom drozer Agents
          payload  generate payloads to deploy drozer

基本环境搭建完成

你可能感兴趣的:(Android)