Drozer/MobSF Installation

Drozer/MobSF Installation

Installation - Drozer

我是參考1的說明,但其實參考官網的也可以,我是用docker裝

  1. Download drozer-agent & Install - Download 這是要安裝在手機測試端的類似一個server的概念,而我們的電腦端也要安裝類似的東西(有好幾種方式,我是用Docker),讓電腦和手機可以互通
    1
     $ adb install drozer-agent.apk
    
  2. Start a Session 打開agent app會發現右下角有一個Off,點擊後會變成On,代表這個agent已經準備好要和電腦這邊的server連接 Screenshot_20240603-131808
  3. 設定電腦的Port轉發到Android的某個Port 根據2的說明,以及官網的要求,我們必須要把電腦31415這個port的封包轉發到手機端的31415這個port

    Android 的 adb forward 通訊埠轉發的功能,adb forward 的功能是轉發 PC 電腦上某個埠號 (port) 資料到 Android 裝置的某個埠號 (port),例如:下列 adb forward 指令就是將 PC 端的 port 10000 收到的資料,轉發給到 Android Device 的 port 20000

    1
     $ adb forward tcp:31415 tcp:31415
    
  4. Install PC Drozer Client 看到以下畫面就代表成功了
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
     $ docker run -it --add-host host.docker.internal:host-gateway withsecurelabs/drozer console connect --server host.docker.internal
     Selecting ff762fc058e91df3 (Google Pixel 6a 13)
    
                 ..                    ..:.
                ..o..                  .r..
                 ..a..  . ....... .  ..nd
                   ro..idsnemesisand..pr
                   .otectorandroidsneme.
                .,sisandprotectorandroids+.
              ..nemesisandprotectorandroidsn:.
             .emesisandprotectorandroidsnemes..
           ..isandp,..,rotecyayandro,..,idsnem.
           .isisandp..rotectorandroid..snemisis.
           ,andprotectorandroidsnemisisandprotec.
          .torandroidsnemesisandprotectorandroid.
          .snemisisandprotectorandroidsnemesisan:
          .dprotectorandroidsnemesisandprotector.
    
     drozer Console (v3.0.2)
     dz>
    

Installation - MobSF

可以直接使用線上的工具,也可以用docker架在自己的電腦

$ docker pull opensecurity/mobile-security-framework-mobsf:latest
$ docker run -it --rm -p 8000:8000 opensecurity/mobile-security-framework-mobsf:latest

並透過瀏覽器訪問 http://127.0.0.1:8000 ,default的帳密是==mobsf/mobsf==

Reference