我无法在kali linux上运行btlejuice-proxy命令

时间:2019-06-13 16:37:04

标签: node.js

在kali linux中运行“ btlejuice-proxy”时,出现以下错误。我根据以下链接配置了“ btlejuice-proxy”: https://github.com/DigitalSecurity/btlejuice

以下是错误:

内部/模块/cjs/loader.js:626             犯错             ^

    Error: Cannot find module 'bluetooth-hci-socket'
    Require stack:
    - /usr/local/lib/node_modules/btlejuice/node_modules/noble/lib/hci-socket/hci.js
    - /usr/local/lib/node_modules/btlejuice/node_modules/noble/lib/hci-socket/bindings.js
    - /usr/local/lib/node_modules/btlejuice/node_modules/noble/lib/resolve-bindings.js
    - /usr/local/lib/node_modules/btlejuice/node_modules/noble/index.js
    - /usr/local/lib/node_modules/btlejuice/proxy.js
    - /usr/local/lib/node_modules/btlejuice/bin/cmd_btlejuice_proxy.js


    On kali linux 

    1) sudo apt-get install python g++ make checkinstall fakeroot
    2) src=$(mktemp -d) && cd $src
    3) wget -N http://nodejs.org/dist/node-latest.tar.gz
    4) tar xzvf node-latest.tar.gz && cd node-v*
    5) ./configure
    6) sudo fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install
    7) dpkg -i node_12.4.0-1_amd64.deb 
    8) npm -v
    9) node -v
    10) sudo npm install -g btlejuice --unsafe-perm
    11) btlejuice-proxy

0 个答案:

没有答案