“./ngrok authtoken <my_authtoken>”不工作

"./ngrok authtoken <my_authtoken>" not working

我从微软商店购买了 kali linux。

我想运行./ngrok authtoken <my_authtoken>

但得到了-bash: ./ngrok: cannot execute binary file: Exec format error

所以我尝试了 chmod +x ./ngrok authtoken <my_authtoken>sudo chmod +x ./ngrok authtoken <my_authtoken>

但无论哪种方式我都会得到 chmod: cannot access 'authtoken': No such file or directory chmod: cannot access '<my_authtoken>'

我该怎么办? 我真的需要 运行 ./ngrok authtoken <my_authtoken>

P.S: 我想使用 blackeye,当我选择它下载的号码时 Ngrok

编辑 1:我从 https://ngrok.com/download 下载了另一个版本,我删除了 blackeye 目录中以前的 Ngrok,并解压缩了新版本。 现在我得到 bash: ./ngrok: Permission denied

编辑 2:已经 12 天了,没有准确的答案,我猜我必须得到真正的 Kali Linux,问题是 windows 版本。

总是 Google 并尝试在 post 问题之前找到答案。

您的第一个错误 (-bash: ./ngrok: cannot execute binary file: Exec format error) 可能是因为您试图 运行 为 x86 或 ARM 等不同架构制作的程序(参见 https://askubuntu.com/a/648558)。

你的第二个错误 (chmod: cannot access 'authtoken': No such file or directory chmod: cannot access '<my_authtoken>') 是因为你试图从 chmod 中 运行 一个命令,你必须先 chmod 文件然后 运行 它。

您的第三个错误 (bash: ./ngrok: Permission denied) 是因为您需要先将文件 chmod 为可执行文件,然后才能 运行 并且不需要 sudo 除非 chmod returns chmod: cannot access '<yourfile>': Permission denied 那么你应该使用 sudo。

你应该 运行 是:

curl -L https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok.zip
unzip ngrok.zip
chmod +x ngrok
./ngrok authtoken <myauthtoken>