Frida: Difference between revisions

imported>Mic92
No edit summary
imported>Mic92
improve automation of fhsuserenv
Line 37: Line 37:
       which
       which
       git
       git
       python3
       (python3.withPackages (p: [ p.setuptools ]))
       nodejs
       nodejs
       perl
       perl
       curl
       curl
       glibc_multi
       glibc_multi
      yarn
     ];
     ];
    profile = ''
      export hardeningDisable=all
      # initialize sdk
      make
      # npm does not frida-gum/bindings/gumjs/node_modules -> bug?
      (cd frida-gum/bindings/gumjs && yarn install)
      # for frida-python egg
      export FRIDA_VERSION=$(git describe --tags)
      export FRIDA_EXTENSION=$(realpath build/frida-linux-x86_64/${python3.sitePackages}/_frida.so)
    '';
   };
   };
in fhs.env
in fhs.env
</syntaxHighlight>
For some reason <code>frida-gum/bindings/gumjs/</code> does automatically install its node modules:
<syntaxHighlight lang=console>
$ cd frida-gum/bindings/gumjs/
$ nix-shell -p yarn --command "yarn install"
</syntaxHighlight>
</syntaxHighlight>


Line 63: Line 68:


<syntaxHighlight lang=console>
<syntaxHighlight lang=console>
$ export FRIDA_VERSION=11.0.13
$ export FRIDA_EXTENSION=$(realpath build/frida-linux-x86_64/lib/python3.6/site-packages/_frida.so)
$ cd frida-python/src/
$ cd frida-python/src/
$ python setup.py bdist_egg
$ python setup.py bdist_egg