NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor
git clone https://git.daemon-sec.xyz/NixDaemon.git
Log | Files | Refs | README

mobile.nix (1028B)


      1 # modules/features/pentest/mobile.nix — Android application testing.
      2 # Off by default. `daemon.pentest.mobile.enable = true;`
      3 #
      4 # `objection` is deliberately absent: it pulls the Android SDK, which is behind
      5 # Google's android-sdk-license. Accepting a licence is the operator's call, not
      6 # this module's, so if you want objection add BOTH of these yourself:
      7 #
      8 #   nixpkgs.config.android_sdk.accept_license = true;
      9 #   daemon.pentest.mobile.enable = true;            # and add objection here
     10 #
     11 # Everything else here (frida, apktool, jadx, dex2jar, scrcpy, adb) is free.
     12 { lib, ... }:
     13 (import ./_sets.nix { inherit lib; }) {
     14   name = "mobile";
     15   description = "APK unpacking, decompilation and runtime instrumentation";
     16   default = false;
     17 
     18   packages = pkgs: with pkgs; [
     19     apktool
     20     jadx # jadx, jadx-gui
     21     dex2jar # d2j-dex2jar and friends
     22     frida-tools # frida, frida-ps, …
     23     scrcpy
     24     android-tools # adb
     25   ];
     26 
     27   expectedBins = [
     28     "apktool" "jadx" "d2j-dex2jar" "frida" "frida-ps"
     29     "scrcpy" "adb"
     30   ];
     31 }